Counter-Strike 2

Counter-Strike 2

228 ratings
CS:GO Autoexec scripts and good to have things
By ✪ CuriS
Today I'll be making a guide on your "autoexec.cfg" file with some useful scripts, commands and a guide on how to use them properly. If you have any questions, feel free to message me on Discord -> CuriS#7205
   
Award
Favorite
Favorited
Unfavorite
startup (random commands and global aliases)
I would recommend having theese commands in your autoexec no matter what

cl_autowepswitch 0 //disables automatical weapon switching when you pick up a weapon
cl_use_opens_buy_menu 0 //E key no longer opens buymenu in spawn
viewmodel_recoil 0 //changed a few updates back, it's much easier to see where you're spraying with this command as the gun doesn't jump across your screen
cl_join_advertise "2" //allows your friends to join you in your community servers without an invite
bind mwheeldown +jump //easier to bunnyhop, you can bind either mwheeldown, mwheelup or both as you wish
LJ bind (KZ climb related)
A bind that helps you out with your longjumps

alias +ljbind "+duck; +jump; -forward; -back" //makes an alias to stop you from holding down W mid air after jumping and autocrouches instantly
alias -ljbind "-duck; -jump;" //stops crouch and jump to get max speed
alias "lj" "clear; bind space "+ljbind"; echo //type "lj" in console to enable it
alias "nolj" "bind space "+jump"; echo //type "nolj" in console to disable it
Rates
Update rates and lag compensation

cl_cmdrate "128" //sets cmdrate to update 128 times per second (128 tick)
cl_updaterate "128" //sets updaterate to update 128 times per second (128 tick)
cl_interp "0"
cl_interp_ratio "1" //use "1" if you have no packet loss; "2" if you have slight-medium packet loss problems and "3" for huge packet losses
cl_lagcompensation "1"
Audio setup
Set your audio settings as you'd like them so you never have to set them up again

volume "0.05" //volume
voice_enable "1" //enables voice chat so you can hear your teammates
voice_scale "0.1" //how loud your teammates are in game (1 being max and 0 being min)
windows_speaker_config "0" //sets it to Headset mode
snd_musicvolume "0.1" //sets music volume for Bomb defuse mode to X
snd_mute_losefocus "1" //1 mutes csgo when you're not tabbed into the game
lobby_voice_chat_enabled "0" //disables voice chat in lobby
Video settings
Basic video settings setup

mat_monitorgamma "1.6" //Sets brightness (works only in fullscreen), 1.6 brightest; 2.2 darkest
fps_max "0" //unlimits your fps
fps_max_menu "0" //unlimits your fps in menu
r_dynamic "1" //makes it easier to see flashes pop
r_drawtracers_firstperson "1" //having this set to 1 will make your spraying easier as you can go off of what you see as in where your bullets go if you mess up a spray
mat_savechanges //saves brightness settings
Mouse and sensitivity setup
Commands to set up sensitivity and disable acceleration

sensitivity "3" //sets your sensitivity to a set number
zoom_sensitivity_ratio_mouse "1" //ratio of your zoom sensitivity to regular sensitivity
m_rawinput "1" //enables raw input (so that windows sensitivity doesn't affect your ingame sensitivity)
m_customaccel "0" //disables mouse acceleration
m_mouseaccel1 "0" //disables mouse acceleration
m_mouseaccel2 "0" //disables mouse acceleration
Crosshair smoke
Changes your crosshair to be across the screen for easier nade lineups as shown in the image

alias "-crosshairsmoke" "cl_crosshairsize 0;cl_crosshairdot 1;cl_crosshairgap -5" //set yourf crosshairdot, crosshairsize and crosshairgap as you have on your crosshair HERE
alias "+crosshairsmoke" "cl_crosshairsize 1337;cl_crosshairdot 1;cl_crosshairgap 10" //leave this as is, that's the huge crosshair for lineups

Example :
Show Team Equipment (TOGGLE)
Shows utility and weapons over your teammates' heads even through walls, i use the key "Q" but you can rebind it to whatever you like

unbind "Q" //change "Q" with the key you want
alias "q1" ""+cl_show_team_equipment"; bind "Q" "q2"" //change "Q" with the key you want
alias "q2" ""-cl_show_team_equipment"; bind "Q" "q1"" //change "Q" with the key you want
bind "Q" "q1" //change "Q" with the key you want
Multikey nades
In short, it's a bind for, as it says, multikey nades. While holding a key (mine is "mouse5"), your 1-4 keys get rebound to nades in the following order : Molotov, Smoke; Flash; HE

alias defA bind 1 slot1 //don't change
alias defB bind 2 slot2 //don't change
alias defC bind 3 slot3 //don't change
alias defD bind 4 slot4 //don't change
alias keyA "bind 1 keyAA" //don't change
alias keyB "bind 2 keyBB" //don't change
alias keyC "bind 3 keyCC" //don't change
alias keyD "bind 4 keyDD" //don't change
alias keyAA "use weapon_molotov; use weapon_incgrenade" //don't change
alias keyBB "use weapon_smokegrenade" //don't change
alias keyCC "use weapon_flashbang" //don't change
alias keyDD "use weapon_hegrenade" //don't change
alias +keybinds "keyA; keyB; keyC; keyD;" //don't change
alias -keybinds "defA; defB; defC; defD;" //don't change
bind mouse5 "+keybinds" //change "mouse5" to whatever key you'd like"
Buy binds
Just a simple buy bind generator (not by me) and grenade buy binds I use
http://csgobuynds.com/buy-binds-generator.html#!/

bind "uparrow" "buy flashbang;"
bind "leftarrow" "buy smokegrenade;"
bind "downarrow" "buy molotov; buy incgrenade;"
bind "rightarrow" "buy hegrenade;"
Smoke practice
Hop into your own server, type "practice" in the console and you can now practice your lineups easily

alias "t1" "sv_cheats 1" //enables server side cheats
alias "t2" "mp_limitteams 0" //no teamlimit
alias "t3" "mp_autoteambalance 0" //disables team balace
alias "t4" "mp_roundtime 60" //sets roundtime to 1 hour
alias "t5" "mp_roundtime_defuse 60" //sets roundtime to 1 hour
alias "t6" "mp_maxmoney 60000" //sets maxmoney to 60k
alias "t7" "mp_startmoney 60000" //sets startmoney to 60k
alias "t8" "mp_freezetime 0" //disables pre-round time
alias "t9" "mp_buytime 999 //extends buytime to 999 seconds
alias "t10" "mp_buy_anywhere 1" //can buy anywhere
alias "t11" "sv_infinite_ammo 1" //infinite ammo
alias "t11" "ammo_grenade_limit_total 5" //can carry 5 nades
alias "t12" "bot_kick" //removes all bots from the server
alias "t13" "mp_warmup_end" //ends warmup instantly
alias "t14" "sv_grenade_trajectory 1" //enables grenade trajectory lines
alias "t15" "sv_grenade_trajectory_time 10" //grenade trajectory lines stay for 10 seconds
alias "t16" "bind alt noclip" //binds your "ALT" key to noclip
alias "t17" "give weapon_hegrenade;give weapon_flashbang;give weapon_smokegrenade;give weapon_incgrenade;give weapon_molotov;give weapon_decoy" //gives you full grenades
alias "t18" "god" //enables godmode
Alias "practice" "t1;t2;t3;t4;t5;t6;t7;t8;t9;t10;t11;t12;t13;t14;t15;t16;t17;t18"
Jumpthrow bind
unbind "c" //change "c" to any key you'd like
alias "+jumpthrow" "+jump;-attack" //don't change
alias "-jumpthrow" "-jump" //don't change
bind "c" "+jumpthrow" //change "c" to any key you'd like
Clutch bind
unbind "o" //change "o" to any key you'd like
alias "clutch" "clutchon" //don't change
alias "clutchon" "voice_enable 0; clutchsoundon; gameinstructor_enable 1; cl_clearhinthistory; r_cleardecals; playvol buttons\blip2 0.5; alias clutch clutchoff; volume 0.1; say_team ClutchBindOn." //change volume (underlined) to what you want your "clutch volume" to be
alias "clutchoff" "voice_enable 1; clutchsoundoff; gameinstructor_enable 0; playvol buttons\blip1 0.5; //don't change
alias clutch clutchon; volume 0.05; say_team ClutchBindOff." //change volume (underlined) to your default volume you use all the time
clutchoff //don't change
bind "o" clutch //change "o" to any key you'd like

alias "clutchsoundon" "volume 0.1; snd_deathcamera_volume 0; snd_mapobjective_volume 0.1; snd_musicvolume 0.3; snd_roundend_volume 0; snd_roundstart_volume 0; snd_tensecondwarning_volume 0.3" //change volumes as you want them to be
alias "clutchsoundoff" "volume 0.05; snd_deathcamera_volume 0.1; snd_mapobjective_volume 0.1; snd_musicvolume 0.1; snd_roundend_volume 0.1; snd_roundstart_volume 0.1; snd_tensecondwarning_volume 0.3" //change volumes as you want them to be
Scorenet (net_graph 1 while the scoreboard is enabled)
net_graph "1"
net_graphheight "9999"
alias "+scorenet" "+showscores; net_graphheight 0"
alias "-scorenet" "-showscores; net_graphheight 9999"
bind "TAB" "+scorenet"
displaydamage (top left corner of the screen)
bind "i" "displaydamage" //change "i" to any key you'd like
alias displaydamage "displaydamage_on"
alias displaydamage_on "con_filter_text Damage Given; con_filter_text_out Player:; con_filter_enable 2; developer 1; alias displaydamage "displaydamage_off""
alias displaydamage_off "con_filter_enable 0; developer 0; alias displaydamage "displaydamage_on"
Show crosshair settings in console
alias "a1" clear
alias "a2" echo "*********************************************";
alias "a3" echo "YOUR CURRENT CROSSHAIR SETTINGS;"
alias "a4" echo "*********************************************";
alias "a5" developer 2
alias "a6" con_filter_enable 1
alias "a7" con_filter_text cl_crosshair
alias "a8" host_writeconfig //
alias "a9" con_filter_text cl_fix
alias "a10" host_writeconfig //
alias "a11" developer 0
alias "a12" con_filter_enable 0
alias "a13" showconsole
alias "showcrosshair" "a1;a2;a3;a4;a5;a6;a7;a8;a9;a10;a11;a12;a13"
bind "ins" "showcrosshair" //change "ins" to any key you'd like
My full autoexec, Thanks for reading!
Thanks for reading through this guide. If you need any help, contact me on Discord - CuriS#7205 .

My autoexec
20 Comments
miches 1 Mar, 2022 @ 3:04pm 
noice
Polaris ★ Coller 9 Mar, 2019 @ 3:28am 
nice thx!
☆high velocity sim racing pleb 6 Mar, 2019 @ 10:35am 
thx bro
DungTien-_- 5 Mar, 2019 @ 7:17pm 
+rep
Lazy-K 5 Mar, 2019 @ 11:24am 
no purpose in uncapping fps in menu... it will only make csgo use all the power it can and degrade your hardware
☠TheK1dd☠#LOST AIM 5 Mar, 2019 @ 10:36am 
+rep
Compl1cated 5 Mar, 2019 @ 7:29am 
crosshair smoke doesnt work for me
OmegaLul 4 Mar, 2019 @ 9:53am 
very useful resource ;)
dingdong 3 Mar, 2019 @ 7:32pm 
@pp Boyz you just have to write practice in the console if you set it up correctly
@savage you probably mean sv_showimpacts 1
Terry 2 Mar, 2019 @ 4:43pm 
Every time i go in a private game i have to re put in the practice commands
pls help