Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. // old code:
  2. Xspeed = (2*(command.walkV));
  3.  
  4. // New code:
  5. if( (command.walkV) > 5 || (command.walkV < -5) ){
  6. Xspeed = (2*(command.walkV));
  7. }else{
  8. Xspeed = 0;
  9. }
  10.  
  11. // FOR Y NOW
  12.  
  13. if((command.buttons&BUT_LT) > 0){
  14. if( (command.walkH) > 5 || (command.walkH < -5) ){
  15. Yspeed = command.walkH/2;
  16. }else{
  17. Yspeed = 0;
  18. }
  19. }else{
  20. Rspeed = -command.walkH/300.0;
  21. Yspeed = 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement