Skip to content

Instantly share code, notes, and snippets.

@CompewterTutor
Last active November 4, 2020 00:04
Show Gist options
  • Select an option

  • Save CompewterTutor/7f2a6b72aeec3e59927cd7714f9fc19b to your computer and use it in GitHub Desktop.

Select an option

Save CompewterTutor/7f2a6b72aeec3e59927cd7714f9fc19b to your computer and use it in GitHub Desktop.
CS:GO Autoexec
echo " _____ __ _ "
echo " ____|__ // /___ __ __(_)___ ____ "
echo " / ___//_ </ / __ `/ |/_/ / __ \/ __ \"
echo " / / ___/ / / /_/ /> </ / /_/ / / / /"
echo "/_/ /____/_/\__,_/_/|_/_/\____/_/ /_/ "
echo ""
echo "CS:GO AutoExec Autoconfig latest source: "
echo "https://gist.github.com/CompewterTutor/7f2a6b72aeec3e59927cd7714f9fc19b"
echo ""
echo "Author: CompewterTutor (github.com/CompewterTutor)"
echo "----------------------------------------------------------------------------"
echo "Loading: autoexec.cfg..."
// ----------------------------
// ### Misc Game Settings ###
// ----------------------------
con_enable "1" //Enable the console
cl_disablefreezecam "1" //disable freezecam
cl_disablehtmlmotd "1" //disable ads/vids/stuff on community servers
cl_join_advertise "2" //allows friends to click your name and join server
cl_autowepswitch "0" //disable automatic weapon switch (grabbing more powerful weapon and switching)
// ----------------------------
// ### Viewmodel Settings ###
// ----------------------------
r_drawtracers_firstperson 0 //Remove 1st Person Tracers
viewmodel_fov "65"
//Reposition Gunmodel to CSS settings
//viewmodel_offset_x "2"
//viewmodel_offset_y "2"
//viewmodel_offset_z "-2"
//Remove arm shifting when crouching
cl_viewmodel_shift_left_amt "0"
cl_viewmodel_shift_right_amt "0"
//Removes weapon bob when running
cl_bob_lower_amt "0"
cl_bobamt_lat "0"
cl_bobamt_vert "0"
cl_bobcycle "2" //move scope less when moving scoped in, reduce bobbing effect
//set handedness of gun
cl_righthand "1"
//makes vents break into fewer pieces so you can see better
func_break_max_pieces 0
// ----------------------------
// ### Sound Settings ###
// ----------------------------
// snd_mixahead "0.05" //lower delay between sounds (.05 is default now)
snd_mute_losefocus "0" //enable game volume to play when alt tabbed
snd_hwcompat "0" //0 = Turns on HRTF and Sound Occlusion. Change to 1 to turn HRTF off.
// Mute all music except 10 second bomb warning
snd_musicvolume "0.3" // Master music volume level
snd_deathcamera_volume "0" // Music in deathcamera
snd_mapobjective_volume "0" // Music that starts when bomb is planted
snd_menumusic_volume "0" // Music in main menu
snd_roundend_volume "0" // Music when round ends
snd_roundstart_volume "0" // Music when round starts
snd_tensecondwarning_volume "0.2" // 10 Second bomb music timer (actually 9.7 seconds) (recommended on)
snd_headphone_pan_exponent 2 // allows you to hear footsteps better
// ----------------------------
// ### Matchmaking Settings ###
// ----------------------------
mm_session_max_ping 60 //set max ping
mm_csgo_community_search_playhers_min "7" //min amount of actual players on servers valve connects you to
cl_downloadfilter all //set options on downloads on community servers
// ----------------------------
// ### Network Settings ###
// ----------------------------
// Set interp and rate values to insure an optimial connection to game servers you join.
// Rate "80000" is default - you can also experiment with rate "128000" and other values higher than 80000.
// The lerp-value in your net_graph should be white (not yellow/orange/red!).
// If it isn't, change the value of cl_interp_ratio.
cl_interp 0
cl_interp_ratio 2 //
rate "786432" // MAX VALUE is 786432 for connections >= 6Mbps
cl_cmdrate "128" // 128 tick servers require this and update rate to be 128. Will default to 64 on lower servers.
cl_updaterate "128"
// cl_forcepreload "0" // NEVER SET THIS TO 1, Can cause stutters
//show netgraph. caution can be considered cheats in most leagues
//net_graph "3"
//net_graphpos "2"
//net_graphheight "0"
// ----------------------------
// ### HUD ###
// ----------------------------
hud_scaling "0.90" //1 is max
hud_showtargetid "1" //1 to enable the red playername target text
cl_hud_healthammo_style "0" //show HP and ammo without bars and bullet icons
cl_hud_playercount_pos "0"
cl_hud_color "8"
cl_hud_background_alpha "0.8" //adjust HUD bg opacity
cl_showloadout "1" //always show loadout at bottom right
cl_hud_playercount_showcount "0" // Shows the avatar and healthbars of players alive (For number only use 1)
cl_teamid_overhead_always 2 //Shows you where teammates are through walls
// Radar
cl_hud_radar_scale "0.85" //radar scale is set to distance of hearing (footsteps, defuses)
cl_radar_always_centered "0" //keeps radar centered
cl_hud_bomb_under_radar "1" //show bomb icon under radar instead of inventory
cl_radar_scale 0.3
cl_radar_icon_scale_min 1
cl_radar_rotate 1
cl_radar_square_with_scoreboard 1
// ----------------------------
// ### Crosshair ###
// ----------------------------
crosshair "1" //enable
cl_dynamiccrosshair "0" //static on movement
cl_crosshairgap_useweaponvalue "0" // Enable/disable different crosshairgap per weapon/s you're using ie. pistol, rifle, etc.
cl_crosshairgap "-2" //gap in center of crosshair
sfcrosshair "0" //disable new crosshair
cl_crosshairdot "0" // boolean for dot in center of crosshair
cl_crosshairthickness "2" //thickness of crosshair lines
cl_crosshaircolor "1" //actual crosshair color change
cl_crosshairusealpha "1"
cl_crosshairalpha "225"
cl_crosshairsize 3 // Change size higher or lower for larger or smaller crosshair
cl_crosshair_drawoutline "0" // Places an outline around the crosshair itself
cl_crosshair_outlinethickness "1" // Thickness of the outline - edit in .5 values
//cl_crosshaircolor_r "0" //THE R G AND B variables here are deprecated, use cl_crosshaircolor "value"
//cl_crosshaircolor_g "255"
//cl_crosshaircolor_b "0"
// ----------------------------
// ### Mouse Settings ###
// ----------------------------
m_rawinput "1"
m_mouseaccel1 "0"
m_mouseaccel2 "0"
sensitivity ".7"
// ----------------------------
// ### Keybindings ###
// ----------------------------
// Buy Binds
bind "KP_PLUS" "buy vest; buy vesthelm" //Kevlar Vest $650, Kevlar and helmet $1000
bind "KP_MINUS" "buy defuser" //Defusal Kit $400
bind "KP_PGUP" "buy smokegrenade" //Smoke Grenade $300
bind "KP_HOME" "buy hegrenade" //He Grenade $300
bind "KP_UPARROW" "buy flashbang" //Flashbang $200
bind "KP_DOWNARROW" "buy molotov; buy incgrenade" //Molotov & Incendiary Grenade $850
bind "KP_END" "buy deagle" //Desert Eagle $800
bind "KP_LEFTARROW" "buy galilar; buy famas" //Galil AR $2000, FAMAS $2550
bind "KP_5" "buy ak47; buy m4a1" //AK-47 $2700, M4A4 $3100
bind "KP_RIGHTARROW" "buy awp" //AWP $4750
// Movement Binds
// Crouch Jump
alias +cjump "+jump; +duck"
alias -cjump "-jump; -duck"
bind "v" +cjump
// JumpThrow (against the rules in some competitions and LANs)
alias "+jumpthrow" "+jump;-attack;-attack2"
alias "-jumpthrow" "-jump"
bind "t" "+jumpthrow"
// Grenade Lineup
bind "p" "toggle cl_crosshairsize 3 500" //toggles the crosshair being huge for lining up nades
// Drop Bomb and keep primary out
alias +dropBomb "use weapon_knife; use weapon_c4; drop"
alias -dropBomb "slot2l slot1"
bind x +dropBomb
//Fake Flashbang (throws pistol)
alias "pstlsfake" "use weapon_knife;use weapon_hkp2000;use weapon_glock;use weapon_elite;use weapon_p250;use weapon_deagle;use weapon_fiveseven;use weapon_tec9;drop;slot1"
bind "x" "pstlsfake"
// Fast Flash (33% faster flashbang)
bind "g" "use weapon_knife; use weapon_flashbang;"
// Misc Binds
bindtoggle "l" cl_righthand //bind L key to swap handedness
bind "f" "+lookatweapon;r_cleardecals" //inspect clears level devals
// ----------------------------
// ### Graphics Settings ###
// ----------------------------
mat_bloom_scalefactor_scalar 0
fps_max "0" //unlimited
r_dynamic 0 //Turn off dynamic shadows
//Resolution
-w 2560 -h 1440
//Comment out the line below in order to toggle off saving these settings to config.cfg
host_writeconfig
echo "autoexec.cfg successfully loaded."
echo "---------------------------------"
echo "Useful launch options: -novid -"
alias prac exec "practicecfg"
// ----------------------------
// ### FOR REFERENCE ###
// ----------------------------
// ----------------------------
// ### Keyboard Key Shortnames ###
// ----------------------------
// KP_MULTIPLY - "*"
// KP_SUBTRACT/MINUS - "-"
// KP_PLUS - "+"
// KP_INS - 0 / Ins
// KP_DEL - "." / Del
// KP_END - 1 / End
// KP_DOWNARROW - 2 / Down Arrow
// KP_PGDN - 3 / Page Down
// KP_LEFTARROW - 4 / Left Arrow
// KP_5 - 5 (Centre Button)
// KP_RIGHTARROW - 6 / Right Arrow
// KP_HOME - 7 / Home
// KP_UPARROW - 8 / Up Arrow
// KP_PGUP - 9 / Page Up
// -- Special Keys
// ENTER, SPACE, SHIFT, CTRL, PAUSE, ALT, BACKSPACE, TAB, CAPSLOCK
// -- Scroll/Navigation Keys
// INS, DEL, HOME, END, PGUP, PGDN
// -- Misc. Keys
// , . / \ ; ' * [
// ----------------------------
// ### Weapon Shortnames ###
// ----------------------------
//Pistols:
//glock - Glock 20 (T Only)
//hkp2000 - P2000
//p250 - P250
//elite - Dual Elites
//deagle - Desert Eagle/Deagle
//tec9 - Five Seven (CT Only)
//tec9 - Tec 9 (T Only)
//Sub-Machine Guns/PDW's:
//mp9 - MP9 (CT Only)
//mac10 - Mac 10 (T Only)
//mp7 - MP7
//p90 - P90
//bizon - PP-19 Bizon
//ump45 - UMP .45
//Shotguns:
//nova - Nova
//xm1014 - XM 1014
//mag7 - MAG 7 (CT Only)
//sawedoff - Sawed Off (T Only)
//Machine Guns:
//negev - Negev
//m249 - M249
// Rifles:
//sg008 - SG 008 Sniper/Scout
//awp - AWP Sniper
//ak47 - AK 47 (T Only)
//galilar - Galil (T Only)
//sg556 - SG 556 (T Only)
//g3sg1 - G3 SG1 (T Only)
//famas - Famas (CT Only)
//m4a1 - M4A4 (CT Only)
//m4a1-s - M4A1 Silenced (CT Only)
//aug - AUG (CT Only)
//scar20 - Scar 20 (CT Only)
// Grenades:
//hegrenade - Basic Grenade
//flashbang - Flashbang
//smokegrenade - Smoke Grenade
//decoy - Decoy Grenade
//molotov - Molotov (T Only)
//incgrenade - Incindiary Grenade (CT Only)
//Gears:
//defuser - Defuse Kit
//vest - Kevlar
//vesthelm - Kevlar+Helment
//OLD RELICS LONG AGO DISABLED/ILLEGAL/STUPID
//echo " ==========================================================================="
//echo ":::::::.. .::. ::: :::. .,:: .:::: ... :::. :::."
//echo ";;;;``;;;;;'`';;, ;;; ;;`;; `;;;, .,;; ;;; .;;;;;;;.`;;;;, `;;;"
//echo " [[[,/[[[' .n[[ [[[ ,[[ '[[, '[[,,[[' [[[,[[ \[[,[[[[[. '[["
//echo " $$$$$$c ``"$$$. $$' c$$$cc$$$c Y$$$P $$$$$$, $$$$$$ "Y$c$$"
//echo " 888b "88bo,,,o888"o88oo,.__888 888, oP"``"Yo, 888"888,_ _,88P888 Y88"
//echo " MMMM "W" YMMP" """"YUMMMYMM ""`,m" "Mm,MMM "YMMMMMP" MMM YM"
//echo " ==========================================================================="
//Clutch bind
//alias "clutch" "clutchon"
//alias "clutchon" "voice_enable 0; gameinstructor_enable 1; cl_clearhinthistory; r_cleardecals; playvol //buttons\blip2 0.5; alias clutch clutchoff; say_team Voice Disabled, I can't hear anyone now."
//alias "clutchoff" "voice_enable 1; gameinstructor_enable 0; playvol buttons\blip1 0.5; alias clutch clutchon; //say_team Voice Enabled, I can hear you now."
//bind "n" clutch
// Main PRACTICE config
clear
// Server config
sv_cheats 1 // Enables cheat commands
mp_limitteams 0 // No player limit in teams
mp_autoteambalance 0 // No player balancing
mp_roundtime 60 // 60 minute round-timer
mp_roundtime_defuse 60 // 60 minute round-timer for de_ maps
mp_maxmoney 60000 // Money, max allowed
mp_startmoney 60000 // Money, starting amount
mp_freezetime 0 // Disables freezetime
mp_buytime 9999 // Buy anytime
mp_buy_anywhere 1 // Buy anywhere
sv_enablebunnyhopping 1 // Bhop: Enabled
//sv_autobunnyhopping 1 // Bhop: Auto-bhop enabled
//sv_airaccelerate 1000 // Bhop: Allows FAST air strafing
sv_infinite_ammo 1 // Ammo: infinite
ammo_grenade_limit_total 5 // Ammo: Allows you to hold all types of grenades
sv_grenade_trajectory 1 // Grenade trajectory visible
sv_grenade_trajectory_time 10 // Grenade trajectory time visible
sv_showimpacts 1 // Bullet impacts visible
sv_showimpacts_time 10 // Bullet impacts time visible
mp_ct_default_grenades "weapon_flashbang weapon_hegrenade weapon_smokegrenade weapon_decoy weapon_incgrenade" // Gives CT all grenades
mp_t_default_grenades "weapon_flashbang weapon_hegrenade weapon_smokegrenade weapon_decoy weapon_molotov" // Gives T all grenades
bot_kick // Kicks bots
mp_warmup_end // Ends warmup
mp_restartgame 1 // Restarts the game
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment