How to Make an Autoexec for CS:GO

When getting into Counter-Strike: Global Offensive, like with past iterations of Counter-Strike, you may notice that there are certain actions that you tend to repeat over and over again. This is common with most other games as well, but these actions in particular are those that could use a bit of speeding up in order for players to focus more on the gameplay itself.

This includes the settings that you’d usually have to enter in the console, which can be quite a chore to type every single time you start up the game. that’s where the autoexec comes in to alleviate that problem.

The autoexec.cfg is basically a configuration file that you put into the cfg directory of CS:GO on your computer to automatically execute commands on start up, hence the name. These commands typically change settings in the game that can alter the gameplay experience, whether it’s an indicator on the screen to show certain things to changing the appearance and even behavior of certain things in the game.

For a lot of veteran players, this is important since they’re comfortable with certain settings which let them play optimally.

This is useful for players who like to set exact numerical values rather than just using a slider for certain settings like mouse sensitivity, sound volume, and so on.

But this is especially useful for adjusting settings that are not available via the in-game menus, like fps_max, HUD options, and so on. This is not the same as cheating, which would require the alteration of the game itself and is can most likely result in a VAC ban.

If you are interested in these settings, as well as making an autoexec to use them, then here are some instructions on just that.

Procedures

Creating an autoexec file from scratch can be done through Notepad; just enter the commands you want to be executed on startup then save as “autoexec.cfg” with “All Files” selected as the save as type. The file must be put in the cfg folder of the CS:GO directory (usually in your steamapps/common folder) in order to be usable by the game.

Next thing to do is to make CS:GO know that you want to use the autoexec, so you need to put in a parameter that contains a command to run autoexec on startup. To do that, go to your Steam library and bring up the properties of Counter-Strike: Global Offensive through the right-click menu. Click on the Set Launch Options button and enter “+exec autoexec.cfg”, then click OK.

Aside from that, you can enter other common CS:GO launch options for disabling the video intro, turning on the console, 128tic local server, and so on here. They are the following:

-console -novid -high -threads 4 +exec autoexec.cfg -tickrate 128

Commands

For those who are not familiar with the commands that usually go into an autoexec file, here are some that you may be interested in. They are divided into four categories—HUD options, mouse options, graphics options, and other useful tweaks. You may not be interested in all of them, and you don’t have to be; you can just pick whatever you find to be useful and just not bother with the rest.

HUD options include those that affect the appearance of your health and ammo indicators and other on-screen visual elements excluding the 3D graphics. This includes being able to change the size and scale of the radar, which can be a big help if you happen to use the radar prodigiously to detect nearby enemy presence.

HUD Options (color, icons, inventory)
  • cl_hud_healthammo_style “0” // show HP and ammo without bars and bullet icons

  • hud_showtargetid “0” // Shows enemy name on screen

  • cl_hud_playercount_pos “0” // Position for the playercount on screen

  • cl_hud_radar_scale “1” // Changes the size/scale of the radar

  • cl_hud_playercount_showcount “1” // forces show all players in the player count

  • cl_hud_color “8” // Changes UI Color for HUD HP, Ammo, Money etc

  • cl_hud_background_alpha “0.5” // Adjust HUD background alpha for colored elements

  • cl_hud_bomb_under_radar “1” // shows bomb icon under radar instead of inventory

Mouse options are very important in CS:GO since mouse accuracy is so important to all players. Being able to tweak your how your mouse moves according to your style of play can help with your performance. You can also change how your crosshair looks, from how big it is to the color and thickness of the reticles. You can also change the width of the space in the center of the crosshair, just in case you want to see exactly where your shot may hit.

Mouse Settings (sensitivity, color, crosshair styles)

sensitivity .35 (raise or lower this value)

  • cl_crosshairdot “0” // The dot in the center of the crosshair

  • cl_crosshairgap “-2” // The amount of space in the center of the crosshair

  • cl_crosshairgap_useweaponvalue “0” // Enable/disable different crosshairgap per weapon/s you’re using ie. pistol, rifle, etc.

  • cl_crosshairthickness “1” // Thickness of crosshair

  • cl_crosshairscale “0” // Scale of crosshair (outdated)

  • cl_crosshairsize 3 // Change size higher or lower for larger or smaller crosshair

  • cl_crosshairstyle 5 // Values = 1-5 , 5 is the “active” crosshair that spreads.

  • cl_crosshair_drawoutline “0” // Places an outline around the crosshair itself

  • cl_crosshair_outlinethickness “1” // Thickness of the outline – edit in .5 values

  • cl_crosshair_dynamic_maxdist_splitratio “0.35” // * These values change how far the crosshair can split on crosshair style 5

  • cl_crosshair_dynamic_splitalpha_innermod “1” // * These values change how far the crosshair can split on crosshair style 5

  • cl_crosshair_dynamic_splitalpha_outermod “0.5” // * These values change how far the crosshair can split on crosshair style 5

  • cl_crosshair_dynamic_splitdist “7” // * These values change how far the crosshair can split on crosshair style 5

  • cl_crosshairusealpha “1” // Enable/disable crosshair alpha

  • cl_crosshairalpha “200.000000” // Opacity of the crosshair

  • cl_crosshaircolor “1” // Color of the crosshair

  • cl_crosshaircolor_b “255” // * Manually edits crosshair colors (outdated) use

  • cl_crosshaircolor

  • cl_crosshaircolor_g “255” // * Manually edits crosshair colors (outdated) use

  • cl_crosshaircolor

  • cl_crosshaircolor_r “50” // * Manually edits crosshair colors (outdated) use

  • cl_crosshaircolor

  • m_rawinput “1”

  • m_mouseaccel1 “0”

  • m_mouseaccel2 “0”

  • sensitivity “.7”

Graphics options are obviously what you can do to change the look of whatever is on screen excluding the HUD elements. Most of these settings deal with character models and other things, as well as the performance of the game. It is recommended that you look into them before you start modifying them in any way. Remember that the graphics look the way they are because that’s what the developers had intended them to be, so do your homework beforehand.

Graphics/Models Options (for performance/looks)
  • viewmodel_fov “68”

  • viewmodel_offset_x “2”

  • viewmodel_offset_y “2”

  • viewmodel_offset_z “-2”

  • cl_viewmodel_shift_left_amt “0”

  • cl_viewmodel_shift_right_amt “0”

  • cl_bob_lower_amt “0”

  • cl_bobamt_lat “0”

  • cl_bobamt_vert “0”

  • cl_bobcycle “2”

Other useful tweaks include performance tweaks and other commands that can potentially make your gameplay experience much better, or worse if you put in the wrong settings. Perhaps that latter statement is what makes commands like these something you should think carefully about before you start making changes.

Some Misc Settings and Useful Tweaks
  • fps_max “0”
  • cl_radar_always_centered “0” // Keeps the radar centered
  • cl_autowepswitch “0” // Will not auto-switch to weapons if you pick them up
  • cl_autohelp “1” // Enable/disable on screen hints (enemy, trade weapon, etc.)
  • cl_showhelp “1” // Show the hints on screen
  • cl_righthand “1” // 0 for left hand 1 for right hand or use bindtoggle <key> cl_righthand to give yourself one-key swapping between right/left handed
  • cl_forcepreload “1”
  • net_graph “1” // Shows net_graph stats (fps, rates, choke, etc.)
  • net_graphproportionalfont “0” // Changes the size of the net graph text
  • mm_dedicated_search_maxping “75” // Max server ping allowed in MM search
  • rate “128000” // This is your client rate, you may need to lower it if your net speed cannot keep up
  • cl_cmdrate “128” // 128 tick servers require this rate (64 will default to 64 for you, no need to edit)
  • cl_updaterate “128” // 128 tick servesr require this rate (64 will default to 64 for you, no need to edit)
  • cl_interp_ratio 1 // Common interp setting for MM/League
  • cl_interp 0 // Common interp setting for MM/League
  • tickrate 128 // If you launch a local server it will run at 128 tick (can also be done with -tickrate 128 put as launch option)

// Crosshair

cl_crosshairalpha “150” // Changes opacity/alpha of the crosshair color
cl_crosshaircolor “5” // Will give you a pink crosshair
cl_crosshaircolor_b “255” // Edits crosshair color manually
cl_crosshaircolor_g “0” // Edits crosshair color manually
cl_crosshaircolor_r “255” // Edits crosshair color manually
cl_crosshairdot “0” // Dot in the center of the crosshair
cl_crosshairscale “0” // Edits scale/size of crosshair
cl_crosshairsize “3” // Edits the size of the crosshair
cl_crosshairthickness “.75” // Changes thickness of the crosshair itself
cl_crosshairusealpha “0” // Forces use of alpha changes made here
cl_crosshairstyle “4” // 0 for new CSGO, 1 for static, 2 for old CS:S style (static), and 3 for old CS:S (dynamic)
cl_crosshair_drawoutline “1” // outlines the crosshair
cl_crosshair_outlinethickness “.5” // thickness of the outline

// Viewmodel

viewmodel_fov “68”
viewmodel_offset_x “2”
viewmodel_offset_y “2”
viewmodel_offset_z “-2”

// Bobbing and movement shifting

cl_viewmodel_shift_left_amt “0”
cl_viewmodel_shift_right_amt “0”
cl_bob_lower_amt “0”
cl_bobamt_lat “0”
cl_bobamt_vert “0”
cl_bobcycle “2”

// Audio

snd_mixahead “0.05”
snd_headphone_pan_exponent “2”
snd_musicvolume “0”

// Rates and Interpolation
// Change these as you see fit, test per your connection

cl_cmdrate “128”
cl_updaterate “128”
rate “128000”
cl_interp_ratio 1
cl_interp 0
tickrate 128

// Mouse commands

m_rawinput “1”
m_mouseaccel1 “0”
m_mouseaccel2 “0”
sensitivity “1.1” // Changes in-game sensitivity

// Miscellaneous Settings & UI/HUD Tweaks

cl_radar_always_centered “0”
cl_autowepswitch “0” // Will not auto-switch to weapons if you pick them up
cl_autohelp “0”
cl_showhelp “0”
cl_righthand “0” // 0 for left hand 1 for right hand
cl_forcepreload “1”
cl_hud_playercount_showcount “1” // forces show all players in the player count
cl_hud_color “4” // Changes UI Color for HUD HP, Ammo, Money etc
cl_hud_background_alpha “255” // Adjust HUD background alpha for colored elements
cl_hud_bomb_under_radar “1” // shows bomb icon under radar instead of inventory
cl_hud_healthammo_style “0” // show HP and ammo without bars and bullet icons
hud_showtargetid “1” // 1 to enable the red playername target text
net_graph “1” // Shows net_graph stats (fps, rates, choke, etc.)
mm_dedicated_search_maxping “100”
fps_max “0”

Source: Steam Community

In any case, if you do know what to do with them and are able to make them work for you, then using them with an autoexec should make your gameplay experience in CS:GO much better in the long run.

Leave a Comment