Skip to content

Instantly share code, notes, and snippets.

@jazmon
Last active October 9, 2017 17:15
Show Gist options
  • Save jazmon/30fdab4002c30239cc9515f6606fc1c8 to your computer and use it in GitHub Desktop.
Save jazmon/30fdab4002c30239cc9515f6606fc1c8 to your computer and use it in GitHub Desktop.
CSGO autoexec
// jaz's CS:GO config
// Updated 2017-10-04
// Rates
rate "786432" // max rate
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0.0"
cl_interp_ratio "1"
cl_interpolate "1"
cl_lagcompensation "1"
net_client_steamdatagram_enable_override "1" // SDR beta
// Mouse
sensitivity "0.5"
zoom_sensitivity_ratio_mouse "1.0"
m_rawinput "1"
m_pitch "0.022"
m_customaccel "0"
m_mouseaccel1 "0"
m_mouseaccel2 "0"
m_mousespeed "0"
// Video
mat_monitorgamma "1.6"
mat_queue_mode "-1" // auto detect multi-core rendering
fps_max "300" // render all the frames
fps_max_menu "60" // no need to render more in menus, as my monitor only supports 60Hz
r_dynamic "0"
r_drawtracers_firstperson "0"
// Audio
volume "0.7"
voice_enable "1"
voice_scale "1" // receive volume
voice_mixer_volume "1" // mic volume
windows_speaker_config "1" // headphone audio output
snd_use_hrtf "1"
snd_mix_async "1"
snd_mixahead "0.02" // sound delay
snd_pitchquality "1"
snd_ducking_off "1"
snd_front_headphone_position "90"
snd_rear_headphone_position "90"
snd_headphone_pan_exponent "1.2"
snd_headphone_pan_radial_weight "1"
snd_mute_losefocus "1" // mute game when alt-tabbed
dsp_enhance_stereo "0"
snd_musicvolume "0"
lobby_voice_chat_enabled "0" // voice chat in lobby
cl_mute_all_but_friends_and_party "0"
snd_async_flush
// HUD
hud_scaling "0.80"
hud_showtargetid "1"
cl_hud_background_alpha "0.100000"
cl_hud_bomb_under_radar "0"
cl_hud_color "1"
cl_hud_healthammo_style "1"
cl_hud_playercount_pos "0"
cl_hud_playercount_showcount "0"
cl_hud_radar_scale "0.950000"
cl_teamid_overhead_name_alpha "240"
cl_righthand "1"
cl_showloadout "1"
cl_showpos "0"
cl_showfps "0"
net_graph "0"
net_graphproportionalfont "0" // small netgraph font
// Radar
cl_radar_always_centered "0"
cl_radar_rotate "1"
cl_radar_scale "0.4"
cl_radar_icon_scale_min "0.4"
cl_radar_square_with_scoreboard "0"
// Reposition gun model to mimic source
//viewmodel_presetpos "0"
//viewmodel_fov "68"
//viewmodel_offset_x "2.500000"
//viewmodel_offset_y "0"
//viewmodel_offset_z "-1.500000"
// Reduce gun shifting when crouching
cl_viewmodel_shift_left_amt "0.5"
cl_viewmodel_shift_right_amt "0.5"
// Reduce gun and scope shifting/bobbing when moving
cl_bobcycle "0.98"
cl_bob_lower_amt "5"
cl_bobamt_lat "0.1"
cl_bobamt_vert "0.1"
// Crosshair
cl_crosshairstyle "4"
cl_crosshairsize "2"
cl_crosshairthickness "0.5"
cl_crosshairgap "-1" // classic
cl_fixedcrosshairgap "3" // new
cl_crosshairdot "0"
cl_crosshairusealpha "1"
cl_crosshairalpha "255"
cl_crosshair_drawoutline "1"
cl_crosshair_outlinethickness "1"
cl_crosshairgap_useweaponvalue "0"
cl_crosshair_sniper_width "1"
// White crosshair
cl_crosshaircolor "5"
cl_crosshaircolor_r "255"
cl_crosshaircolor_g "255"
cl_crosshaircolor_b "255"
// Debug accuracy (sv_cheats)
cl_weapon_debug_show_accuracy "0"
cl_weapon_debug_show_accuracy_duration "10"
weapon_debug_spread_show "0" // requires dynamic crosshair
weapon_debug_spread_gap "0.67"
// Misc
con_enable "1"
developer "0" // print console to screen
con_filter_enable "2"
con_filter_text "Damage "
ui_steam_overlay_notification_position "bottomright"
player_nevershow_communityservermessage "1"
mm_dedicated_search_maxping "80" // max ping for matchmaking games
mm_dedicated_force_servers ""
gameinstructor_enable "0"
option_duck_method "0"
option_speed_method "0"
cl_forcepreload "1"
cl_downloadfilter "nosound" // mapsonly pls volvo (possible security risk, no thx)
cl_join_advertise "2" // let friends join your game
cl_disablehtmlmotd "1" // possible security risk, no thx
cl_autohelp "0"
cl_showhelp "0"
cl_disablefreezecam "1"
spec_replay_autostart "0"
cl_dm_buyrandomweapons "0"
cl_teammate_colors_show "1"
cl_autowepswitch "0" // auto weapon switch on pickup
cl_use_opens_buy_menu "0" // `e` opening buy menu
cl_scoreboard_mouse_enable_binding "showmouse" // press `t` to enable mouse on the scoreboard
closeonbuy "0"
hud_takesshots "0" // scoreboard screenshot at end of match
// cl_clanid "" // rip afterlife
//password ""
// Binds
unbind y
unbind u
unbind k
unbind alt
unbind f1
unbind f3
unbind f4
bind l "toggleconsole"
bind v "+voicerecord"
bind q "lastinv"
bind w "+forward"
bind a "+moveleft"
bind s "+back"
bind d "+moveright"
bind z "radio1"
bind x "radio2"
bind c "radio3"
bind e "+use"
bind r "+reload"
bind t "use weapon_molotov;use weapon_incgrenade;showmouse" // molotov + mouse on scoreboard
bind f "+lookatweapon"
bind g "drop"
bind b "buymenu;impulse 101" // $$$
bind h "+spray_menu;bot_place" // places bot
bind n "+jumpthrow" // it's back!
//bind . "say .budibudibudibudi;say .ready;say !ready" // custom ready for pugs
//bind / "say ;say .dbserver; say .players" // bitcoins
bind tab "+ngscore"
bind shift "+speed; r_cleardecals"
bind ctrl "+duck; r_cleardecals"
bind space "+jump"
bind ralt "sm_saveloc;savepos" // surf sav loc + offline save pos
bind rctrl "sm_tele;loadpos" // teleport"
bind rshift "sm_restart;surf" // kz/bhop/surf restart + surf settings"
bind enter "messagemode"
bind \ "messagemode2"
bind home "spectate"
bind del "exec autoexec"
bind ins "warmup" // bot warmup
bind f2 "rebuy"
bind 1 "slot1"
bind 2 "slot2"
bind 3 "slot3"
bind 4 "slot4"
bind 5 "slot5"
bind 6 "say ;noclip;say .noclip;practice" // noclip + practice mode
bind 0 "toggle voice_enable"
bind - "toggle voice_scale 1 0" // toggle voice volume
bind = "toggle volume 0.7 0.1 0" // toggle game volume
bind [ "incrementvar cl_radar_scale 0 1 -.05" // decrease radar scale
bind ] "incrementvar cl_radar_scale 0 1 +.05" // increase radar scale
bind MWHEELDOWN "invnext"
bind MWHEELUP "invprev"
bind mouse1 "+attack"
bind mouse2 "+attack2"
bind mouse3 "bhopon" // toggle scroll wheel bhop
bind mouse4 "use weapon_smokegrenade"
bind mouse5 "use weapon_flashbang"
// Buy binds
bind "KP_INS" "buy deagle"
bind "KP_END" "buy hegrenade"
bind "KP_DOWNARROW" "buy flashbang"
bind "KP_PGDN" "buy smokegrenade"
bind "KP_LEFTARROW" "buy m4a1; buy ak47"
bind "KP_5" "buy vesthelm"
bind "KP_RIGHTARROW" "buy defuser"
bind "KP_HOME" "buy p250"
bind "KP_PGUP" "buy awp"
bind "KP_DEL" "buy molotov; buy incgrenade"
// Aliases
alias "showmouse" // for mouse on scoreboard
alias "+ngscore" "+showscores;net_graph 1"
alias "-ngscore" "-showscores;net_graph 0"
alias bhopon "bind MWHEELDOWN +jump;bind MWHEELUP +jump;bind mouse3 bhopoff"
alias bhopoff "bind MWHEELDOWN invnext;bind MWHEELUP invprev;bind mouse3 bhopon"
alias "+jumpthrow" "+jump;-attack"
alias "-jumpthrow" "-jump"
alias "savepos" "writeip;con_logfile cfg/banned_ip.cfg;getpos_exact;con_logfile ."
alias "loadpos" "exec banned_ip"
alias "surf" "bind mouse4 +left;bind mouse5 +right;fps_max 300"
alias "practice" "sv_cheats 1;impulse 101;sv_showimpacts 1;sv_showimpacts_penetration 1;sv_showbullethits 1;sv_infinite_ammo 2;ammo_grenade_limit_total 6;sv_grenade_trajectory 1;sv_grenade_trajectory_thickness 0.5;mp_freezetime 0;mp_roundtime_defuse 60;mp_buytime 9999;mp_buy_anywhere 1;mp_teammates_are_enemies 1;mp_solid_teammates 1;bot_stop 1;mp_warmup_end;" // practice mode
alias "warmup" "sv_cheats 1;god;mp_warmup_start;mp_warmup_pausetimer 1;mp_autoteambalance 0;mp_limitteams 0;mp_buy_anywhere 1;mp_randomspawn 1;mp_spawnprotectiontime 0;mp_respawn_immunitytime 0;sv_infinite_ammo 1;bot_quota_mode normal;bot_difficulty 3;bot_dont_shoot 1;bot_kick;mp_restartgame 1;bot_add_ct;bot_add_ct;bot_add_ct;bot_add_ct;bot_add_ct;bot_add_ct;bot_add_ct;impulse 101" // bot warmup mode
host_writeconfig // write settings to config.cfg
echo ""
echo ""
echo "autoexec.cfg executed"
echo ""
echo ""
echo ""
// Server configuration
sv_cheats 1
mp_limitteams 0
mp_autoteambalance 0
mp_freezetime 0
mp_roundtime 60
mp_roundtime_defuse 60
mp_roundtime_hostage 60
mp_maxmoney 99999
mp_startmoney 99999
mp_buytime 9999
mp_buy_anywhere 1
ammo_grenade_limit_total 5
sv_infinite_ammo 1
bot_kick
mp_warmup_end
// Grenade trajectory commands. Note – these don’t work on dedicated servers.
// For dedicated servers, use SourceMod plugin “Nade tails” instead.
sv_grenade_trajectory 1
sv_grenade_trajectory_time 10
// Show bullet impacts
sv_showimpacts 1
sv_showimpacts_time 10
mp_restartgame 1
// Print out so we know the config has been executed.
Say “Practice config enabled”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment