DriverHeaven.net

 
Looking for the skin chooser?
 
 
  • Home

  • Reviews

  • Articles

  • News

  • Tools

  • GamingHeaven

  • Forums

  • Network

 

Go Back   DriverHeaven.net > Forums > GamingHeaven Gaming > Gaming Discussion


Reply
 
LinkBack Thread Tools
Old Nov 22, 2004, 01:36 AM   #1
DriverHeaven Junior Member
 
Join Date: Mar 2003
Location: Detroit, Mich.
Posts: 20
Rep Power: 0
Brennus is on a distinguished road

HL2 - Toggle for Movement Controls!

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!
__________________
[color=Blue]AMD Athlon(tm) 64 Processor 3400+: K8N-E-Deluxe: Front Side Bus Speed : 2x 166MHz: 3x Corsair CMX512-2700C2 512MB: ATI Technologies Radeon X850 XT PE: ViewSonic A90f+: Creative Labs SB Audigy 2: Microsoft Windows XP/2002 Professional[/color]
Brennus is offline   Reply With Quote


Old Nov 22, 2004, 11:21 AM   #2
Dom
DriverHeaven Extreme Member
 
Join Date: Jun 2002
Posts: 12,942
Rep Power: 0
Dom is on a distinguished road

Thanks.
Dom is offline   Reply With Quote
Reply

Bookmarks

Thread Tools