Counter-Strike 2

Counter-Strike 2

View Stats:
I NEED HELP WITH BINDING: Bind toggle primary/secondary weapon for CS2
Does anybody know how to create a keybind for swapping between primary/secondary with a single key? There are other discussions on this in the past (for CSGO), but none of the commands I've seen work for CS2. Specifically, I want a keybind (for this example lets call key "c" our desired key for these executions) that can perform the following:

press c -> use weapon 1, or if not available, switch to weapon 2.
press c -> if weapon 1 is already equipped, switch to weapon 2.
press c -> if weapon 2 is already equipped, switch to weapon 1.
press c -> if weapon 1 and weapon 2 is not available, switch to weapon 3 (knife).

I don't know anything about commands, toggles, etc. so any help would be incredibly helpful to me and greatly appreciated. Thank you so much in advance!!! I love this community!!!
< >
Showing 1-2 of 2 comments
Chiyoko Jul 7, 2024 @ 10:42am 
I think it is not possible, since there is no way to make a condition for checking which weapon you have and equipped.

In the best case you can bind different configs to the "1" and "2" slots to rebind keys when you switch weapons, but it is not what you're looking for.
Chiyoko Jul 7, 2024 @ 10:54am 
For exactly this part:
Originally posted by Gorrum Defiler of Chastity:
press c -> if weapon 1 is already equipped, switch to weapon 2.
press c -> if weapon 2 is already equipped, switch to weapon 1.
You should make two configs:
name1.cfg
bind "c" "slot1; exec name2;"
name2.cfg
bind "c" "slot2; exec name1;"

Also add this to your config or use these commands through the console:
bind "1" "slot1; exec name2;" bind "2" "slot2; exec name1;

Then every time you switch weapons it whould bind the "c" key to another weapon. But still it can't know which exactly weapon you have.
For example, if you switch weapons through Q (lastinv) or pick up and eqiupping a weapon automatically the "c" key won't be rebinded.

Though commands might be not correct, since I don't remember them good enough, but it should be enough for basics you need.
Last edited by Chiyoko; Jul 7, 2024 @ 10:56am
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Jul 7, 2024 @ 10:37am
Posts: 2