Counter-Strike 2

Counter-Strike 2

Not enough ratings
How to make a AutoExec/CFG
By Morgeta
This is a guide that will show how to make an autoexec file or config file. This is really useful when you just don't want to type the commands in-game and can rather just use a script that just does it all for you.
   
Award
Favorite
Favorited
Unfavorite
The Basics of CFG Files
CFG files can be found everywhere and are not specific to Source. It is an abbreviation of configuration.

In Source games, a configuration file can be executed to perform a list of console commands. CFG files can be written in any other plain text editor. To create one, right-click the blank space in a folder, and go to New>Text file. Rename it to myconfig.cfg or whatever you want, as long as it ends in .cfg. You can then open it in your text editor and put commands in.

CFGs must be placed in the game root's cfg folder, for example "csgo\cfg".
Normally, the file autoexec.cfg is run when the game starts up, so you can easily put any commands that you don't want to enter each time into that.

They can also be run from the console using "exec <cfgname>" where filename is the name of the configuration file, excluding its .cfg extension. Sometimes people put exec lines into the autoexec.cfg, so that other cfg files are executed when the game starts up. Configuration files can be placed in subdirectories of the cfg folder. The exec command would require you to include the subdirectories in the command.
How to get to your CFG Folder
To go to your CFG Folder in CS:GO, follow these directions.
  • First open up your File Explorer then go to "This PC"
  • Then go to your OS (C:) drive.
  • Go to your Program Files (32 Bit) or go to Program Files (x86) (64 Bit)
  • Go to Steam
  • Go to steamapps
  • Go to common
  • Go to Counter-Strike Global Offensive
  • Go to cfg
If your Steam directory is somewhere else then go to that location.










In here, you will find a list full of files with the extension of .cfg at the end of them. Now, we want to make our own config with our own useful commands to use and show.

I recommend the a program called "Notepad++" It is easier to edit .cfg files with this program.
https://notepad-plus-plus.org/
The steps of making your AutoExec
  • First right-click on the side of the folder
  • Click New and Create a Text Document
  • Rename the text document to autoexec.cfg
  • If you can't change the extension, then look it up on google as operating systems vary.
  • Right click on your autoexec.cfg file and then click "Edit with Notepad++"
  • As you can see it's empty so we need to put something in the autoexec.cfg.
  • Go back to your CFG File and then edit the config_default.cfg with Notepad++
  • Copy and paste everything by pressing CTRL+A and CTRL+C(You don't have to copy and paste the slashes at the top of config_default.cfg)
  • Paste that into your autoexec.cfg.
The reason we are putting these first set of commands is because it's the default binds for your keyboard. Just incase one of your keys accidently gets unbinded or gets binded to something else.

Now if you already have some binds and other commands that you have on your keyboard then go to the "config.cfg" file. Copy and paste everything in that file and paste it right below the default commands you just pasted.

Where the first part of your autoexec should look like:
Adding Custom/Helpful Commands
There are many commands in CS:GO that will help out your FPS and many other factors that appeal towards you.

TIP: You can use "//" to make comments in your CFG File

Let's first start with the primary commands:
con_enable 1 // Enables console
cl_righthand 1 // Makes your gun appear on the right side.

The bindings you can use:
bind f "+lookatweapon"
bind v +voicerecord // Records voice
bind [mwheelup or mwheeldown] +jump // Good for bunny-hopping with scroll wheel
bind kp_ins ignoremsg // Disables message/disables team messages/disables enemy team's
unbind i // Binds were useless on keyboard
unbind n
unbind o
unbind t
unbind ,
unbind .

// No Tutorial or Info Messages
gameinstructor_enable 0
cl_showhelp 0
cl_autohelp 0
cl_disablefreezecam 1 // Disables the close lookup on an enemy's face
cl_disablehtmlmotd 1

// Network Settings
rate 80000
cl_cmdrate 128
cl_updaterate 128
cl_interp_ratio 1
cl_interp 0
cl_lagcompensation 1
cl_predict 1
cl_predictweapons 1
cl_forcepreload 1

// Video
mat_monitorgamma 1.6
mat_monitorgamma_tv_enabled 0

// Sound
volume [0.05-0.3]
voice_scale 0.7
snd_mixahead 0.05
snd_musicvolume 0

// Net
fps_max "120" // Set this to the monitors Hz and then multiply it by 2 (I have 60 Hz)
fps_max_menu "120" // Set this to the monitors Hz and then multiply it by 2 (I have 60 Hz)
net_graph "1" //Enables Net Graph
net_graphheight "990"
net_graphmsecs "400"
net_graphpos "2"
net_graphproportionalfont "0" // Makes the Net Graph font smaller
net_graphshowinterp "1"
net_graphshowlatency "1"
net_graphsolid "1"
net_graphtext "1"
net_maxroutable "1200"
net_scale "5"
net_steamcnx_allowrelay "1"

// Bobcycle
cl_bob_lower_amt 5
cl_bobamt_lat 0.1
cl_bobamt_vert 0.1
cl_bobcycle 0.98
cl_viewmodel_shift_left_amt 0.25
cl_viewmodel_shift_right_amt 0.25

// Other
hud_scaling 1
r_drawtracers_firstperson 0 // hides bullets
cl_viewmodel_shift_left_amt 0 //These two removes the shifting of the arm when crouching down
cl_viewmodel_shift_right_amt 0
lobby_voice_chat_enabled 0 // Microphone off in lobby
cl_use_opens_buy_menu "0" // Disables E from opening buy-menu.
mm_dedicated_search_maxping 50 // Max ping when searching for match
snd_headphone_pan_exponent 2 // Hear noises easier
cl_timeout 1337 // Helps when you are timing out
zoom_sensitivity_ratio_mouse 1 // Same sensitivity when zooming with AWP

// Mouse
sensitivity [Sensitivity here]
m_forward 1
m_rawinput 1
m_mouseaccel2 0 // Accel removes accerlation
m_mouseaccel1 0
m_customaccel 0
m_customaccel_max 0
m_customaccel_exponent 0
m_customaccel_scale 0

// Hud Modification
hud_showtargetid "1" // Enables display of target names
cl_hud_bomb_under_radar 1
cl_hud_color 7
cl_hud_radar_scale 0.9
cl_radar_scale 0.9
cl_radar_always_centered 1
cl_hud_playercount_showcount 1
cl_hud_playercount_pos 1
cl_hud_healthammo_style 1
cl_hud_background_alpha 0
cl_loadout_colorweaponnames 1 // Show different colors for each weapon quality
cl_radar_icon_scale_min 0.8
cl_showloadout 1 // Don't fade out the loadout
hud_scaling 1
safezonex 0.85
safezoney 0.85

Put "host_writeconfig" at the bottom to write it to your config.cfg file.

// Crosshair Settings(Use Share Crosshair Feature)

// Viewmodel Settings(Use Share VM Feature)


Executing your Autoexec
Congratulations, you have made a autoexec.cfg file.
Wait, how do you execute this autoexec.cfg file?

  • Go to your Steam Library
  • Right-click on Counter-Strike: Global Offensive
  • Go to Properties
  • Go to General and click "Set Launch Options"
  • Type into your launch options, "+exec autoexec" (This will run it every time you start your CS:GO)
  • Run the game and go to your console
  • Type "exec autoexec" into the console, you only have to it this one time.

Congratulations you have made a autoexec file.
You can find other scripts to add to your autoexec.cfg file by just looking it up.
Here's a video of one:
Downloading my AutoExec
You can download my AutoExec file at this link:
{LINK REMOVED}

Just drag the folder into your CFG Folder and you should be good to go.
You can also make some minor changes to the folder as well.
9 Comments
eqweqwqeqw Oct 19, 2019 @ 2:48pm 
bind w +forward
bind s +back
bind a +moveleft
bind d +moveright
bind rightarrow +right
bind leftarrow +left
bind SHIFT +speed
bind SPACE +jump
bind CTRL +duck
bind e +use
bind MOUSE1 +attack
bind MOUSE2 +attack2
bind r +reload
bind q lastinv
bind g drop
bind ALT +lookatweapon
bind b buymenu
bind 1 slot1
bind 2 slot2
bind 3 slot3
bind 4 slot4
bind 5 slot5
bind MOUSE4 +voicerecord
bind ENTER messagemode2
bind y messagemode
bind TAB +showscores
bind m teammenu
bind kp_minus "toggleconsole"

-high -threads 4 -novid -nosrgb -swapcores -tickrate 128 -lv -r_emulate_gl -no_compressed_verts -softparticlesdefaultoff -useforcedmparms -noforcemspd -noforcemaccel -wavonly +mat_disable_fancy_blending 1 +mat_vignette_enable 0 -particles 512 -noqueuedload

-noaafonts
eqweqwqeqw Oct 19, 2019 @ 2:48pm 
suitvolume 0
snd_async_flush
snd_hwcompat 1
snd_mix_async 1
snd_mixahead 0.004
snd_surround_speakers 0
snd_pitchquality 0
snd_deathcamera_volume 0
snd_mapobjective_volume 0
snd_menumusic_volume 0
snd_roundend_volume 0
snd_roundstart_volume 0
snd_tensecondwarning_volume 0
snd_mvp_volume 0
snd_dzmusic_volume 0
snd_mute_losefocus 1
snd_ducking_off 0
snd_surround_speakers 0
snd_front_headphone_position 45
snd_headphone_pan_exponent 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
snd_headphone_pan_radial_weight 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
eqweqwqeqw Oct 19, 2019 @ 2:48pm 
cl_crosshair_drawoutline 0
cl_crosshair_dynamic_maxdist_splitratio 0
cl_crosshair_dynamic_splitalpha_innermod 0
cl_crosshair_dynamic_splitalpha_outermod 0
cl_crosshair_dynamic_splitdist 0
cl_crosshair_outlinethickness 0
cl_crosshair_sniper_show_normal_inaccuracy 0
cl_crosshair_sniper_width 0
cl_crosshair_t 0
cl_crosshairalpha 999
cl_crosshaircolor 5
cl_crosshaircolor_b 0
cl_crosshaircolor_g 999
cl_crosshaircolor_r 0
cl_crosshairdot 0
cl_crosshairgap -4
cl_crosshairgap_useweaponvalue 0
cl_crosshairscale 0
cl_crosshairsize 1
cl_crosshairstyle 4
cl_crosshairthickness 0
cl_crosshairusealpha 1

voice_scale 0.160
voice_caster_scale 0
voice_mixer_volume 0
voice_mixer_boost 0
voice_positional 0

dsp_enhance_stereo 0
eqweqwqeqw Oct 19, 2019 @ 2:48pm 
hud_scaling 1
cl_hud_background_alpha 0
cl_hud_bomb_under_radar 1
cl_hud_radar_scale 1.3
cl_hud_color 12
cl_hud_playercount_showcount 1
cl_hud_healthammo_style 1
cl_hud_playercount_pos 1
cl_hide_avatar_images 0

cl_radar_icon_scale_min 0
cl_radar_always_centered 1
cl_radar_scale 0
cl_radar_square_with_scoreboard 0

cl_showloadout 1
cl_use_opens_buy_menu 0
cl_predictweapons 1
cl_autowepswitch 0
cl_showhelp 0

cl_bob_lower_amt 0
cl_bobamt_lat 0
cl_bobamt_vert 0
cl_bobcycle 0

cl_interpolate 1
cl_interp 0.0000000000000000000000000000000000000000000000000
cl_interp_ratio 0
cl_cmdrate 128
cl_updaterate 128
cl_downloadfilter nosounds
cl_forcepreload 0
cl_predict 1
cl_predictweapons 1
cl_lagcompensation 1
cl_obs_interp_enable 0
cl_chatfilter_version 0
cl_join_advertise 1
cl_teamid_overhead_mode 2
cl_freezecampanel_position_dynamic 0
cl_invites_only_friends 0
cl_invites_only_mainmenu 0
cl_disablefreezecam 1
cl_disablehtmlmotd 1
eqweqwqeqw Oct 19, 2019 @ 2:48pm 
r_dynamic 0
r_drawtracers_firstperson 0
r_cheapwaterstart 0
r_cheapwaterend 0
r_eyegloss 0
r_eyegloss 0
r_eyeshift_x 0
r_eyeshift_y 0
r_eyeshift_z 0
r_eyesize 0

viewmodel_fov 68
viewmodel_offset_x 2.5
viewmodel_offset_y 2
viewmodel_offset_z -2
viewmodel_recoil 0

cl_viewmodel_shift_left_amt 0
cl_viewmodel_shift_right_amt 0

sensitivity 2.2316
zoom_sensitivity_ratio_mouse 1.073

mat_powersavingsmode 0
mat_monitorgamma 0
mat_monitorgamma_tv_enabled 0
mat_queue_report 0

m_forward 0
m_rawinput 1
m_pitch 0.022
m_yaw 0.022
m_side 0
m_mouseaccel1 0
m_mouseaccel2 0
m_mousespeed 0
m_customaccel 0
m_customaccel_exponent 0
m_customaccel_max 0
m_customaccel_scale 0
eqweqwqeqw Oct 19, 2019 @ 2:47pm 
developer 0
con_enable 1
con_filter_enable 2
con_filter_text 2
con_filter_text_out 2
safezonex 1
safezoney 1
dump_globals
dumpentityfactories
dumpeventqueue
sound_device_override 1
joystick_force_disabled 1
cpu_frequency_monitoring 0
spec_hide_players 0
hud_takesshots 0
gameinstructor_enable 0
muzzleflash_light 0
mm_dedicated_search_maxping 0
func_break_max_pieces 0
option_duck_method 0
option_speed_method 0
force_audio_english 1
sv_competitive_minspec 1
lobby_default_privacy_bits2 1
clear_anim_cache

cl_color 2
cl_chatfilters 999
cl_ragdoll_workaround_threshold 0
cl_rumblescale 0
cl_threaded_bone_setup 0

fps_max 0
fps_max_menu 0

rate 99999999999999999999999999999999999999
superduty Jul 18, 2016 @ 6:24am 
nice guide, Thanks !
cargo build --release Jan 9, 2016 @ 6:43am 
Nice guide
Morgeta  [author] Oct 3, 2015 @ 11:39pm 
Hope you enjoy this guide I made for Autoexec/CFG Files. The person in the videos is BananaGaming and you should check out his videos. He makes some nice videos on CS:GO.