Skip to content

Instantly share code, notes, and snippets.

@vegishare
Created June 27, 2018 21:46
Show Gist options
  • Select an option

  • Save vegishare/1b48d2f39c44a878bc6f9d271575b519 to your computer and use it in GitHub Desktop.

Select an option

Save vegishare/1b48d2f39c44a878bc6f9d271575b519 to your computer and use it in GitHub Desktop.
// Null-cancelling movement script
// (prevents you from pressing two opposing directions, which causes you to stop moving)
bind w +mfwd
bind s +mback
bind a +mleft
bind d +mright
alias +mfwd "-back;+forward;alias checkfwd +forward"
alias +mback "-forward;+back;alias checkback +back"
alias +mleft "-moveright;+moveleft;alias checkleft +moveleft"
alias +mright "-moveleft;+moveright;alias checkright +moveright"
alias -mfwd "-forward;checkback;alias checkfwd none"
alias -mback "-back;checkfwd;alias checkback none"
alias -mleft "-moveleft;checkright;alias checkleft none"
alias -mright "-moveright;checkleft;alias checkright none"
alias checkfwd none
alias checkback none
alias checkleft none
alias checkright none
alias none ""
alias +LJ "+duck; +jump; +klook; -forward"
alias -LJ "-duck; -jump; -klook"
bind mouse2 +LJ
sensitivity "2.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment