Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
194 lines (185 sloc) 9.93 KB
////////////////////////////////////////////////////////////////////////////////////////////////////
//// autoexec.cfg
////////////////////////////////////////////////////////////////////////////////////////////////////
//// This autoexec and other files assembled by unsmell : https://github.com/unsmell/tf2-custom ////
////////////////////////////////////////////////////////////////////////////////////////////////////
////
//// ALIAS:
//// * info - prints this big comment to the console.
//// * nocomms - turns voicechat and text chat off
//// * commson - turns voicechat and text chat on
//// * t - loads tr_walkway_rc2
//// * clr,c - alias of clear (clears console)
//// * autoexec - run this file again
//// * reset - runs core/reset.cfg
//// * net - runs core/net.cfg
//// * graphics - runs core/graphics.cfg
////
//// DEBUG:
//// * debug OR debug_list - lists the debug aliases below:
//// * debug_viewmodel_fov - binds scrollwheel up/down to viewmodel_fov
//// * debug_noclip - binds o to noclip, turns sv_cheats on/off to toggle
//// * debug_class_cycle - switches your class to scout, and binds o to switch to the next class
//// * debug_timescale - binds scrollwheel up/down to host_timescale
////
//// FILES:
//// * valve.rc - runs motd, autoexec, and more important things on startup. do not edit
//// * autoexec.cfg - preliminary aliases, basic settings, etc
//// * motd/text.cfg - displays some text on startup. put your ASCII art here
//// * core/
//// * reset.cfg - keybinds and other things
//// * net.cfg - net settings
//// * graphics.cfg - graphics settings
//// * class configs - execute when join_class´ing the corresponding class
//// (scout,soldier,pyro,demoman,heavyweapons,engineer,medic,sniper,spy).cfg
//// * listenserver.cfg - executes when launching a listen server
//// * skeys.cfg - draws keys pressed onscreen
//// * regen.cfg - regenerates health+ammo
//// * alias/
//// * debug_*.cfg - debug scripts listed above
//// * info.cfg - this message
//// * disable_tips.cfg - disables ingame tips
////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
echo <autoexec>
////// general aliases
alias autoexec "exec autoexec"
alias reset "exec core/reset"
alias graphics "exec core/graphics"
alias net "exec core/net"
alias info "exec alias/info"
alias clr clear; alias c clear
alias none ""
////// misc aliases
alias t "map tr_walkway_rc2"
alias nocomms "hud_saytext_time 0; voice_enable 0"
alias commson "hud_saytext_time 3; voice_enable 1"
////// debug aliases
alias debug "exec alias/debug_list"
alias debug_viewmodel_fov "exec alias/debug_viewmodel_fov"
alias debug_noclip "exec alias/debug_noclip"
alias debug_timescale "exec alias/debug_timescale"
alias debug_list debug
////// preliminary setup
reset // set binds etc
graphics // apply graphics settings
net // apply net settings
exec "alias/disable_tips" // disable intrusive tips permanently
////// settings
////// you can comment some of these lines out if youd rather set these values ingame
//// mouse settings
// IMPORTANT:
// set base sensitivity in core/reset.cfg
// and class-specific sensitivity in (class).cfg
m_rawinput 1 // use raw mouse input?
m_filter 0 // do not average mouse input over two frames, more responsive mouse input
m_mousespeed 0; m_mouseaccel1 0; m_mouseaccel2 0 // disable windows mouse acceleration (-noforcemspd, -noforcemaccel)
zoom_sensitivity_ratio 0.7934714 // use same sensitivity as when unscoped
// https://github.com/mastercoms/mastercomfig/blob/e716fa098b1c1eda07e6464978d66803f0bec706/config/mastercomfig/cfg/addons/mouse_tweaks.cfg
//// audio
// volume 0.2 // in-game master volume (0-1)
voice_enable 1 // turn voicechat on?
voice_scale 0.5 // voicechat volume (not your microphone) (0-1)
//// damage numbers
hud_combattext 1 // display damage numbers when dealing damage?
hud_combattext_batching 1 // batch damage numbers up? info: https://www.youtube.com/watch?v=1JcBC1USF0A
hud_combattext_batching_window 5 // damage batching window in seconds
hud_combattext_healing 1 // also display healing as damage numbers?
hud_combattext_doesnt_block_overhead_text 1 // allow overhead text (crits, minicrist) when damage numbers would block it?
//// accessibility - gameplay
hud_fastswitch 1 // weapon quickswitch? info: https://www.youtube.com/watch?v=SDCuw9BHcWA
tf_use_min_viewmodels 1 // use minimal viewmodels?
tf_simple_disguise_menu 0 // use simple disguise menu?
cl_autorezoom 0 // re-zoom on sniper rifle after shooting?
tf_remember_lastswitched 1 // remember last switched-from weapon?
tf_medigun_autoheal 1 // medigun continues healing even if youre not holding down leftclick?
///// accessibility - others
cl_showfps 0 // show fps?
hud_saytext_time 3 // amount of time in seconds before chat messages fade out
tf_colorblindassist 1 // use colorblind setting?
tf_scoreboard_ping_as_text 1 // display ping as numeric values?
tf_scoreboard_mouse_mode 1 // enable mouse input on the scoreboard?
cl_disablehtmlmotd 1 // disable HTML MOTDs?
//// net_graph
// This VDC page can explain this better than I can:
// https://developer.valvesoftware.com/wiki/TF2_Network_Graph
net_graph 1
net_graphheight 0
net_graphproportionalfont 0
net_graphshowinterp 1
net_graphshowlatency 1
//// miscellaneous
tf_hud_target_id_alpha 80 // opacity of the little box that appears when you look at a teammate (%)
cl_use_tournament_specgui 1 // use tournament spectator gui when relevant?
tf_contract_progress_show 0 // show contract progress?
tf_contract_competitive_show 0 // show contract progress in competitive matches?
tf_dashboard_slide_time 0 // instant transitions on ´find game´ dashboard
// notifications
cl_notifications_max_num_visible 3 // Default number of visible notifications
cl_notifications_move_time 0.1 // Make notification transition shorter
tf_notifications_push_bottom 0 // Keep notifications at the top of the stack
cl_vote_ui_active_after_voting 0 // Hide the vote UI after voting
cl_vote_ui_show_notification 1 // Show voting notifications
tf_hud_notification_duration 2 // How long notifications should display
////// hitsounds & killsounds
// IMPORTANT: in order to set a custom hitsound you will need to place it in .WAV format, in
// Team Fortress 2\tf\custom\<HITSOUND FOLDER>\sound\ui
// your hitsound needs to be named ´hitsound.wav´ and your killsound ´killsound.wav´
// ---
// NOTE: you cannot reverse the pitching on hitsounds -- there is no way to have low pitch on high
// damage and high pitch on low damage
//// hitsound
play "ui\hitsound.wav" // play the hitsound, doing this caches it
tf_dingalingaling_effect 0
// do not touch the above line unless you want to use the standard sounds the game gives you
// ie. electro, notes, percussion
tf_dingalingaling 1 // use hitsound?
tf_dingaling_volume 0.7 // hitsound volume (0-1)
tf_dingaling_pitchmindmg 50 // (1-255) pitch for hits <= 10hp
tf_dingaling_pitchmaxdmg 150 // (1-255) pitch for hits >= 150hp
tf_dingaling_pitch_override -1 // (-1 OR 1-255) set to something other than -1 to override the pitch for all hits.
tf_dingalingaling_repeat_delay 0 // delay in seconds between hit sounds. set to 0 to play for every hit
//// killsound
play "ui/killsound.wav" // cache the killsound
tf_dingalingaling_last_effect 0
// do not touch the above line unless you want to use the standard sounds the game gives you
// ie. electro, notes, percussion
tf_dingalingaling_lasthit 0 // use killsound? this will play instead of the hitsound if you land a killing blow
tf_dingaling_lasthit_volume 0.75 // killsound volume (0-1)
tf_dingaling_lasthit_pitchmindmg 50 // (1-255) pitch for hits <= 10hp
tf_dingaling_lasthit_pitchmaxdmg 150 // (1-255) pitch for hits >= 150hp
tf_dingaling_lasthit_pitch_override -1 // (-1 OR 1-255) set to something other than -1 to override the pitch for all hits.
////// closed captions, ie: ´SOLDIER HURT´
//// depending on your hud these may not work (I use toonhud, link to my theme in README)
closecaption 1 // use closed captions?
cc_subtitles 1
cc_lang "english"
cc_predisplay_time 0 // delay in seconds before showing captions -- keep it at 0
////// demo recorder
// IMPORTANT:
// If you disable ds_autodelete, for every match you play, TF2 will record a demo.
// A demo is a playback of your match, from your perspective. It can be played by opening
// ´demoui´ (or ´demoui2´) in the console and loading the demo file (saved in /tf/demos by default).
// While this is useful, and the size of these files is often <1MB, they will continue to pile up,
// taking more and more space. I recommend either deleting the contents of the folder every once in
// a while, or enabling ´ds_autodelete´, which will delete every demo without a bookmark or
// killstreak.
ds_enable 2 // mode of operation for the demo recorder
// 0: no automatic demo recording
// 1: record competitive matches
// 2: record all matches
// 3: record tournament matches (mp_tournament 1)
ds_dir "demos" // demos will be saved in /tf/demos
ds_log 1 // log killstreaks and bookmarks to ´_events.txt´?
ds_prefix "" // prefix demo files with this string by default (max 24ch)
// emphasis on ´default´, as with my gen_map_cfgs script most maps will have their own prefix:
// http://www.teamfortress.tv/47180/demo-support-ds-prefix-on-any-map
ds_notify 1 // notify me on demo events? (0,1,2)
// 0: console; 1: console and chat; 2: console and hud
ds_autodelete 1 // automatically delete demo files with no bookmarks or killstreaks logged?
ds_screens 0 // take a screenshot at the end of maps?
ds_min_streak 31415926 // minimum killstreak to log killstreaks to _events.txt
// i keep it at a ridiculously high number so i dont log killstreaks at all
ds_kill_delay 15 // delay between kills accounting for killstreaks in seconds
ds_sound 1 // play a sound when beginning and stopping the recording of demos