Jump to content

Question

Posted

If you add this code i did up to your autoexec.cfg it will make your capslock key (or something else) toggle crouch on and off so that you don't have to keep the key held down.

The config assumes that you use ctrl to crouch, z to prone, shift to sprint, and that you want capslock to turn the crouch lock on and off.

If you change the key make sure you replace all capslock binds in the aliases. The other keys only appear once in their bind.

// Rebind capslock to turn crouch lock on and off
Bind "capslock" "+dOn";
alias "-dOn" "bind capslock +dOFF";
alias "-dOFF" "bind capslock +dOn";
alias "+dOn" "+duck";
alias "+dOFF" "-duck";

// Rebind control to cancel the crouch lock when released
bind "ctrl" "+duck2"
alias "+duck2" "+duck"
alias "-duck2" "-duck;bind capslock +dOn"

// Rebind z to cancel the crouch lock when pressed
bind "z" "+prone"

alias "+prone" "+alt1;-duck;bind capslock +dOn"
alias "-prone" "-alt1"

// Rebind shift to cancel the crouch lock when pressed
bind "SHIFT" "+sprint"    
alias "+sprint" "+speed;-duck;bind capslock +dOn"
alias "-sprint" "-speed"

3 answers to this question

Recommended Posts

  • 0
Posted

That might be very helpful in MOS's/Platoon or Realism Practices where a lot of talking is par for the course. I know I get tired of hold that stupid key down, and if there is something I need that finger to do (scratch my ass, poke an eye), I can free it up with Caps Lock.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...