Skip to content

Instantly share code, notes, and snippets.

@sebastiandero
Last active September 28, 2023 23:35
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sebastiandero/9b312403550e9841229f19ef7d58c3f0 to your computer and use it in GitHub Desktop.
Save sebastiandero/9b312403550e9841229f19ef7d58c3f0 to your computer and use it in GitHub Desktop.
Autoexec.cfg for CS:GO
//~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--
//
//.----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------.
//| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |
//| | ________ | || | _________ | || | ____ ____ | || | _________ | || | ____ ____ | || | _ | || | _______ | |
//| | |_ ___ `. | || | |_ ___ | | || ||_ _| |_ _| | || | |_ ___ | | || | |_ _||_ _| | || | | | | || | / ___ | | |
//| | | | `. \ | || | | |_ \_| | || | \ \ / / | || | | |_ \_| | || | \ \ / / | || | \_| | || | | (__ \_| | |
//| | | | | | | || | | _| _ | || | \ \ / / | || | | _| _ | || | > `' < | || | | || | '.___`-. | |
//| | _| |___.' / | || | _| |___/ | | || | \ ' / | || | _| |___/ | | || | _/ /'`\ \_ | || | | || | |`\____) | | |
//| | |________.' | || | |_________| | || | \_/ | || | |_________| | || | |____||____| | || | | || | |_______.' | |
//| | | || | | || | | || | | || | | || | | || | | |
//| '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' || '--------------' |
// '----------------' '----------------' '----------------' '----------------' '----------------' '----------------' '----------------'
// _
// ___ _ _| |_ ___ ___ _ _ ___ ___
//| .'| | | _| . | -_|_'_| -_| _|
//|__,|___|_| |___|___|_,_|___|___|
// add '//' before lines you dont want
// move this file into <...>/Counter-Strike Global Offensive/csgo/cfg/
//
// Startup parameters for CS:GO, add these using steam
//-novid -nojoy -refresh 144 -nod3d9ex -high +exec autoexec.cfg
// more info: https://steamcommunity.com/sharedfiles/filedetails/?id=379782151
//~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--~~--
//Writes in config that autoexec.cfg is being executed
echo "DeVeX's autoexec.cfg started executing"
//~~--START Autoexec--~~
//Enables Console
con_enable "1"
//~~--Ingame Color Preference--~~
//0: yellow, 1: purple, 2: green, 3: blue, 4: orange
cl_color 3 = blue
echo "DeVeX's autoexec: Colors loaded!" //notify of new state
//~~--Buy Bindings--~~
//leftarrow -> rifle
unbind "LEFTARROW"
bind "LEFTARROW" "buy ak47; buy m4a1"
//downarrow -> awp
unbind "DOWNARROW"
bind "DOWNARROW" "buy awp"
//uparrow -> anti eco ump
unbind "UPARROW"
bind "UPARROW" "buy ump45"
//rightarrow -> cheap rifle
unbind "RIGHTARROW"
bind "RIGHTARROW" "buy galilar; buy famas"
//buy grenade and use slot4
unbind "4"
bind "4" "slot4; buy hegrenade;use weapon_hegrenade"
//buy flashbang and use flashbang
unbind "mouse4"
bind "mouse4" "buy flashbang;use weapon_flashbang"
//buy smoke and use it
unbind "mouse5"
bind "mouse5" "buy smokegrenade;use weapon_smokegrenade"
//buy vest and helm on r
unbind "r"
bind "r" "+reload;buy vesthelm;buy vest;"
//buy big pistol on 2 and use pistol on 2
unbind "2"
bind "2" "slot2; buy tec9"
echo "DeVeX's autoexec: Buy Binds loaded!" //notify of new state
//~~--Convenience Bindings--~~
//nade autojump
alias "+jumpthrow" "+jump;-attack"
alias "-jumpthrow" "-jump"
unbind c
bind c "+jumpthrow"
//nade crosshair, change the value to whatever sizes you want to toggle between
unbind x
bind x "toggle cl_crosshairsize 1 1000"
//clear decals with alt
unbind alt
bind alt "r_cleardecals"
//hold q to switch to knife and buy defuser, technically a buy bind too
alias "+knife" "slot3;buy defuser"
alias "-knife" "lastinv"
unbind q
bind q "+knife"
//GL HF
unbind F11
bind F11 "say Good Luck, Have Fun"
//Funny stuff I guess
unbind F10
bind F10 "say Eckstein, Eckstein, alles muss versteckt sein!"
// Maps, Starts a map when you type in the name in console
alias "aztec" "map de_aztec "
alias "cache" "map de_cache"
alias "cobblestone" "map de_cbble"
alias "dust" "map de_dust"
alias "dust2" "map de_dust2"
alias "inferno" "map de_inferno"
alias "mill" "map de_mill"
alias "mirage" "map de_mirage"
alias "nuke" "map de_nuke"
alias "overpass" "map de_overpass"
alias "seaside" "map de_seaside"
alias "season" "map de_season"
alias "train" "map de_tain"
alias "vertigo" "map de_vertigo"
echo "DeVeX's autoexec: Convenience Binds loaded!" //notify of new state
//~~--Crosshair--~~
// Crosshair
cl_crosshair_drawoutline "1"
cl_crosshair_dynamic_maxdist_splitratio "0.35"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.5"
cl_crosshair_dynamic_splitdist "7"
cl_crosshair_outlinethickness "1"
cl_crosshairalpha "255"
cl_crosshaircolor "5"
cl_crosshaircolor_b "192"
cl_crosshaircolor_g "255"
cl_crosshaircolor_r "0"
cl_crosshairdot "1"
cl_crosshairgap "0"
cl_crosshairgap_useweaponvalue "0"
cl_crosshairscale "0"
//dont forget to replace it in the jumpthrow bind aswell
cl_crosshairsize "1"
cl_crosshairstyle "4"
cl_crosshairthickness "0"
cl_crosshairusealpha "1"
cl_fixedcrosshairgap "-4.5"
echo "DeVeX's autoexec: Crosshair loaded!" //notify of new state
//~~--Disable Annoying Things--~~
// allow downloading server files to client
cl_allowdownload "1"
//Disable auto switching weapon on pickup, this will save your life
cl_autowepswitch "0"
//stop the auto help messages
cl_autohelp "0"
//for esea statspug you need to set this to 0
cl_disablehtmlmotd "1"
//no filtering of downloads aka download everything
cl_downloadfilter "0"
//removes help popups
cl_showhelp "0"
//forces the map to fully load before joining server, can help with lag spikes
cl_forcepreload "1"
//set to "1" if you want clan names of players in kill feed too.
cl_show_clan_in_death_notice "0"
//dont show fps onscreen
cl_showfps "0"
//always showing the loadout on screen
cl_showloadout "1"
//set to "1" if you want to see teammate colors
cl_teammate_colors_show "1"
//stop e from opening buy menu (why was that a thing??)
cl_use_opens_buy_menu "0"
//Filters damage in console
con_filter_text "damage"
//Filters damage in console
con_filter_enable "2"
//auto download newest workshop files
ds_get_newest_subscribed_files "1"
//you cannot see frames past your Hz and it prevents input stutter by cpu overload if you have load issues
//set it to "0" for no limit, this will lower your input lag
//Put your refresh rate +1 for best visuals
fps_max "142"
fps_max_menu "142"
//stop ingame lessons
gameinstructor_enable "0"
//Makes it easier to spot enemies
hud_showtargetid "1"
//No more than 100, limits your maxping in mm
mm_dedicated_search_maxping "50"
//Shows bullettracers in firstperson for spraycontrol
r_drawtracers_firstperson "1"
//Disables Freezecam, very important to have off
cl_disablefreezecam "1"
echo "DeVeX's autoexec: Disable Annoying Things loaded!" //notify of new state
//~~--Mouse Settings--~~
//Enable Raw Input, this skips windows mouse input processing (Raw input is unavailable on OSX)
m_rawinput "1"
//Disable Windows acceleration
m_mouseaccel2 "0"
m_mouseaccel1 "0"
//Disable custom acceleration
m_customaccel "0"
//Ingame mouse sensitivity eDPI = DPI * sensitivity (mine is 1050, 600 DPI)
sensitivity "1.8"
//the ratio between hipfire and scoped mouse speed
zoom_sensitivity_ratio_mouse "1.0"
echo "DeVeX's autoexec: Mouse Settings loaded!" //notify of new state
//~~--Netgraph In Scoreboard--~~
alias "+ng" "+showscores; net_graph 1; net_graphpos 2"
alias "-ng" "-showscores; net_graph 0"
unbind "TAB"
bind "TAB" "+ng"
net_graphheight "0"
net_graphpos "2"
net_graphproportionalfont "0"
net_graph "0"
echo "DeVeX's autoexec: Netgraph In Scoreboard loaded!" //notify of new state
//~~--Network Settings--~~
//Rates and Interpolation
//the transfer limit for game packets, adjust to internet speed, creds to Brody Vernon ~luvubro
//0.5 Mbps – rate 62500
//1.0 Mbps – rate 125000
//1.5 Mbps – rate 187500
//2.0 Mbps – rate 250000
//2.5 Mbps – rate 312500
//3.0 Mbps – rate 375000
//3.5 Mbps – rate 437500
//4.0 Mbps – rate 500000
//4.5 Mbps – rate 562500
//5.0 Mbps – rate 625000
//5.5 Mbps – rate 687500
//6.0 Mbps – rate 750000
//6.2 Mbps – rate 786432
rate "786432"
//The amount of updates you send the server. Aka Tickrate
cl_cmdrate "128"
cl_updaterate "128"
//dont change
cl_interp "0"
//used in calculating cl_interp 1: min, 5: max
cl_interp_ratio "1"
//Perform server side lag compensation of weapon firing events.
cl_lagcompensation "1"
//Perform client side prediction of weapon effects.
cl_predictweapons "1"
//set packet size to 1200 bytes which is the biggest possible
net_maxroutable "1200"
echo "DeVeX's autoexec: Nework Settings loaded!" //notify of new state
//~~--Video Settings--~~
//Sets the Brightness to it's highest value, highly recommended, should improve reaction time
mat_monitorgamma "1.6"
//Turn off TV Mode for less off-set light
mat_monitorgamma_tv_enabled "0"
echo "DeVeX's autoexec: Video Settings loaded!" //notify of new state
//~~--Head and Weapon Bob--~~
//How much the viewmodel lowers
cl_bob_lower_amt "5"
//How much the viewmodel moves side to side
cl_bobamt_lat "0.1"
//How much the viewmodel moves up and down
cl_bobamt_vert "0.1"
//The frequency at which the viewmodel bobs
cl_bobcycle "0.98"
//Removes shifting of arms
cl_viewmodel_shift_left_amt "0"
//Removes shifting of arms
cl_viewmodel_shift_right_amt "0"
echo "DeVeX's autoexec: Head and Weapon Bob loaded!" //notify of new state
//~~--Sound Settings--~~
//creds to Midair ~luvubro
// Overall Game volume (Min: 0 - Max: 1)
volume "0.8"
// suitvolume (has no function, but useless sounds set to 0)
suitvolume "0"
//MUSIC
// Music Volume - Allows the 7 commands below to be used and changed. If this is set to 0, then the 7 commands below are all set to 0 as well
snd_musicvolume "0.5"
// Music volume multiplier when Steam Overlay is active
snd_musicvolume_multiplier_inoverlay "1"
// Music volume at the main menu
snd_menumusic_volume "0"
// Music volume that plays at the start of the round
snd_roundstart_volume "0"
// Music volume that plays at the end of a round
snd_roundend_volume "0.1"
// Music volume that plays during the final 10 seconds of a round
snd_tensecondwarning_volume "0.1"
// Music volume that plays after you plant the bomb
snd_mapobjective_volume "0"
// Music volume that plays after you get killed
snd_deathcamera_volume "0"
//VOICE
// Enable voice system
voice_system_enable "1"
// Enable/disable voice in this mod (CS:GO)
voice_modenable "1"
// Disable voice chat in lobby
lobby_voice_chat_enabled "0"
// Enable voice communication
voice_enable "1"
// Volume of incoming Voice (Min: 0 - Max: 1)
voice_scale "0.4"
// def. 1 - Set the volume for your microphone in Windows (0.1 = 10% - 1 = 100%)
voice_mixer_volume "1"
// Enable microphone boost for your microphone in Windows
voice_mixer_boost "0"
// Enable/Disable microphone mute in windows
voice_mixer_mute "0"
//def. 4000 - At what mic level to start picking up sound (for non-push-to-talk setup)
voice_threshold "2000"
// def. 0 - Toggle voice transmit and receive for casters. 0 = no caster, account number of caster to enable
voice_caster_enable "0"
// When watching a game over GOTV, this will control the volume of the casters voice
voice_caster_scale "0.4"
// def. 0 - Get voice input from 'voice_input.wav' rather than from the microphone (0 = use microphone)
voice_inputfromfile "0"
// Loopback your voice to headphones/speakers (good for testing purposes)
voice_loopback "0"
// Turn off the microphone recording to a file, 1 = Record mic data and decompressed voice data into voice_micdata.wav
voice_recordtofile "0"
//SETUP
windows_speaker_config "1"// def. -1 - What audio setup to use (-1 = Automatic, 1 = Headset, 4 = StereoSpeakers, 3 = 4Speakers, 6 = 5.1 Surround)
// def. 0 - Enhanced (Software 3D) Stereo Sound (use with windows_speaker_config 1 or 4)
dsp_enhance_stereo "0"
// def. 1 - Mute Ingamesound when tabbing out of the Game, 0 = CS:GO sounds in Windows
snd_mute_losefocus "0"
// def. 0.1 - Soundbuffer size/length - Sounds are played faster for client
snd_mixahead "0.05"
// def. 0 - 1 = Workaround for people experiencing soundproblems under Windows Vista/7.
snd_legacy_surround "0"
// def. 1 - Makes the sound dropoff more gradual (2 = louder sound on distance, at the cost of worse in closecombat)
snd_headphone_pan_exponent "1.2"
// def. 1 - Apply cos(angle) * weight before pan law (Less aggressive fade of sound on distance, then value of 2)
snd_headphone_pan_radial_weight "0.5"
// Sound pitch quality
snd_pitchquality "1"
// Position (in degrees) of the virtual front left/right speakers (45 optional)
snd_front_headphone_position "90"
// Position (in degrees) of the virtual rear left/right speakers (135 optional)
snd_rear_headphone_position "90"
// def. 1 - Prefetch common sounds from directories specified in scripts/sound_prefetch.txt (Less audio files loading while playing)
snd_prefetch_common "1"
//SOUND DUCKING
// def. 1 - Lower game sounds when somebody is speaking (0 = Activate feature, 4 commands below)
snd_ducking_off "1"
// def. 0.55 - Volume to lower the sound to
snd_ducktovolume "0.7"
// def. 0.5 - How fast the sound goes from normal to ducktovolume and vice versa
snd_duckerattacktime "0.5"
// def. 2.5 - How long before volume goes back to normal
snd_duckerreleasetime "2.5"
// def. 0.15 - How long before the volume starts going lower
snd_duckerthreshold "0.15"
echo "DeVeX's autoexec: Sound Settings loaded!" //notify of new state
//~~--Hud Settings--~~
//Creds to Bananagaming :D ~luvubro
//Enables display of target names
hud_showtargetid "1"
//Draws bomb under radar, convenient
cl_hud_bomb_under_radar "1"
// Changes hud color
//0: Default, 1: White, 2: Light Blue, 3: Blue, 4: Purple, 5: Red, 6: Orange, 7: Yellow, 8: Green, 9: Aqua, 10: Pink, creds to JovialFeline ~luvubro
cl_hud_color "7"
//Radar Size
cl_hud_radar_scale "0.9"
//Radar Map Scale Size, 0.3 is perfect on all maps
cl_radar_scale "0.3"
//Centers map instead of player in radar, allows you to see all of the map all the time
cl_radar_always_centered "0"
//Shows player avatars instead of numbers left, allows you to see HP of team and who is alive
cl_hud_playercount_showcount "0"
//Puts player information in the bottom instead of top, 0: top, 1: bottom
cl_hud_playercount_pos "1"
//Simplified information on HP/AP and ammo
cl_hud_healthammo_style "1"
//Hidden but still visible black bars, easy on the eyes
cl_hud_background_alpha "0.2"
//Weapon names are colored in loadout to match their rarity
cl_loadout_colorweaponnames "1"
//Sets the minimum player icon scale
cl_radar_icon_scale_min "0.8"
//Stops loadout from fading out
cl_showloadout "1"
//Scales hud elements to maximum value
hud_scaling "0.95"
//Centers the hud closer to the middle left-right, useful on large screens
safezonex "0.85"
//Centers the hud closer to the middle top-bottom, useful on large screens
safezoney "0.85"
echo "DeVeX's autoexec: Hud Settings loaded!" //notify of new state
//Writes in config that autoexec.cfg was executed to the end
echo "DeVeX's autoexec.cfg finished executing!"
echo "GL and HF!"
//write autoexec it to steam user config directory
host_writeconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment