r/CounterStrikeBinds • u/DarthKang • May 04 '26
Solved Bind to cancel toggle walk when shooting
I am returning to cs and I am trying to setup my config I had in csgo. I had it set so that walk was a toggle and when I shot it would shoot and turn walk off.
I had this bind in csgo:
alias "walk" "option_speed_method 1;+speed;bind shift run"
alias "run" "option_speed_method 0;-speed;bind shift walk"
bind "mouse1" "+attack;run"
bind "shift" "walk"
The bind works once, but it toggles off walk in settings so I have to go into settings again to turn on toggle walk after each use.
What do I need to change to fix this? *edit spelling
4
Upvotes
6
u/Puzzleheaded_Fox9828 May 04 '26
This is psychotic. I like it.
3
u/xdavidy May 05 '26 edited May 05 '26
This is the CS2 equivalent of your CS:GO script:
Unfortunately it does not work anymore. If you try to use it you will get this error:
Valve banned binding multiple actions to a single key to prevent null binds (perfect counter strafing). So it is not possible anymore with basic binds.
If you want to use this bind because you find it uncomfortable to hold down shift you can try using space for walking instead. Sounds weird at first but using your strongest finger for the button held down the most makes things way more comfortable.
1
u/Ok-Zookeepergame4552 May 07 '26
//alias toggleWalk toggleWalkOn
//alias toggleWalkOn "+!sprint; alias toggleWalk toggleWalkOff"
//alias toggleWalkOff "+!sprint; alias toggleWalk toggleWalkOn"
//bind shift toggleWalkOff
//bind mouse1 "+attack; toggleWalkOff"
////////////WASD WALKING
///////////////////////////
// | Toggle "Sprint" | ------------------------------
alias "+TogSprinta" "-!sprint;+a"
alias "-TogSprinta" "+!sprint;-a"
//bind "A" +TogSprinta
// | Toggle "Sprint" | ------------------------------
alias "+TogSprintd" "-!sprint;+d"
alias "-TogSprintd" "+!sprint;-d"
//bind "D" +TogSprintd
// | Toggle "Sprint" | ------------------------------
alias "+TogSprintw" "-!sprintw;"
alias "-TogSprintw" "+!sprintw;"
//bind "W" +TogSprintw
// | Toggle "Sprint" | ------------------------------
alias "+TogSprints" "-!sprint;+s"
alias "-TogSprints" "+!sprint;-s"
//bind "S" +TogSprints
//////////////////////////////////
// | Toggle "Sprint" | ------------------------------
alias "+TogSprint" "+!sprint;"
alias "-TogSprint" "-!sprint;"
bind "shift" +togsprint
-3
u/Cakk_ May 05 '26
Ai says this, might work
// 1. Define the Walk and Run states alias "walk_on" "+speed; bind shift walk_off" alias "walk_off" "-speed; bind shift walk_on"
// 2. The "Stop Walking" command for shooting alias "+shoot_run" "+attack; walk_off" alias "-shoot_run" "-attack"
// 3. Bind the keys bind "shift" "walk_on" bind "mouse1" "+shoot_run"