Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // old code:
- Xspeed = (2*(command.walkV));
- // New code:
- if( (command.walkV) > 5 || (command.walkV < -5) ){
- Xspeed = (2*(command.walkV));
- }else{
- Xspeed = 0;
- }
- // FOR Y NOW
- if((command.buttons&BUT_LT) > 0){
- if( (command.walkH) > 5 || (command.walkH < -5) ){
- Yspeed = command.walkH/2;
- }else{
- Yspeed = 0;
- }
- }else{
- Rspeed = -command.walkH/300.0;
- Yspeed = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement