Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. // Null-cancelling movement script
  2. // (prevents you from pressing two opposing directions, which causes you to stop moving)
  3.  
  4. //bind w +forward
  5. //bind s +back
  6. //bind a +moveleft
  7. //bind d +moveright
  8.  
  9. bind w +mfwd
  10. bind s +mback
  11. bind a +mleft
  12. bind d +mright
  13.  
  14. alias +mfwd "-back;+forward;alias checkfwd +forward"
  15. alias +mback "-forward;+back;alias checkback +back"
  16. alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
  17. alias +mright "-moveleft;+moveright;alias checkright +moveright"
  18. alias -mfwd "-forward;checkback;alias checkfwd none"
  19. alias -mback "-back;checkfwd;alias checkback none"
  20. alias -mleft "-moveleft;checkright;alias checkleft none"
  21. alias -mright "-moveright;checkleft;alias checkright none"
  22. alias checkfwd none
  23. alias checkback none
  24. alias checkleft none
  25. alias checkright none
  26. alias none ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement