Advertisement
Guest User

TF2 Autoexec

a guest
Apr 13th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.41 KB | None | 0 0
  1. // --------------------------------------------------
  2. // Team Fortress 2 autoexec file
  3. // --------------------------------------------------
  4.  
  5. // Launch options
  6. // -sw -noborder -console -novid -exec autoexec.cfg
  7.  
  8. // Clear console
  9. clear
  10.  
  11. echo
  12. echo "===================================="
  13. echo
  14. echo " Initializing ob4x's TF2 config"
  15. echo
  16. echo "===================================="
  17.  
  18. // --------------------------------------------------
  19. // Keybinds
  20. // --------------------------------------------------
  21.  
  22. echo
  23. echo "\\\\\ Loading KEYBINDS \\\\\"
  24.  
  25. // ===== Movement and Mouse =====
  26. bind "W" "+forward"
  27. bind "S" "+back"
  28. bind "A" "+moveleft"
  29. bind "D" "+moveright"
  30. bind "SPACE" "+jump"
  31. bind "MWHEELUP" "invprev"
  32. bind "MWHEELDOWN" "invnext"
  33.  
  34. bind "MOUSE1" "+attack"
  35. bind "MOUSE2" "+attack2"
  36. bind "1" "slot1"
  37. bind "2" "slot2"
  38. bind "3" "slot3"
  39. bind "4" "slot4"
  40. bind "5" "slot5"
  41. bind "6" "slot6"
  42. bind "7" "slot7"
  43. bind "8" "slot8"
  44. bind "9" "slot9"
  45. bind "0" "slot10"
  46. bind "Q" "lastinv"
  47. bind "R" "+reload"
  48. bind "F" "+inspect"
  49. bind "G" "+taunt"
  50.  
  51. // ===== Communication =====
  52. bind "Z" "say"
  53. bind "U" "say_team"
  54. bind "I" "say_party"
  55. bind "L" "voice_menu_1"
  56. bind "K" "voice_menu_2"
  57. bind "C" "voice_menu_3"
  58. bind "E" "voicemenu 0 0"
  59.  
  60. // --------------------------------------------------
  61. // Game Settings
  62. // --------------------------------------------------
  63.  
  64. echo
  65. echo "\\\\\ Loading GAME SETTINGS \\\\\"
  66.  
  67. con_enable "1" // Enables console
  68.  
  69. // ===== Mouse =====
  70. sensitivity "1.90"
  71. m_rawinput "1"
  72. //zoom_sensitivity_ratio "1" //old defunct command
  73. m_mouseaccel2 "0" // Disables windows mouse acceleration initial threshold, safety precaution
  74. m_mouseaccel1 "0" // Disables windows mouse acceleration initial threshold, safety precaution
  75. m_customaccel "0" // Custom mouse acceleration disabled
  76.  
  77. // ===== Crosshair settings =====
  78. cl_crosshair_blue "255"
  79. cl_crosshair_file "crosshair1"
  80. cl_crosshair_green "0"
  81. cl_crosshair_red "255"
  82. cl_crosshair_scale "22.5"
  83. cl_crosshairalpha "200"
  84. cl_crosshaircolor "0"
  85.  
  86. // ===== Viewmodel =====
  87. viewmodel_fov "83"
  88.  
  89. // ===== HUD =====
  90. hud_classautokill "0"
  91. hud_combattext_batching "1" // Merges damage numbers
  92. hud_combattext_batching_window "1"
  93.  
  94. hud_deathnotice_time "6"
  95. hud_fastswitch "1"
  96. hud_saytext_time "12"
  97. cl_hud_minmode "0"
  98. cl_hud_playerclass_use_playermodel "1"
  99.  
  100. // ===== Hitsound =====
  101. tf_dingalingaling 1
  102. tf_dingalingaling_lasthit 1
  103. tf_dingalingaling_effect 0
  104. tf_dingalingaling_last_effect 0
  105. tf_dingalingaling_repeat_delay 0
  106.  
  107. tf_dingaling_pitch_override -1
  108. tf_dingaling_pitchmaxdmg 100
  109. tf_dingaling_pitchmindmg 100
  110. tf_dingaling_volume 1
  111. tf_dingaling_lasthit_pitch_override -1
  112. tf_dingaling_lasthit_pitchmaxdmg 100
  113. tf_dingaling_lasthit_pitchmindmg 100
  114. tf_dingaling_lasthit_volume 1
  115.  
  116. // ===== Network settings =====
  117. rate "60000"
  118. cl_cmdrate "66"
  119. cl_interp "0"
  120. cl_interp_ratio "1"
  121. cl_smooth "0"
  122. cl_smoothtime "0.01"
  123. cl_updaterate "66"
  124.  
  125. // ===== Audio =====
  126. volume "0.15"
  127. snd_mixahead "0.05"
  128.  
  129. // Disable tutorials
  130. cl_ask_blacklist_opt_out "1"
  131. cl_ask_favorite_opt_out "1"
  132. sb_dontshow_maxplayer_warning "1"
  133. tf_explanations_backpackpanel "1"
  134. tf_explanations_charinfo_armory_panel "1"
  135. tf_explanations_charinfopanel "1"
  136. tf_explanations_craftingpanel "1"
  137. tf_explanations_discardpanel "1"
  138. tf_explanations_store "1"
  139. tf_training_has_prompted_for_forums "1"
  140. tf_training_has_prompted_for_loadout "1"
  141. tf_training_has_prompted_for_offline_practice "1"
  142. tf_training_has_prompted_for_options "1"
  143. tf_training_has_prompted_for_training "1"
  144.  
  145. // Other improvements
  146. cl_showfps 1 // Displays FPS
  147. fps_max 0 // Limits maximum FPS
  148. cl_mvm_wave_status_visible_during_wave 1 // Shows MVM progress bar mid-wave
  149. cl_use_tournament_specgui 1 // Uses a better HUD when spectating
  150. in_usekeyboardsampletime 0 // Stops keyboard sample time smoothing, which is inconsistent
  151. mat_clipz 1
  152. mat_forcehardwaresync 0
  153. mat_levelflush 1
  154. m_rawinput 1 // Uses mouse's raw input, instead of accelerated/laggy windows input
  155. mat_vsync 0 // Disables VSync
  156. r_fastzreject -1
  157. cl_vote_ui_active_after_voting 1 // Keeps vote menu open after you've voted
  158.  
  159. // --------------------------------------------------
  160. // Scripts
  161. // --------------------------------------------------
  162.  
  163. echo
  164. echo "\\\\\ Loading SCRIPTS \\\\\"
  165.  
  166. // Scoreboard net graph
  167. alias "+ScoreDisplay" "+showscores; net_graph 1" // Makes netgraph show info, but only when viewing scoreboard. Comment this line to get rid of the netgraph on the scoreboard.
  168. alias "-ScoreDisplay" "-showscores; net_graph 0" // Comment this line to get rid of the netgraph on the scoreboard.
  169.  
  170. // Anti-afk script (because +left doesnt work)
  171. alias afk afk1
  172. alias afk "+jump;wait 3;-jump;wait 3;+forward;wait 3;-forward;vote option2"
  173. alias afkKEY afkSTART
  174. alias afkSTART "echo ANTI AFK ON; alias afkKEY afkSTOP; alias afkTICK afkLOOP; afkLOOP"
  175. alias afkSTOP "echo ANTI AFK OFF; alias afkTICK; alias afkKEY afkSTART"
  176. alias afkLOOP "afk; wait 300; afkTICK"
  177.  
  178. // Remove scope
  179. alias remove_scope "sv_cheats 1; testhudanim scoperemoval"
  180. remove_scope
  181.  
  182. // Remove viewmodel
  183. bind "pgup" "r_drawviewmodel 1"
  184. bind "pgdn" "r_drawviewmodel 0"
  185.  
  186. // --------------------------------------------------
  187. // Finalize
  188. // --------------------------------------------------
  189.  
  190. echo
  191. echo "\\\\\ FINALIZING \\\\\"
  192.  
  193. host_writeconfig
  194.  
  195. echo
  196. echo "===================================="
  197. echo
  198. echo " Loaded ob4x's TF2 config"
  199. echo
  200. echo "===================================="
  201. echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement