Team Fortress 2

Team Fortress 2

43 ratings
How To Create And Make Your autoexec.cfg Better
By DIJEM
Some Tips To Make Your Autoexec.cfg Better
   
Award
Favorite
Favorited
Unfavorite
What Is autoexec.cfg
Autoexec.cfg is a configuration file that is stored in the TF2 files. Its main function is to automatically configure TF2 when it is launched. This file can contain custom settings such as keybindings or commands that enhance TF2 performance by increasing FPS.
How To Create autoexec.cfg
  1. Right click on TF2 in your Steam library > "Properties" > "Local Files" > "Browse Local Files".
  2. In the TF2 folder go to: > tf > cfg
  3. Create a .txt file called autoexec.txt and change .txt part to .cfg
    To change the file type from the ribbon bar, select View > Options > Change folder and search options. In the View tab of the Folder Options window, make sure that the Hide extensions for known file types checkbox is disabled, then select the OK button to save.
How To Use Config File And Mastercomfig At The Same Time
You need to repeat all previous steps exept the name of .cfg file. You can call it whatever you want. I use "custom.cfg". The main thing is that its name does not coincide with files already existing in the folder.
Right click on TF2 in your game library > "Properties" > in the General tab, select "Set Launch Options" > in the command line type +exec "your file name".cfg:
+exec custom.cfg
Notepad++
First of all, I really recomend you to use free program called Notepad++[notepad-plus-plus.org], It's very useful for editing .txt files.
How To Organize autoexec.cfg
Two slashes are used to indicate to the game that they are followed by a comment.
Don't put them on the same line before the commands!
You can use them to know exactly what commands do so you won’t get confused in the future if you will need to disable something:
// Itemtest Auto Load map_background itemtest; wait 10; disconnect // Viewmodel Settings viewmodel_fov 95 fov_desired 90 tf_use_min_viewmodels 1 zoom_sensitivity_ratio 0.793471

You can also save your launch options there in case you will lose it, don't forger to put two slashes before:
// Launch Options // +exec custom.cfg -nocrashdialog -width 1920 -height 1080 -novid -nojoy -nosteamcontroller -nohltv -particles 1 -precachefontchars
Showcase Of My Autoexec.cfg
// Itemtest Auto Load map_background itemtest; wait 10; disconnect // Viewmodel Settings viewmodel_fov 95 fov_desired 90 tf_use_min_viewmodels 1 zoom_sensitivity_ratio 0.793471 // Small Map Objects r_drawdetailprops 0 cl_detaildist 0 cl_detailfade 0 // Glowing Through Walls tf_enable_glows_after_respawn 0 // Decals mp_decals 100 r_decals 1024 // Shadows r_shadows 0 // Enable Ragdolls cl_ragdoll_fade_time 15 cl_ragdoll_forcefade 0 cl_ragdoll_physics_enable 1 g_ragdoll_fadespeed 600 g_ragdoll_lvfadespeed 100 ragdoll_sleepaftertime "5.0f" // Disable Gibs cl_phys_props_enable 0 cl_phys_props_max 0 props_break_max_pieces 0 r_propsmaxdist 1 violence_agibs 0 violence_hgibs 0 // CPU mat_queue_mode 2 // HDR mat_hdr_level 0 // VSynk mat_vsync 0 // DirectX mat_dxlevel 90 // Map Textures mat_mipmaptextures 0 // Connection Settings rate 66000 cl_interp 0 cl_interp_ratio 2 cl_cmdrate 66 cl_updaterate 66 cl_interp 0.0152 cl_pred_optimize 2 cl_smooth 0 cl_smoothtime 0.01 // Spray cl_allowdownload 1 cl_allowupload 1 cl_playerspraydisable 0 // No Power Saving mat_powersavingsmode 0 // No Match Hud tf_use_match_hud 0 // Binds bindtoggle \ "r_drawviewmodel" bind "mouse4" "load_itempreset 0" bind "mouse5" "+use_action_slot_item" bind leftarrow "voicemenu 0 4" bind rightarrow "voicemenu 0 5" bind uparrow "voicemenu 0 6" bind downarrow "voicemenu 0 7" // Null-Cancelling Movement Script bind w +mfwd bind s +mback bind a +mleft bind d +mright alias +mfwd "-back;+forward;alias checkfwd +forward" alias +mback "-forward;+back;alias checkback +back" alias +mleft "-moveright;+moveleft;alias checkleft +moveleft" alias +mright "-moveleft;+moveright;alias checkright +moveright" alias -mfwd "-forward;checkback;alias checkfwd none" alias -mback "-back;checkfwd;alias checkback none" alias -mleft "-moveleft;checkright;alias checkleft none" alias -mright "-moveright;checkleft;alias checkright none" alias checkfwd none alias checkback none alias checkleft none alias checkright none alias none "" // Prism Settings (for refract) (for transparent viewmodel) mat_motion_blur_enabled 1 mat_motion_blur_strength 0 mat_disable_bloom 1 mat_hdr_level 0 mat_colcorrection_disableentities 1 mat_colorcorrection 0 // Item Panels Loading Time Fix tf_time_loading_item_panels .0005 //Red Bullet Holes On Wood Fix r_decalstaticprops 1 // Launch Options // +exec custom.cfg -nocrashdialog -width 1920 -height 1080 -novid -nojoy -nosteamcontroller -nohltv -particles 1 -precachefontchars //3d Player Model cl_hud_playerclass_use_playermodel 1 //mouse sensivity 0.31 dpi 400, 3200