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.
  • Recent Posts

    • Playing Phasmophobia with Farmer and Small   Holquist: Farmer! You didn't grab the fucking bone!! Farmer: Yes I did, it was a spleen! Small: That's an organ you twat.
    • 2nd Platoon Weekly Attendance   Week of 27APR2025   P = Present | E = Excused | A = Absent   Platoon Staff CWO. A. Pitteway - Present 1stSgt. J. Candy -  Present GySgt. A Yoder -  Present GySgt. R. Fielding - Present   1st Squad Squad leader:  Cpl. M. Noel - Excused Cpl. B. Grande -  Present Cpl. R. Smith -  Present Cpl. C. Keebler - Present Pfc. D. Moffat -  Present     2nd Squad Squad leader:  SSgt. S. Holquist - Excused Cpl. T. Scary -  Present Cpl. C. Marsh - Present Cpl. W. Swift - - Excused Pfc. M. Oake - Excused Pvt. R. Zera - Absent Pvt. J. Coelho - Present  
    • Name: Brother Bear   Steam I.D: STEAM_0:0:120956468   Duration of Ban: Permanent   Reasons for the Ban: Racist comments   Demo Provided?: N   Comments: Said the N word a couple of times
    • Welcome to the 1st Marine Raider Battalion! Now that you have been accepted don't forget to: 1. Check in at the Recruit Depot 2. Read the Marine Raider Handbook (you are expected to know everything in it) 3. Change your steam friends Avatar 4. Download, install and log into Discord NOTE: Please be aware that you will not have access to the above links until an officer has given you full access to the forum. Access to the forum should be given to you within the next day.
×
×
  • Create New...