// https://developer.valvesoftware.com/wiki/List_of_Team_Fortress_2_console_commands_and_variables

// No texture streaming
no_texture_stream

con_enable 1
developer 0

fov_desired 90
viewmodel_fov 70
viewmodel_fov_demo 70

hud_medicautocallers 1
// 100 - 20.5*2 (2 small first aid kits)
hud_medicautocallersthreshold 59

hud_combattext_batching 1
hud_combattext_batching_window 1

tf_remember_activeweapon 1
tf_remember_lastswitched 1

// Demo recording
// All matches are recorded
ds_enable 2
ds_kill_delay 15
ds_min_streak 2
ds_dir demos
ds_notify 1
ds_sound 1
ds_screens 0
// Minimum killstreak to record
ds_min_streak 4

//Advanced options
hud_fastswitch 1
cl_autoreload 1
tf_colorblindassist 1
cl_use_tournament_specgui 0
cl_hud_playerclass_use_playermodel 1
cl_disablehtmlmotd 1
hud_classautokill 0
tf_medigun_autoheal 1
hud_medichealtargetmarker 1
tf_simple_disguise_menu 1
cl_autorezoom 0
tf_sniper_fullcharge_bell 1
tf_hud_no_crosshair_on_scope_zoom 0
tf_scoreboard_ping_as_text 1
tf_use_min_viewmodels 1
cl_hud_minmode 1
cl_spraydisable 0
tf_scoreboard_mouse_mode 2
hud_saytext_time 5
glow_outline_effect_enable 1

//filter out Error from console
con_filter_enable 1
con_filter_text_out "Error"

//self help
echo "----- When making a single player server run "exec listenserver.cfg" -----"
echo "----- When making a multiplayer server set "sv_lan" to 0 	-----"

//sanity filter
//breaks voice until reconnect
//voice_enable 0

// Load modern casual preloader
sv_pure -1
sv_cheats 1
exec preloader.cfg

exec loadouts/init.cfg
exec training.cfg
exec binds.cfg
// Sets hitsound settings
exec hit_tonal.cfg
host_writeconfig

echo "Done config"