Skip to content

Instantly share code, notes, and snippets.

Created July 11, 2013 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5975111 to your computer and use it in GitHub Desktop.
Save anonymous/5975111 to your computer and use it in GitHub Desktop.
Speed toggles for HL2
//Speed Toggle
alias speed_t "walk_on"
alias walk_on "alias speed_t walk_off; cl_forwardspeed 400; developer 1; echo walking (on); developer 0"
alias walk_off "alias speed_t walk_on; cl_forwardspeed 65; developer 1; echo walking (off); developer 0"
//Sprint Toggle
alias walk_t "run_on"
alias run_on "alias walk_t run_off; +walk; developer 1; echo running (on); developer 0"
alias run_off "alias walk_t run_on; -walk; developer 1; echo running (off); developer 0"
bind "R_SHOULDER" "speed_t"
bind "L_SHOULDER" "walk_t"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment