Advertisement
misterslin

Null-Movement Script for TF2

Jun 10th, 2016
16,464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 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. alias +mfwd "-back;+forward;alias checkfwd +forward"
  5. alias +mback "-forward;+back;alias checkback +back"
  6. alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
  7. alias +mright "-moveleft;+moveright;alias checkright +moveright"
  8. alias -mfwd "-forward;checkback;alias checkfwd none"
  9. alias -mback "-back;checkfwd;alias checkback none"
  10. alias -mleft "-moveleft;checkright;alias checkleft none"
  11. alias -mright "-moveright;checkleft;alias checkright none"
  12. alias checkfwd none
  13. alias checkback none
  14. alias checkleft none
  15. alias checkright none
  16. alias none ""
  17. bind "w" "+mfwd" //default "+forward"
  18. bind "a" "+mleft" //default "+moveleft"
  19. bind "s" "+mback" //default "+back"
  20. bind "d" "+mright" //default "+moveright"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement