Toggle for Movement Controls! -1 reply

Please wait...

The Masta

I´m to good for you

50 XP

9th August 2005

0 Uploads

16 Posts

0 Threads

#1 13 years ago

I've always used a script that allows you to toggle the crouch and run controls. This surprisingly carried over into the new source engine! The easiest way to do this is to go into your (insert drive letter here)\Valve\Steam\SteamApps\(insert steam login here)\half-life 2\hl2\cfg folder. Copy the file named config.cfg and make that copy blank. Now make two (2) more copies of that copy, insert the following text into each and rename them as follows... autoexec.cfg exec myaliases.cfg exec mybindings.cfg myaliases.cfg //Crouch Toggle alias duck_t "duck_on" alias duck_on "alias duck_t duck_off; +duck; developer 1; echo Crouching (on); developer 0" alias duck_off "alias duck_t duck_on; -duck; developer 1; echo Crouching (off); developer 0" //Speed Toggle alias speed_t "walk_on" alias walk_on "alias speed_t walk_off; +speed; developer 1; echo walking (on); developer 0" alias walk_off "alias speed_t walk_on; -speed; 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" mybindings.cfg bind "" "speed_t" bind "" "duck_t" bind "" "walk_t" A note on the mybindings.cfg file. My controls are MUCH different than the default setup! So you have to insert your bindings into the empty brackets. This is easy! Open your config.cfg file and find speed, duck and walk. Note the keys you assigned for each. Now open the mybindings.cfg file and insert those same keys into the empty brackets! Purely for reference, speed_t = walk, duck_t = crouch and walk_t = sprint. Feedback is welcome! :D