// DazEErR CS:GO config
// Updated 16/3/2016

// Rates
rate "196608"
cl_cmdrate "128"
cl_updaterate "128"
cl_interp "0.0"
cl_interpolate 1
cl_interp_ratio "1"
cl_lagcompensation "1"

echo "Rate Settings loaded"

// NET

fps_max "300"
net_graph "0"
net_allow_multicast "1"
net_graphheight "100"
net_graphmsecs "400"
net_graphpos "2"
net_graphproportionalfont "0"
net_graphshowinterp "1"
net_graphshowlatency "1"
net_graphsolid "1"
net_graphtext "1"
net_maxroutable "1200"
net_scale "5"
net_steamcnx_allowrelay "1"
net_graphproportionalfont "0" // small netgraph font

echo "Net Settings loaded"

// Mouse
sensitivity "0.9"
zoom_sensitivity_ratio_mouse "1.1"
m_rawinput "1" // RInput via sourceGL instead
m_pitch "0.022"
m_customaccel "0"
m_mouseaccel1 "0"
m_mouseaccel2 "0"

echo "Mouse Settings loaded"

// Video
mat_monitorgamma "1"
mat_queue_mode "-1" // auto detect multi-core rendering
fps_max "144"
fps_max_menu "145"
r_dynamic "0"
r_drawtracers_firstperson "1"

echo "Video Settings loaded"

// Audio
volume "0.9"
voice_enable "1"
voice_scale "0.7" // receive volume
// windows_speaker_config "1" // headphone audio output
snd_musicvolume "0"
snd_mixahead "0.02" // sound delay
snd_front_headphone_position "53.2"
snd_rear_headphone_position "90.0"
snd_headphone_pan_exponent "1.2"
snd_headphone_pan_radial_weight "0.5"
snd_legacy_surround "0" // emulated surround sound
snd_mute_losefocus  "1" // mute game when alt-tabbed
lobby_voice_chat_enabled "0" // voice chat in lobby

echo "Audio Settings loaded"

// HUD
hud_scaling "0.70" // CS:S sized HUD
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.900000"
cl_draw_only_deathnotices "0"
cl_righthand "0"
cl_showloadout "1"
cl_showpos "0"
cl_showfps "1"
// Radar
cl_radar_always_centered "0"
cl_radar_rotate "1"
cl_radar_scale "0.50"
cl_radar_icon_scale_min "0.4"
cl_radar_square_with_scoreboard "0"
// Reposition gun model to mimic 1.6
// Viewmodel
viewmodel_fov 68
viewmodel_offset_x 2.5
viewmodel_offset_y 1.5
viewmodel_offset_z -1.5
viewmodel_presetpos 0
viewmodel_recoil 0

// Reduce gun shifting when crouching
cl_viewmodel_shift_left_amt "0"
cl_viewmodel_shift_right_amt "0"

// Reduce gun and scope shifting/bobbing when moving
cl_bob_lower_amt 21
cl_bobamt_lat 0.4
cl_bobamt_vert 0.25
cl_bobcycle 0.98;

echo "HUD Settings loaded"

// Crosshair
cl_crosshair_drawoutline "1"
cl_crosshair_dynamic_maxdist_splitratio "0"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "1.000000"
cl_crosshair_dynamic_splitdist "4"
cl_crosshair_outlinethickness "0"
cl_crosshairalpha "800"
cl_crosshaircolor "1"
cl_crosshaircolor_b "0.000000"
cl_crosshaircolor_g "0.000000"
cl_crosshaircolor_r "255.000000"
cl_crosshairdot "0"
cl_crosshairgap "-3"
cl_crosshairscale "600"
cl_crosshairsize "2"
cl_crosshairstyle "4"
cl_crosshairthickness "0"
cl_crosshairusealpha "1"
cl_crosshair_sniper_width "1"
cl_fixedcrosshairgap "-6"
cl_crosshair_friendly_warning "0"

// Debug accuracy (sv_cheats)
weapon_debug_spread_show "0" // show possible shot accuracy
weapon_debug_spread_gap "0.67"

echo "Crosshair Settings loaded"

// Misc
developer "0"
con_enable "1"
con_filter_enable "2" // print console on screen
con_filter_text "Damage " // highlight damage in console
ui_steam_overlay_notification_position "bottomright"
player_nevershow_communityservermessage "1"
mm_dedicated_search_maxping "50" // 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
cl_join_advertise "2" // let your friends join your community server without an invitation
cl_disablehtmlmotd "0"
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 in pepperinos afterlife
password ""

echo "Misc Settings loaded"

// Binds
unbind y
unbind u
unbind k
unbind alt
unbind f4
bind y "messagemode"
bind u "messagemode2"
bind v "+voicerecord"
bind  "TAB" "+ng"
bind space "+jump"
bind w "+forward"
bind a "+moveleft"
bind s "+back"
bind d "+moveright"
bind MWHEELDOWN "invnext"
bind MWHEELUP "invprev"
bind home "spectate"
bind mouse1 "+attack"
bind mouse2 "+attack2"
// bind mouse3 "bhopon" // toggle scroll wheel bhop
bind mouse4 "use weapon_smokegrenade"
bind mouse5 "use weapon_flashbang"
bind del "exec autoexec"
bind shift "+speed" // default
bind F "+lookatweapon; r_cleardecals"
bind g "drop" // default
bind h "bot_place;sm_sl" // places bot for practice + surf saveloc
bind n "+jumpthrow" // nade jump throw
bind t "showmouse;toggle cl_righthand 0 1" // mouse on scoreboard + toggle left/right hand situationally
bind - "toggle voice_scale 1 0" // toggle voice volume
bind = "toggle volume 0.55 0.2 0.3 0.1" // toggle game volume
bind f1 "say ;noclip;say .noclip;practice" // noclip + practice mode
bind f2 "rebuy"
bind f3 "bots" // bot warmup mode
bind f5 "sm_restart;surf" // kz/bhop/surf restart + surf settings
bind f6 "sm_tele" // surf
bind . "+ng"
bind / "-ng"
bind b "buymenu;impulse 101" // $$$
bind "q" "switchknife"

echo "Binds Set"

// Aliases
alias "switchknife" "slot3; bind q switchprimary"
alias "switchprimary" "slot1; bind q switchknife"
alias "showmouse" // for mouse on scoreboard
alias "+ng" "+showscores; net_graph 1" 
alias "-ng" "-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 "surf" "bind mouse4 +left;bind mouse5 +right;fps_max 800"
alias "practice" "sv_cheats 1;impulse 101;sv_showimpacts 1;sv_showimpacts_penetration 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 60;mp_buy_anywhere 1;mp_teammates_are_enemies 1;bot_stop 1;mp_warmup_end;" // practice mode
alias "bots" "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;bot_add_ct;bot_add_ct;impulse 101" // bot warmup mode
alias "pcount" "toggle cl_hud_playercount_showcount 0 1" // toggle the menu with escape to refresh the hud

echo "Aliases Set"

// Keypad buy binds
// bind kp_ins "buy vesthelm" // 0
// bind kp_del "buy vest" // .
// bind kp_enter "buy defuser" // Enter
// bind kp_end "buy hegrenade;give weapon_hegrenade" // 1
// bind kp_downarrow "buy flashbang;give weapon_flashbang" // 2
// bind kp_pgdn "buy smokegrenade;give weapon_smokegrenade" // 3
// bind kp_leftarrow "buy deagle;give weapon_deagle" //4
// bind kp_5 "buy incgrenade;buy molotov;give weapon_incgrenade;give weapon_molotov" // 5
// bind kp_rightarrow "buy decoy;give weapon_decoy" // 6
// bind kp_home "buy awp;give weapon_awp" // 7
// bind kp_uparrow "buy m4a1;buy ak47;give weapon_m4a1_silencer;give weapon_ak47;" // 8
// bind kp_pgup "buy famas;buy galilar;give weapon_famas;give weapon_galilar" // 9
// bind kp_slash "buy p90;give weapon_p90" // /
// bind kp_multiply "buy ump45;give weapon_ump45" // *
// bind kp_minus "buy sawedoff;buy mag7;give weapon_sawedoff;give weapon_mag7" // -
// bind kp_plus "buy fn57;give weapon_fn57;buy tec9;give weapon_tec9" // +

echo "Buy Binds Set"

voice_mixer_volume "0.77"
cl_use_opens_buy_menu 1 

host_writeconfig // write settings to config.cfg
echo ""
echo ""
echo "autoexec.cfg executed"
echo ""
echo ""
echo ""
