Counter-Strike 2

Counter-Strike 2

View Stats:
WILLYumD Jul 31, 2014 @ 11:41am
Binding Toggle and Hold Crouch?
I'd like to have both crouches. Is it possible to bind a toggle and normal crouch to separate keys? pl0x halp!
(I have doubts since CSGO has a Hold/Toggle setting in the menu, and not separate binds.)
< >
Showing 1-11 of 11 comments
You don't want to toggle crouch. It will get you killed :)
Last edited by Ξ︎∨○︎L∨Ξ; Jul 31, 2014 @ 11:47am
WILLYumD Jul 31, 2014 @ 12:25pm 
Originally posted by Evolve!:
You don't want to toggle crouch. It will get you killed :)
For modes like Jailbreak tho.
Originally posted by WILLYumD:
For modes like Jailbreak tho.
Aaah yea, never played that. I dunno how to have it both.
Last edited by Ξ︎∨○︎L∨Ξ; Jul 31, 2014 @ 12:28pm
WILLYumD Jul 31, 2014 @ 5:42pm 
Originally posted by ONRARCHIE:
Replace SHIFT with whatever key you want the toggle on.

Put that in console one line at a time.

bind SHIFT crouch1
alias crouch1 "+crouch; bind SHIFT crouch0"
alias crouch0 "-crouch; bind SHIFT crouch1"
Didn't work. :(
STRATA_V1 Aug 6, 2015 @ 2:15pm 
I've got a solution if you haven't already found one.

bind (your own key here) toggleDuck;
alias toggleDuck "enableDuck";
alias enableDuck "alias toggleDuck disableDuck; +duck";
alias disableDuck "alias toggleDuck enableDuck; -duck";

You will need to put them into an auto exec file for them to work continuously.
These codes will enable toggle presses to any button you assign.
Note: Be sure to have crouch function set to hold in the options menu, otherwise it will not work.

It works great for me!
Last edited by STRATA_V1; Aug 7, 2015 @ 2:40pm
Fuerst Fux May 1, 2017 @ 7:18am 
Originally posted by Disco Doplan:
Here is how you script it yourself, but you can just use the built in toggle.

//autoexec.cfg

alias duck_tog duck_on
alias duck_on "+duck; alias duck_tog duck_off"
alias duck_off "-duck; alias duck_tog duck_on"

bind "key" "duck_tog"

Here is one for a walk toggle. You can also use the built in toggle.

//autoexec.cfg


alias walk_tog walk_on
alias walk_on "+speed; alias walk_tog walk_off"
alias walk_off "-speed; alias walk_tog walk_on"

bind "key" "walk_tog"
20. months. later.
Last edited by Fuerst Fux; May 1, 2017 @ 7:18am
Harmless Jun 11, 2018 @ 11:41am 
:steamfacepalm: :steamfacepalm: :steamfacepalm: :steamfacepalm: :steamfacepalm:
Originally posted by ARCHIE:
bind SHIFT crouch1
alias crouch1 "+crouch; bind SHIFT crouch0"
alias crouch0 "-crouch; bind SHIFT crouch1"
:steamfacepalm: :steamfacepalm: :steamfacepalm: :steamfacepalm:

Well this would work it there would be +duck/-duck instead of +crouch/-crouch xD
So it should be
bind key crouch1 alias crouch1 "+duck; bind key crouch0" alias crouch0 "-duck; bind key crouch1"
Last edited by Harmless; Jun 11, 2018 @ 11:42am
Caenbet Jun 11, 2018 @ 11:42am 
Originally posted by Harmless | dogry.pl:
:steamfacepalm: :steamfacepalm: :steamfacepalm: :steamfacepalm: :steamfacepalm:
Originally posted by ARCHIE:
bind SHIFT crouch1
alias crouch1 "+crouch; bind SHIFT crouch0"
alias crouch0 "-crouch; bind SHIFT crouch1"
:steamfacepalm: :steamfacepalm: :steamfacepalm: :steamfacepalm:

Well this would work it there would be +duck/-duck instead of +crouch/-crouch xD
So it should be
bind key crouch1 alias crouch1 "+crouch; bind key crouch0" alias crouch0 "-crouch; bind key crouch1"

Necroing a thread from 1 year ago.
Wtf is wrong with you?
Harmless Jun 11, 2018 @ 2:07pm 
Dude can you first think and then write something? Thank you I hope you'll do better next time. I was just looking for as in title
TOGGLE CROUCH
So I wrote this sentence in google and that was the first thread that appeared.
So what the duck is wrong with you by saying that something's wrong with me because I corrected old thread. Man I think, I did very well by writting this, but I'm not sure if helping others is good, correct me if I'm wrong.
Last edited by Harmless; Jun 11, 2018 @ 2:07pm
Uncle Soproni Dec 7, 2020 @ 10:38pm 
Was trying to do the same thing as OP, Ctrl for hold crouch and "c" for toggle crouch.

Added this to my autoexec.cfg in the end. Seems to work perfectly, the point of rebinding "CTRL" key as well is so that if you are toggled on duck in a firefight and you panic to unduck by hitting control instead of "c" you will regain normal functionality.

#ToggleCrouch Bind alias +ctrlduck "+duck"; alias -ctrlduck "-duck; bind "c" +togduck"; alias +togduck "+duck"; alias -togduck "bind "c" +untogduck"; alias +untogduck "-duck"; alias -untogduck "bind "c" +togduck"; bind "CTRL" "+ctrlduck"; bind c "+togduck";
Last edited by Uncle Soproni; Dec 8, 2020 @ 2:48am
Incendious Jun 18, 2024 @ 12:40pm 
Originally posted by STRATA_V1:
I've got a solution if you haven't already found one.

bind (your own key here) toggleDuck;
alias toggleDuck "enableDuck";
alias enableDuck "alias toggleDuck disableDuck; +duck";
alias disableDuck "alias toggleDuck enableDuck; -duck";

You will need to put them into an auto exec file for them to work continuously.
These codes will enable toggle presses to any button you assign.
Note: Be sure to have crouch function set to hold in the options menu, otherwise it will not work.

It works great for me!

still works 9 years later, ur a legend
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: Jul 31, 2014 @ 11:41am
Posts: 11