Includes a rocket jump script for the Soldier, a music player, a new font for the developer console and more.
70 lines
2.9 KiB
INI
70 lines
2.9 KiB
INI
// Spy Scripting.
|
|
|
|
exec scripts/settings.cfg
|
|
exec scripts/reset.cfg
|
|
|
|
// Spy Music
|
|
// Plays "Right Behind You" on first class load.
|
|
spy_music
|
|
|
|
|
|
// Taunt
|
|
// Automatically undisguises the spy before performing a taunt.
|
|
// Note: most of the time, removing the disguise will not happen quickly
|
|
// enough. If that is the case, you will be undisguised, but you will not
|
|
// taunt. Therefore, always press G twice in a row to taunt.
|
|
alias +spy_taunt "disguise 8 -2; disguise_remove_text; +taunt"
|
|
alias -spy_taunt "-taunt"
|
|
alias spy_taunt_on "bind G +spy_taunt"
|
|
alias spy_taunt_off "bind G +taunt"
|
|
SPY_TAUNT
|
|
|
|
// Disguises
|
|
// Keys 5-9 are used to quickly disguise.
|
|
alias key5 "disguise 4 -1; disguise_demoman_text" // Demoman
|
|
alias key6 "disguise 7 -1; disguise_pyro_text" // Pyro
|
|
alias key7 "disguise 2 -1; disguise_sniper_text" // Sniper
|
|
alias key8 "disguise 9 -1; disguise_engineer_text" // Engineer
|
|
alias key9 "disguise 8 -2; disguise_remove_text" // Un-disguise
|
|
|
|
|
|
// Auto-Disguise After Attack
|
|
// Press F to activate.
|
|
alias disguise1 "disguise 4 -1; disguise_demoman_text; alias next_disguise disguise2" // Demoman
|
|
alias disguise2 "disguise 7 -1; disguise_pyro_text; alias next_disguise disguise3" // Pyro
|
|
alias disguise3 "disguise 2 -1; disguise_sniper_text; alias next_disguise disguise4" // Sniper
|
|
alias disguise4 "disguise 9 -1; disguise_engineer_text; alias next_disguise disguise1" // Engineer
|
|
alias next_disguise disguise1
|
|
alias +disguise_attack +attack
|
|
alias -disguise_attack "-attack; next_disguise"
|
|
|
|
|
|
// Disguised Weapon Switching
|
|
// When switching weapons, the disguise also switches weapons.
|
|
// With some players, this might reduce suspicion that you're a spy.
|
|
// Only works if spy_toggle is set to disguise_on.
|
|
// Note: the scroll wheel will now only scroll between 1 and 3, because once
|
|
// the disguise kit always gets skipped once the last disguise is activated.
|
|
alias reload1 "slot1; lastdisguise"
|
|
alias reload2 "slot2; lastdisguise"
|
|
alias reload3 "slot3; lastdisguise"
|
|
alias reload_m_up "invprev; lastdisguise"
|
|
alias reload_m_down "invnext; lastdisguise"
|
|
alias disguise_weapon_on "alias key1 reload1; alias key2 reload2; alias key3 reload3; bind MWHEELUP reload_m_up; bind MWHEELDOWN reload_m_down"
|
|
alias disguise_weapon_off "alias key1 slot1; alias key2 slot2; alias key3 slot3; bind MWHEELUP invprev; bind MWHEELDOWN invnext"
|
|
|
|
|
|
// Disguise Toggling
|
|
// The master switch for all the automatic disguise scripting. Default: on
|
|
alias spy_toggle disguise_off
|
|
alias disguise_on "auto_disguise_on_text; disguise_weapon_on; bind MOUSE1 +disguise_attack; alias spy_toggle disguise_off"
|
|
alias disguise_off "auto_disguise_off_text; disguise_weapon_off; bind MOUSE1 +attack; alias spy_toggle disguise_on"
|
|
bind F spy_toggle
|
|
|
|
|
|
// MOUSE3 Attack
|
|
// Bind MOUSE3 to the standard attack, in case the user wants to quickly
|
|
// attack without disguising (for example: sapping a sentry).
|
|
bind MOUSE3 +attack
|
|
|
|
AUTO_DISGUISE |