Counter-Strike 2

Counter-Strike 2

107 人が評価
CS2: How to autoexec like me
作者: YOUNG BOSS
This guide guides you (pun intended) to setup autoexec.cfg like mine in CS2.
7
3
4
2
   
アワード
お気に入り
お気に入り
お気に入りから削除
Getting started
First things first. In your file explorer, select View-tab and check "File name extensions".

Create a new Text Document
autoexec.cfg
to
C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg

Make sure to replace
.txt
file extension to
.cfg
If you did it correctly, Windows should inform you: "If you change a filename extension, the file might become unusable. Are you sure you want to change it?". Even if this sounds dangerous, it's completely safe. Press "Yes".

Next, open the new
autoexec.cfg
in Notepad.
autoexec.cfg: header
Add header to your
autoexec.cfg
so in case you backup the file along with your CS:GO config, you can still tell them apart.

// CS2 // Launch options: +exec autoexec.cfg

autoexec.cfg: aliases
These are my aliases:

// Aliases alias +lineupcrosshair "cl_crosshairsize 1000" alias -lineupcrosshair "cl_crosshairsize 2" alias +radarzoom "cl_radar_scale 0.4; cl_radar_always_centered 0" alias -radarzoom "cl_radar_scale 0.7; cl_radar_always_centered 1"

  • lineupcrosshair: Lineup crosshair makes your crosshair very large, so it's easier to lineup more interesting utility
  • radarzoom: By default, my radar shows only my local surrounding. To see the whole map, I use this alias.
autoexec.cfg: binds
I like to have my binds in my configuration in case I try some different binds, I don't have to remember to unbind them. On a downside, I need to add new binds to my configuration if I need them.

ALERT! My autoexec unbinds all keys! This is safe if you follow this guide through.

// Binds unbindall

Movement binds. Quite self-explanatory.

// Movement binds bind "w" "+forward" bind "a" "+left" bind "s" "+back" bind "d" "+right" bind "CTRL" "+duck" bind "SHIFT" "+sprint" bind "MWHEELDOWN" "+jump" bind "MOUSE3" "+jump" bind "MOUSE_X" "yaw" bind "MOUSE_Y" "pitch"

Combat and slot binds are also not very interesting. I prefer F over E for +use

// Combat binds bind "MOUSE1" "+attack" bind "MOUSE2" "+attack2" bind "r" "+reload" bind "f" "+use" bind "g" "drop" // Slot binds bind "1" "slot1" bind "2" "slot2" bind "3" "slot3" bind "4" "slot5"

Grenade binds are something you'll definitely want. It's very slow to cycle through grenades. With these binds you can efficiently select exactly the grenade you need. These binds also use lineupcrosshair when held down. And that's not all! They also buy the grenades when you are in spawn.

// Grenade binds bind "e" "+lineupcrosshair; buy flashbang; slot7" bind "v" "+lineupcrosshair; buy incgrenade; slot10" bind "c" "+lineupcrosshair; buy smokegrenade; slot8" bind "x" "buy hegrenade; slot6" bind "z" "buy decoy; slot9"

So, you want to buy 2x flashes, a smoke and a molotov. It's as simple as pressing:

eecv

Wonderful!

In the UI binds, I have radarzoom binded to TAB, which is very easy to reach, so I can see what's going on without my hand leaving too far from movement keys. Scoreboard is binded to P. This keeps me focused to the game and I won't have scoreboard blocking my vision!

// UI binds bind "TAB" "+radarzoom" bind "b" "buymenu" bind "ESCAPE" "cancelselect" bind "p" "+showscores"

For communication; these are quite straight forward. Pinging is binded to Q for the same reason as TAB is radarzoom.

// Communication and console binds bind "ENTER" "messagemode" bind "y" "messagemode2" bind "q" "player_ping" bind "'" "toggleconsole"
autoexec.cfg: audio
// Audio volume "0.15" voice_scale "0" snd_deathcamera_volume "0" snd_mapobjective_volume "0" snd_menumusic_volume "0" snd_mvp_volume "0" snd_roundend_volume "0" snd_roundstart_volume "0" snd_tensecondwarning_volume "0.04"

I have almost all musics turned to 0, except 10-second warning music, because bomb defusing without kits takes 10 seconds. This way I know if I have time to defuse or not!

Volume is also lower than normal by default, so I can play aim_botz and deathmatch without the sounds blasting too hard.
autoexec.cfg: crosshair
// Crosshair apply_crosshair_code "CSGO-yu2R7-dSMPC-7mD6E-CrEaT-STc3K"

I am not sure if apply_crosshair_code works yet in CS2, but that's my crosshair code.
autoexec.cfg: HUD
// HUD hud_scaling "1.1" hud_showtargetid "1" cl_autohelp "0" cl_hud_color "8" cl_sanitize_player_names "0" cl_showloadout "1" +cl_show_team_equipment gameinstructor_enable "0"

For the HUD, I want the radar to be as big as possible. Radar is, in my opinion, heavily underrated in this game.

cl_showloadout is very useful, so you can see your utility and weapons at all times. This is very important setting that is missing from most players.

Otherwise, nothing too important. My HUD is yellow, because I think I can see it the best. Other good option is bright white. All help is disabled, so the messages are not in the way.
autoexec.cfg: mouse
Mouse settings are obviously very important for a tactical shooter.

// Mouse sensitivity "0.3525" zoom_sensitivity_ratio "0.818933027098955175"

My sensitivity is 0.3525 and DPI is 1600. This equals to eDPI (effective DPI) of 564, which is considered quite low.

zoom_sensitivity_ratio is interesting, and it's best explained in this Reddit thread: Why "0.818933027098955175" is the best zoom sensitivity for new players, riflers, and bad snipers.
autoexec.cfg: radar
As I said before, radar is heavily underrated. I think it's a very useful tool to have in-game. When you see a kill in the kill feed, you can use radarzoom bind and immediately tell where teammate or enemy died. You can see what your teammates are holding or where they are in the map.

// Radar cl_hud_radar_scale "1.3" cl_radar_always_centered "1" cl_radar_icon_scale_min "0.4" cl_radar_rotate "1" cl_radar_scale "0.7" cl_radar_square_with_scoreboard "0"

Radar is as big as it gets, so I can see everything well. Icons are as small as possible, so I can see where everything is as precisely as possible.

Radar is always centered and rotates as you rotate, so you can more easily tell where things are happening.
autoexec.cfg: video
For CS2, you really don't need any special video setting commands. I just have my FPS set to 0, in order to have lowest input latency as possible.

// Video fps_max "0"
autoexec.cfg: viewmodel
// Viewmodel viewmodel_presetpos "1" viewmodel_fov "54" viewmodel_offset_x "-2.0" viewmodel_offset_y "-2.0" viewmodel_offset_z "-2.0"

When I stream my game play, people don't forget to mention about my strange view model. It's centered and "close". This is also to gain competitive advantage. My reasoning is, it takes as little screen space as possible, so my gun does not hide enemies when I move around.
autoexec.cfg: final touches
Finally, I print a message to console which tells me my configuration is loaded. It also saves changes to my configuration, so they should persist even if I don't load my autoexec always.

echo "Loaded autoexec.cfg" host_writeconfig
Complete autoexec.cfg
Here is the complete autoexec.cfg.

// CS2 // Launch options: +exec autoexec.cfg // Aliases alias +lineupcrosshair "cl_crosshairsize 1000" alias -lineupcrosshair "cl_crosshairsize 2" alias +radarzoom "cl_radar_scale 0.4; cl_radar_always_centered 0" alias -radarzoom "cl_radar_scale 0.7; cl_radar_always_centered 1" // Binds unbindall // Movement binds bind "w" "+forward" bind "a" "+left" bind "s" "+back" bind "d" "+right" bind "CTRL" "+duck" bind "SHIFT" "+sprint" bind "MWHEELDOWN" "+jump" bind "MOUSE3" "+jump" bind "MOUSE_X" "yaw" bind "MOUSE_Y" "pitch" // Combat binds bind "MOUSE1" "+attack" bind "MOUSE2" "+attack2" bind "r" "+reload" bind "f" "+use" bind "g" "drop" // Slot binds bind "1" "slot1" bind "2" "slot2" bind "3" "slot3" bind "4" "slot5" // Grenade binds bind "e" "+lineupcrosshair; buy flashbang; slot7" bind "v" "+lineupcrosshair; buy incgrenade; slot10" bind "c" "+lineupcrosshair; buy smokegrenade; slot8" bind "x" "buy hegrenade; slot6" bind "z" "buy decoy; slot9" // UI binds bind "TAB" "+radarzoom" bind "b" "buymenu" bind "ESCAPE" "cancelselect" bind "p" "+bindedscoreboard" // Messages and console binds bind "ENTER" "messagemode" bind "y" "messagemode2" bind "q" "player_ping" bind "'" "toggleconsole" // Audio volume "0.15" voice_scale "0" snd_deathcamera_volume "0" snd_mapobjective_volume "0" snd_menumusic_volume "0" snd_mvp_volume "0" snd_roundend_volume "0" snd_roundstart_volume "0" snd_tensecondwarning_volume "0.04" // Crosshair apply_crosshair_code "CSGO-yu2R7-dSMPC-7mD6E-CrEaT-STc3K" // HUD hud_scaling "1.1" hud_showtargetid "1" cl_autohelp "0" cl_hud_color "8" cl_sanitize_player_names "0" cl_showloadout "1" +cl_show_team_equipment gameinstructor_enable "0" // Mouse sensitivity "0.3525" zoom_sensitivity_ratio "0.818933027098955175" // Radar cl_hud_radar_scale "1.3" cl_radar_always_centered "1" cl_radar_icon_scale_min "0.4" cl_radar_rotate "1" cl_radar_scale "0.7" cl_radar_square_with_scoreboard "0" // Video fps_max "0" // Viewmodel viewmodel_presetpos "1" viewmodel_fov "54" viewmodel_offset_x "-2.0" viewmodel_offset_y "-2.0" viewmodel_offset_z "-2.0" echo "Loaded autoexec.cfg" host_writeconfig
Launch options
To execute autoexec.cfg on game startup open your steam Library, right-click on Counter Strike, click "Properties" at the bottom of the list. In the "General" tab (selected by default) you can see "Launch options", where you enter:

+exec autoexec.cfg
Thanks for reading
That's all folks, I hope everyone learned something important from this guide!

Shoot heads and have fun!
59 件のコメント
ડᎧᓍ꒒ ރ da𝕚𝕤hō 2024年7月21日 0時33分 
what the bind for "spacebar" "+jump_" ?
YOUNG BOSS  [作成者] 2024年7月12日 13時12分 
@Hugo_Hugo_Hugo Video settings are usually not set in autoexec.cfg. In CS:GO, I remember I used to set my brightness level with mat_monitorgamma, but even that no longer exists in CS2.

Once you've set your video settings, you could try executing

host_writeconfig

in the console.

If that does not fix the issue, you can try something along the lines:

If your Steam/CS2 is installed in default directory, video settings are stored in

C:\Program Files (x86)\Steam\userdata\[your user id]\730\local\cfg\cs2_video.txt

Make sure the file is not read-only and if nothing else helps, at your own risk you could try deleting the file. You can take a backup, but I'd imagine "Verify integrity of game files" should restore it, if not restored on game startup.
✈Majonez_kielecki✈ 2024年7月12日 9時35分 
I have a question what are the video settings commands? I need them because my settings keep resetting to my old ones
Ryderlx2 2024年4月9日 23時44分 
how do i make one that reloads than inspects right after?
nonari 2023年11月15日 12時45分 
great guide and easy to follow, helped me out with autoexec.cfg issues
YOUNG BOSS  [作成者] 2023年11月12日 11時07分 
Cheers!
TX | Rizzlas 2023年11月11日 6時02分 
Thx for this man , my autoexec.cfg was not executing the commands in it anymore & I just added the lauch option "+exec autoexec.cfg" and it worked again , thx again :D
Tyyne Boostinen 2023年9月28日 10時10分 
+rep, very good instructions
DEX 2023年9月21日 9時29分 
+Rep best👹
+Rep killer👺
+Rep Good player 💜
+Rep Top Player 🔝
+Rep Clutch King 👑
+Rep 300 iq 🧠
+Rep ak 47 god👻
+Rep SECOND S1MPLE😎
+Rep relax teammate🤤
+Rep Killing Machine 😈
+Rep AWP GOD 💢
+Rep ONE TAP MACHINE 💢
+Rep add me pls😇
+Rep very nice and non-toxic player😈
+Rep nice flicks👽
dexter 2023年9月21日 9時00分 
+Rep best👹
+Rep killer👺
+Rep Good player 💜
+Rep Top Player 🔝
+Rep Clutch King 👑
+Rep 300 iq 🧠
+Rep ak 47 god👻
+Rep SECOND S1MPLE😎
+Rep relax teammate🤤
+Rep Killing Machine 😈
+Rep AWP GOD 💢
+Rep ONE TAP MACHINE 💢
+Rep add me pls😇
+Rep very nice and non-toxic player😈
+Rep nice flicks👽