// Spy Scripting. exec _settings.cfg exec _reset.cfg // Spy Music // Plays "Right Behind You" on first class load. spy_music // Knife // Starts the game with the knife active. slot3 // 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 when disguise_on is active. alias reload1 "slot1; lastdisguise" alias reload2 "slot2; lastdisguise" alias reload3 "slot3; lastdisguise" alias scroll1 "reload1; alias scroll_up scroll4; alias scroll_down scroll2" alias scroll2 "reload2; alias scroll_up scroll1; alias scroll_down scroll3" alias scroll3 "reload3; alias scroll_up scroll2; alias scroll_down scroll4" alias scroll4 "slot4; alias scroll_up scroll3; alias scroll_down scroll1" alias disguise_weapon_on "alias key1 scroll1; alias key2 scroll2; alias key3 scroll3; alias key4 scroll4; scroll1" alias disguise_weapon_off "alias key1 slot1; alias key2 slot2; alias key3 slot3; alias key4 slot4; alias scroll_up invprev; alias scroll_down invnext" bind MWHEELUP scroll_up bind MWHEELDOWN scroll_down // 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 SPY_AUTO_DISGUISE