Author Topic: Bind Run / Walk switch  (Read 2220 times)

prozajik

  • Autococker
  • Posts: 761
Bind Run / Walk switch
« on: August 10, 2013, 06:35:36 PM »
Just wanted to ask, if its possible to bind a key that would switch between running and walking everytime i press it (not press = walk, release = run). I found cvar_inc, but this doesnt work for +speed obviously or i just dont know how to use it.
Any ideas?

ViciouZ

  • Map Committee
  • Autococker
  • Posts: 2227
Re: Bind Run / Walk switch
« Reply #1 on: August 10, 2013, 11:33:15 PM »
I'm sure the scripters will have a more efficient way to do things, but until they do:

alias speed1 "+speed; bind KEY speed2"
alias speed2 "-speed; bind KEY speed1"
bind KEY speed1

prozajik

  • Autococker
  • Posts: 761
Re: Bind Run / Walk switch
« Reply #2 on: August 11, 2013, 08:47:54 AM »
Nice, thanks, works fine, kinda mad i didnt think of this myself ^^