Is there a command to bind a key to toggle crouch?


(frostyvampire) #1

I’m aware that you can change it to crouch toggle but that’s not what I want. I want a different key to toggle crouch and a different key to hold crouch.

I wanna bind CTRL to be toggle crouch but keep R as my normal hold to crouch.
Some times I need to crouch in defensive positions (mostly the bus on Chapel as a sniper) and it’s really annoying to hold R for so long. But I’m also used to hold crouch so changing it to toggle permanently would be even worse to me.

If you know a console command to do it, please comment below


(DarkMatterMatt) #2

I don’t know of any way to do it in-game, but do you have a fancy keyboard?
If you do you could set DB to toggle crouch and in your fancy keyboard bindings bind a key so when you press it, it presses crouch and when you release it, it presses crouch again (to mimic the hold to crouch function).


(Amerika) #3

You can do it through shooterinput.ini by copying your current bind and then making a second one with a different key. But you’ll possibly need to set it to read only in order for the setting to not get overridden.


(frostyvampire) #4

[quote=“DarkMatterMatt;200706”]I don’t know of any way to do it in-game, but do you have a fancy keyboard?
If you do you could set DB to toggle crouch and in your fancy keyboard bindings bind a key so when you press it, it presses crouch and when you release it, it presses crouch again (to mimic the hold to crouch function).[/quote]

I do but I’m too lazy to learn how to do those stuff and everything. I just want a fast and easy way

I might try this out tomorrow.
But do you know the commands? I’m not good at those stuff


(Amerika) #5

[quote=“FrostyVampire;200713”][quote=“DarkMatterMatt;200706”]I don’t know of any way to do it in-game, but do you have a fancy keyboard?
If you do you could set DB to toggle crouch and in your fancy keyboard bindings bind a key so when you press it, it presses crouch and when you release it, it presses crouch again (to mimic the hold to crouch function).[/quote]

I do but I’m too lazy to learn how to do those stuff and everything. I just want a fast and easy way

I might try this out tomorrow.
But do you know the commands? I’m not good at those stuff[/quote]

Look for what you have it currently bound to, copy that line, paste it underneath the other one and change the keyboard letter to whatever you want to use.


(pumpkinmeerkat) #6

You’ll need to change the CrouchToggle boolean some how as well - true for CTRL and false for R. I’m sure others here can offer more help in this area but below is what I would try.

Replace the bindings for those keys in your ShooterInput.ini file under [ShooterGame.SGPlayerInputPawn]

Bindings=(Name=“LeftControl”,Command=“Duck | CrouchToggle true”,Control=False,Shift=False,Alt=False,bIgnoreCtrl=False,bIgnoreShift=False,bIgnoreAlt=False)

Bindings=(Name=“R”,Command=“Duck | CrouchToggle false”,Control=False,Shift=False,Alt=False,bIgnoreCtrl=False,bIgnoreShift=False,bIgnoreAlt=False)

Always be sure to save a copy of your config files before trying any changes. Binding the CrouchToggle boolean and duck command to a single key may not work as intended but perhaps worth a try. You could always bind two other keys to set CrouchToggle to true and false, then just use R to crouch in whichever mode you have enabled.


(frostyvampire) #7

@pumpkinmeerkat

Ok I just changed it. Gonna test it out now and will edit this post with the results
Edit: It didn’t work. Maybe I did something wrong?

Do you know maybe a console command I can use instead of editing the files?


(pumpkinmeerkat) #8

@FrostyVampire

Sorry, wasn’t able to make that work either :frowning: You could make left control a CrouchToggle toggle and just use R to crouch in whichever mode you have enabled. You can try adding the alias below at the end of the [ShooterGame.SGPlayerInputPawn]. I’ll also try after work.

Bindings=(Name=“CrouchToggleT”,Command=“CrouchToggle true | setbind LeftControl CrouchToggleF”)
Bindings=(Name=“CrouchToggleF”,Command=“CrouchToggle false | setbind LeftControl CrouchToggleT”)
Bindings=(Name=“LeftControl”,Command=“CrouchToggleT”)

Also, lots of info here.


(frostyvampire) #9

@pumpkinmeerkat

I’ll give it a try. But I won’t use CTRL for that.

Do you know the names of numpad 5 and 8 keys?