Snorflake

Null-cancelling movement script

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