Simple configuration for CS2 that changes crosshair color and the cl_crosshair_recoil option based on what you are doing in-game.
- u/craygroupious: Reddit Post
- u/Vipitis: Reddit Post
- Follow Recoil toggle:
cl_crosshair_recoilturns on while holdingmouse1and turns off when you release it. - Color feedback: the crosshair turns bright green while Follow Recoil is active and cyan when it is not.
- Weapon binds manage mouse1: pressing
1/2/3not only selects the weapon slot but also rebindsmouse1so the config knows how to behave for that slot.
alias ColorActivated "cl_crosshaircolor_r 0; cl_crosshaircolor_b 0; cl_crosshaircolor_g 255; cl_crosshair_recoil true"
alias ColorDeactivated "cl_crosshaircolor_r 50; cl_crosshaircolor_b 255; cl_crosshaircolor_g 255; cl_crosshair_recoil false"Change the numbers in those lines if you want different colors or recoil behavior.
mouse1is bound to+shootr, which runs+attack, enables Follow Recoil, and sets the "activated" color. Releasingmouse1runs-shootr, stops attacking, disables Follow Recoil, and switches to the "deactivated" color.
alias "+shootr" "+attack; cl_crosshair_recoil true; ColorActivated"
alias "-shootr" "-attack; cl_crosshair_recoil false; ColorDeactivated"
bind "mouse1" "+shootr"- Pressing
2(primary weapons) executesslot1; bind mouse1 +shootr. You keep shooting normally and the Follow Recoil automation stays enabled. - Pressing
3(secondary weapons) executesslot2; bind mouse1 +attack. This restores the default shoot bind, so no automatic color/recoil changes happen on pistols. - Pressing
1(melee) executesslot3; bind mouse1 -shootr. Left click now only runs the "release" alias, which instantly disables Follow Recoil and applies the deactivated color. This stops accidental knife swings but also means you cannot attack until you switch back to slot 2 or 3.
bind "2" "slot1; bind mouse1 +shootr"
bind "3" "slot2; bind mouse1 +attack"
bind "1" "slot3; bind mouse1 -shootr"Keep the binds in the script consistent—if you change one, make sure the others are updated so that mouse1 behaves the way you expect.
- Copy the content of
autoexec.cfgfrom this repo. - Place it in your CS2 config folder, usually
C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg. - If
autoexec.cfgalready exists, merge the binds carefully so nothing important is overwritten. - Launch CS2 and run
exec autoexec.cfgin the developer console, or add+exec autoexec.cfgto your Steam launch options so it loads automatically.
Need tweaks? Ping @OhLasFar on Twitter for questions or suggestions.