Two buttons on keyboard are changed by a script

AUTOEXEC (1/2) cl_hud_minmode 0 fps_max 0

exec protect.cfg tf_hud_target_id_disable_floating_health 1

// NETWORK SETTINGS cl_updaterate 66.666666 cl_cmdrate 66.666666 cl_interp_ratio 1.000000 cl_interp 0.152 // "0.33" for scout/heavy/engineer/sniper "0.152" for soldier/pyro/demo/medic/spy in class cfg's. rate 100000.000000 cl_smooth 0 cl_smoothtime 0.01 cl_pred_optimize "2"

//cl_showerror 0 //cl_showfps 1 //net_graph 1 //net_graphtext 1

// Time text chat displays for hud_saytext_time 5

// Damage number batching settings hud_combattext_batching 1 hud_combattext_batching_window 2.0

// MULTICORE RENDERING--SOME VALUES ONLY STABLE ON QUAD CORE AND/OR WITH INTEL! mat_queue_mode "2" // -1 = auto 0 = off 1 = Dual Core 2 = Multi

host_thread_mode "1" // set to "0" during single player, set to "2" for a possible bump in FPS if on quadcore

cl_threaded_bone_setup "1" cl_threaded_client_leaf_system "0" r_threaded_client_shadow_manager "1" // QUAD ONLY r_threaded_particles "1" r_threaded_renderables "1" r_queued_decals "0" r_queued_post_processing "1" // QUAD ONLY studio_queue_mode 1 mp_usehwmmodels "-1" mp_usehwmvcds "-1"

alias stabby "connect 66.150.188.38:27015" // example of how to connect to a favorite server using an alias. This connects you to my server by entering "stabby" in the console.

// Advanced Scoreboard (shows scoreboard, toggles filterlightmaps off, toggles "net_graph 4" on)

bind tab "+scoreboard" alias +scoreboard "+showscores//;net_graph 4;developer 1;cl_showerror 1;mat_filterlightmaps 1;mat_filtertextures 1;cl_detailfade 1;cl_detaildist 1" alias -scoreboard "-showscores//;net_graph 0;developer 0;cl_showerror 0;mat_filterlightmaps 0;mat_filtertextures 0"

/// SOUND MULTICORE snd_mix_async "1" snd_mixahead .07 // sets delay before a sound is played. Lower until sounds start to get cut off. snd_async_fullyasync 1 snd_async_spew_blocking 1 soundinfo

// toggle mute script bind "" "togglemute" alias togglemute "togglemuteb" alias togglemuteb "volume 0.0;alias togglemute togglemuter" alias togglemuter "volume 0.5;alias togglemute togglemuteb"

// SHADOWS r_flashlightdepthtexture "0" // def. "1" # 1 = High, 0 = Low r_shadowrendertotexture "2" // def. "" was "2" # 1 = High, 0 = Low r_shadowmaxrendered "9" // def. "" # Max. count of rendered Shadow [TF2-VideoConfigMenu: 0=min 32=High] "r_flashlightupdatedepth" = "0" r_flashlightrenderworld 0 r_flashlightscissor 0 r_flashlightdepthres 1 nb_shadow_dist = "200"

// RAGDOLLS cl_ragdoll_collide "1" // def. "0" # Collision between corpses on(1)/off(0) cl_ragdoll_forcefade "0" // def. "0" # If set to "1" then cl_ragdoll_forcefade is used cl_ragdoll_fade_time "15" // def. "15" # Fadingtime in seconds of corpses 0 => No Corpse cl_ragdoll_physics_enable "1" // def. "1" # Ragdollsystem for the corpses on(1)/off(0) | off meens corpses standing around with no animation r_ragdoll_pronecheck_distance g_ragdoll_fadespeed 600 g_ragdoll_lvfadespeed 100 ragdoll_sleepaftertime "5.0f"

// MOUSE sensitivity 2.500000 //jas go smeniv ova m_yaw 0.022000 m_pitch 0.022000 m_customaccel_exponent 0 m_customaccel_max 0 m_customaccel_scale 0 m_filter 0 m_forward 1 m_mouseaccel1 0 m_mouseaccel2 0 m_mousespeed 1 m_customaccel 0 m_rawinput 1 // set to "0" if using RInput.

// FOV viewmodel_fov 75 fov_desired 90

// PREC bind kp_5 prec_mark

// 3D Character Viewmodel cl_hud_playerclass_playermodel_showed_confirm_dialog "1"

cl_autoreload 1

// mat_viewportupscale 1 and mat_viewportscale 0.5 // For EXTREMELY weak GPU's only!!

tf_hud_show_servertimelimit 1

// PERFORMANCE ETC

mat_phong 0 cl_jiggle_bone_framerate_cutoff 0 r_drawflecks 0 r_maxnewsamples 2 r_maxsampledist 1 tracer_extra 0 mat_levelflush 1 cl_software_cursor 0 mat_vsync 0 tracer_extra 0 in_usekeyboardsampletime 0 mat_levelflush 1 net_graphtext 1 mat_alpha_coverage 0 mat_disable_d3d9ex 1 mat_disable_ps_patch 1 dsp_water 0 hud_achievement_glowtime 0 // Default is 2.5, not 100% what this is about a 1.5% fps boost. hud_achievement_count 0 //Default is 8, Max number of achievements that can be shown on the HUD hud_achievement_tracker 0 // Default is 1, Show or hide the achievement tracker r_pixelfog 1 // Supposedly increases FPS via fog, but it doesn't seem like it. Feel free to play with it to test. I'll run benchmarks later. fast_fogvolume 1 // Undocumented but I didn't experience any FPS loss with it enabled, will run benchmarks later. filesystem_native 0 // I think there's an FPS gain with this, anyway. mod_load_anims_async 1 // Loads model animations async mod_load_mesh_async 1 // Load model mesh async mod_load_vcollide_async 1 // Load model vcollide async net_queue_trace 1 mat_alphacoverage 0 cl_localnetworkbackdoor 0 cl_cloud_settings 0 cl_notifications_show_ingame 0 sys_minidumpspewlines 100 cl_loadondemand_default 0 cl_ask_blacklist_opt_out "1" cl_ask_favorite_opt_out "1" sb_dontshow_maxplayer_warning "1" tf_explanations_backpackpanel "1" tf_explanations_charinfo_armory_panel "1" tf_explanations_charinfopanel "1" tf_explanations_craftingpanel "1" tf_explanations_discardpanel "1" tf_explanations_store "1"

/r/tf2scripthelp Thread