Guest User

ActionToggle Switch by MrMaxim

a guest
Jan 4th, 2026
671
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.69 KB | None | 0 0
  1. // ---------------------------------------------------------------------------------------------
  2. // ActionToggle Switch by MrMaxim
  3. //
  4. // HOW IT WORKS: Hold MOUSE4 to make buttons do different things
  5. // Example: E normally opens doors. MOUSE4 + E pulls out HE grenade.
  6. // It's like holding Shift to type capitals, but for CS2 commands.
  7. //
  8. // INSTALLATION:
  9. // 1. Copy this entire script
  10. // 2. Go to: C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg
  11. // 3. Create a file called "autoexec.cfg" (or open it if you already have one)
  12. // 4. Paste this script inside and save
  13. // 5. Launch CS2 - it loads automatically
  14. // ---------------------------------------------------------------------------------------------
  15. // Part 1: NORMAL mode (what buttons do when you DON'T hold MOUSE4)
  16. alias defZ      "bind z radio"          // Z opens radio menu
  17. alias defX      "bind x slot12"         // X = healthshot
  18. alias defC      "bind c radio2"         // C opens radio menu 2
  19. alias defQ      "bind q lastinv"        // Q switches to last weapon
  20. alias defE      "bind e +use"           // E uses stuff (doors, bombs, etc)
  21. alias defF      "bind f +lookatweapon"  // F inspects weapon
  22. alias def1      "bind 1 slot1"          // 1 = primary weapon
  23. alias def2      "bind 2 slot2"          // 2 = pistol
  24. alias def3      "bind 3 slot3"          // 3 = knife
  25. alias def4      "bind 4 slot4"          // 4 = grenades
  26. alias defP      "bind p say gg"         // P says "gg" in chat
  27. // Part 2: SWITCHING mechanism (don't touch this, it's the magic that makes it work)
  28. alias keyZ      "bind z customZ"
  29. alias keyX      "bind x customX"
  30. alias keyC      "bind c customC"
  31. alias keyQ      "bind q customQ"
  32. alias keyE      "bind e customE"
  33. alias keyF      "bind f customF"
  34. alias key1      "bind 1 custom1"
  35. alias key2      "bind 2 custom2"
  36. alias key3      "bind 3 custom3"
  37. alias key4      "bind 4 custom4"
  38. alias keyP      "bind p customP"
  39. // Part 3: SPECIAL mode (what buttons do when you HOLD MOUSE4)
  40. alias customZ   "god"                   // MOUSE4 + Z = god mode (practice)
  41. alias customX   "noclip"                // MOUSE4 + X = fly through walls (practice)
  42. alias customC   "slot10"                // MOUSE4 + C = pull out molotov
  43. alias customQ   "slot7"                 // MOUSE4 + Q = pull out flashbang
  44. alias customE   "slot6"                 // MOUSE4 + E = pull out HE grenade
  45. alias customF   "slot8"                 // MOUSE4 + F = pull out smoke
  46. alias custom1   "autobuy"               // MOUSE4 + 1 = auto-buy weapons
  47. alias custom2   "buy flashbang; buy smokegrenade; buy molotov; buy hegrenade; buy defuser"  // MOUSE4 + 2 = buy all nades + kit
  48. alias custom3   "buy flashbang; buy smokegrenade; buy molotov; buy flashbang; buy defuser"  // MOUSE4 + 3 = buy nades (2 flashes)
  49. alias custom4   "say !r"                // MOUSE4 + 4 = restart bhop/surf run
  50. alias customP   "mp_team_intro_time 0; sv_grenade_trajectory_prac_pipreview 1; sv_grenade_trajectory_prac_trailtime 4; mp_buy_anywhere 1; mp_freezetime 0; mp_ignore_round_win_conditions 1; mp_buytime 99999; mp_startmoney 60000; mp_maxmoney 60000; ; ammo_grenade_limit_total 6; mp_autoteambalance 0; mp_limitteams 0; mp_warmup_pausetimer 1; mp_warmup_start; sv_cheats 1; sv_infinite_ammo 2; bot_kick"  // MOUSE4 + P = practice mode setup
  51. // Part 4: The ON/OFF switch (when you press/release MOUSE4, this runs)
  52. alias +secondaryaction "keyZ; keyX; keyC; keyQ; keyE; keyF; key1; key2; key3; key4; keyP"  // Turns on special mode
  53. alias -secondaryaction "defZ; defX; defC; defQ; defE; defF; def1; def2; def3; def4; defP"  // Turns off special mode
  54. // Part 5: Choose your toggle button (currently MOUSE4)
  55. bind mouse4 +secondaryaction  // Hold MOUSE4 to activate special mode
  56. // ---------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment