85 lines
3.3 KiB
INI
85 lines
3.3 KiB
INI
// Script Pack v1.0
|
|
// Provides utility scripts for all TF2 classes.
|
|
|
|
exec scripts/settings.cfg
|
|
exec scripts/lang/_main.cfg
|
|
exec scripts/reset.cfg
|
|
|
|
|
|
// Debug Output
|
|
// Bind the debug output to a key.
|
|
con_notifytime 2 // If you want the debug text to last longer, change this setting.
|
|
alias cft_clear con_filter_clear_text
|
|
alias cft_script "con_filter_text |"
|
|
alias hide_output "developer 0; cft_clear; con_filter_enable 0; alias toggle_output show_output"
|
|
alias show_output "clear; developer 1; cft_script; con_filter_enable 1; show_debug_output_text; alias toggle_output hide_output"
|
|
alias toggle_output show_output
|
|
bind P toggle_output
|
|
|
|
|
|
// Auto Crouch-Jump
|
|
// Makes the player automatically crouch-jump when holding down the spacebar.
|
|
alias +crouch_jump "+jump; +duck"
|
|
alias -crouch_jump "-duck; -jump"
|
|
alias crouch_on "bind SPACE +crouch_jump"
|
|
alias crouch_off "bind SPACE +jump"
|
|
AUTO_CROUCH_JUMP
|
|
|
|
|
|
// Clears the console, we don't care about anything that was displayed before.
|
|
alias clear_on "clear"
|
|
alias clear_off ""
|
|
CLEAR_CONSOLE_ON_START
|
|
|
|
|
|
// Loadout Switch
|
|
// Alt+1 switches to loadout A, Alt+2 switches to loadout B and so on.
|
|
alias +switching_loadout "+loadout_A; +loadout_B; +loadout_C; +loadout_D"
|
|
alias -switching_loadout "-loadout_A; -loadout_B; -loadout_C; -loadout_D"
|
|
alias switch_loadout_A "load_itempreset 0; switch_loadout_A_text"
|
|
alias switch_loadout_B "load_itempreset 1; switch_loadout_B_text"
|
|
alias switch_loadout_C "load_itempreset 2; switch_loadout_C_text"
|
|
alias switch_loadout_D "load_itempreset 3; switch_loadout_D_text"
|
|
alias +loadout_A "bind 1 switch_loadout_A"; alias -loadout_A "bind 1 key1"
|
|
alias +loadout_B "bind 2 switch_loadout_B"; alias -loadout_B "bind 2 key2"
|
|
alias +loadout_C "bind 3 switch_loadout_C"; alias -loadout_C "bind 3 key3"
|
|
alias +loadout_D "bind 4 switch_loadout_D"; alias -loadout_D "bind 4 key4"
|
|
alias loadout_on "bind ALT +switching_loadout"
|
|
alias loadout_off "bind ALT +strafe"
|
|
LOADOUT_SWITCH
|
|
|
|
|
|
// Netgraph
|
|
// Shows the netgraph when the user press Tab.
|
|
net_graphpos 2
|
|
alias +showscores_netgraph "+showscores; net_graph 4"
|
|
alias -showscores_netgraph "-showscores; net_graph 0"
|
|
alias netgraph_on "bind TAB +showscores_netgraph"
|
|
alias netgraph_off "bind TAB +showscores"
|
|
SHOW_NETGRAPH
|
|
|
|
|
|
// Spy-Checking Lines
|
|
// Automatically says a spy-checking team chat line.
|
|
alias +spy_mode "+spy1; +spy2; +spy3; +spy4; +spy5; +spy6; +spy7; +spy8; +spy9"
|
|
alias -spy_mode "-spy1; -spy2; -spy3; -spy4; -spy5; -spy6; -spy7; -spy8; -spy9"
|
|
alias +spy1 "bind 1 spy_check_scout_text"; alias -spy1 "bind 1 key1"
|
|
alias +spy2 "bind 2 spy_check_soldier_text"; alias -spy2 "bind 2 key2"
|
|
alias +spy3 "bind 3 spy_check_pyro_text"; alias -spy3 "bind 3 key3"
|
|
alias +spy4 "bind 4 spy_check_demoman_text"; alias -spy4 "bind 4 key4"
|
|
alias +spy5 "bind 5 spy_check_heavy_text"; alias -spy5 "bind 5 key5"
|
|
alias +spy6 "bind 6 spy_check_engineer_text"; alias -spy6 "bind 6 key6"
|
|
alias +spy7 "bind 7 spy_check_medic_text"; alias -spy7 "bind 7 key7"
|
|
alias +spy8 "bind 8 spy_check_sniper_text"; alias -spy8 "bind 8 key8"
|
|
alias +spy9 "bind 9 spy_check_spy_text"; alias -spy9 "bind 9 key9"
|
|
alias spy_lines_on "bind SHIFT +spy_mode"
|
|
alias spy_lines_off "unbind SHIFT"
|
|
SPY_LINES
|
|
|
|
|
|
// Suicide Explosion
|
|
// To be used when the player is cornered and with no chance of escape.
|
|
// Go out with a bang!
|
|
alias suicide_on "bind F1 explode
|
|
alias suicide_off "unbind F1"
|
|
SUICIDE_EXPLOSION |