Skip to content

Instantly share code, notes, and snippets.

@BuriedStPatrick
Created April 26, 2024 16:55
Show Gist options
  • Save BuriedStPatrick/60ed1f8af20456e179e6c5a39855d7cb to your computer and use it in GitHub Desktop.
Save BuriedStPatrick/60ed1f8af20456e179e6c5a39855d7cb to your computer and use it in GitHub Desktop.
Counter-Strike 2 autoexec

Counter-Strike 2 autoexec

This is just my Counter-Strike 2 autoexec. Nothing fancy.

Installation

1. Install the autoexec.cfg file

  1. In Steam, right click the game Counter-Strike 2, expand Manage, then pick Browse local files.
  2. In the opened File Explorer, navigate to ./game/csgo/cfg and place the autoexec.cfg file.

2. Set the launch options to load the file

  1. In Steam, right click the game Counter-Strike 2.
  2. Choose Properties and navigate to the General tab.
  3. Set launch options to +exec autoexec.cfg -novid

The -novid argument isn't necessary but disables the video intro for the impatient among you.

echo "------------------------"
echo "--- Loading autoexec ---"
echo "------------------------"
// -- Viewmodel
viewmodel_offset_x 2
viewmodel_offset_y -2
viewmodel_offset_z -2
viewmodel_fov 68
// cl_bob_lower_amt 30
// cl_bobamt_lat 0.1
// cl_bobamt_vert 0.1
// cl_bobcycle 0
// cl_viewmodel_shift_left_amt 2
// cl_viewmodel_shift_right_amt 2
// -- Key binds
// --- Buy menu binds
bind "kp_1" "buy vest"
bind "kp_2" "buy vesthelm"
bind "kp_3" "buy defuser"
bind "kp_4" "buy m4a1; buy ak47"
bind "kp_5" "buy famas; buy galilar"
bind "kp_6" "buy ump45"
bind "kp_7" "buy flashbang"
bind "kp_8" "buy hegrenade"
bind "kp_9" "buy smokegrenade"
bind "kp_enter" "buy awp"
// --- Equip binds
bind "mouse3" "slot6" // Equip HE grenade
bind "mouse4" "slot7" // Equip Flashbang
bind "mouse5" "slot8" // Equip Smoke
// --- Bunny hopping on scroll wheel
Bind mwheeldown +jump;bind mwheelup +jump;bind space +jump
// -- HUD
cl_hud_radar_scale 2 // Scale radar up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment