Spy scripts

From TF2 Wiki

Share/Save/Bookmark
Jump to: navigation, search

A Note About The Wait Command

Valve has fixed the functionality of the sv_allow_wait_command server variable. When disabled (set to 0) the engine simply ignores and omits any wait commands that the server is given. Consequently, many scripts on this website are broken or will only function in very specific situations. This variable is set to 1 by default, but many servers base their server.cfg files off of competitive league settings, which typically disable wait commands. Furthermore, scripts that do loops (see Autopistol Script for an example) will crash your client when triggered.


Community script navigation
General scripts
Weapon scripts
General class scripts
Collection scripts
Class scripts
Scout scripts
Soldier scripts
Pyro scripts
Engineer scripts
Heavy scripts
Demoman scripts
Medic scripts
Sniper scripts
Spy scripts



Contents

Auto Sapper

This is a script for sapping structures and then switch to the knife. The only problem I have found with this one is that if you quickly click, sometimes the script gets stuck and auto fires the knife. Making sure you hold the bindable key for at least 1 second seems to fix this issue.
Posted by Shifty54
alias +sapper "slot2; +attack"
alias -sapper "-attack; wait 25; slot3"
bind "mouse3" "+sapper"


Auto Sapper Improved

This is improved version, pressing MOUSE3 will push out the sapper and sap every building you can materially reach.Pull MOUSE3 will switch to your previous weapon.
Also the same glitch can be found if you press the mouse button for less than 1 sec...i'm searching a way to avoid it.
Posted by ArmageddonSnipe
alias "+sapper" "build 4;wait 100;+attack"
alias "-sapper" "-attack;lastinv"
bind "MOUSE3" "+sapper";
Solution: The shooting problem with the above auto sapper script is that if you press and depress mouse3 in under 100ms it will trigger -attack before +attack so there is nothing to stop you from continually attacking. To fix this add a wait time before -attack that is longer than the one before +attack. I could not repeat the problem with the below code(ArmageddonSnipe's script with modified wait times). Posted by Steve
alias "+sapper" "build 4;wait 10;+attack"
alias "-sapper" "wait 15;-attack;lastinv"
bind "MOUSE3" "+sapper";

Wait-Free Press & Hold Auto Sapper

This version does not use a wait function so it will work on any server. Press and hold the middle mouse button to sap everything you point at. Release the middle mouse button to return to your previous weapon.

// press and hold middle mouse button to turn on autosap and sap everything you see.
// release middle button to return to last weapon
alias autosapOn "slot2; +attack; alias toggleAutosap autosapOff"
alias autosapOff "-attack; lastinv; alias toggleAutosap autosapOn"

alias "toggleAutosap" "autosapOn"

alias "+mouse3Down" "toggleAutosap"
alias "-mouse3Down" "toggleAutosap"

bind "mouse3" "+mouse3Down"

Toggled Auto Sapper

This will auto sap anything you look at once you use mouse wheel up and will return to your last selected weapon with mouse wheel down
//MOUSE WHEEL UP STARTS, MOUSE WHEEL DOWN ENDS
alias autosapon "slot2; +attack"
alias autosapoff "-attack;lastinv"
bind "MWHEELUP" "autosapon" //starts auto-sap
bind "MWHEELDOWN" "autosapoff" //stops auto-sap 

Auto Sapper with Redisguise

Here is a combination of the auto sapper with last disguise. Pressing MOUSE3 equips/applies sapper. Releasing MOUSE3 switches back to knife through revolver so that it is easily reachable via the "lastinv" button. The best thing about this script is that once everything gets sapped you are already redisguised and good to go.
Posted by Kubernes
alias +sap "lastdisguise; slot2; wait 5; +attack"
alias -sap "wait 10; -attack; use tf_weapon_revolver; use tf_weapon_knife"
bind "MOUSE3" "+sap"

Toggle Sapper

Pressing Q equips the sapper. Pressing Q switches back to knife.
Posted by Shadow
//Toggle Sapper
alias "Sap" "Tog1"
alias "Tog1" "slot2; alias Sap Tog2"
alias "Tog2" "slot3; alias Sap Tog1"
bind "q" "Sap"

BackStabSap

Pressing and holding mouse3 will; equip the knife, attack once, equip the sapper and continuously attack untill mouse3 is released.
Posted by chazmaniandevil
alias "+stabsap" "slot3; wait 120; +attack; wait 50; -attack; wait 5; slot2; +attack"
alias "-stabsap" "-attack; slot1"
bind "mouse3" "+stabsap"

BackStabSap with Fast Redisguise

This is a modification of the script above to include a fast redisguise (including a brief cloaking so that there is no smoking). Pressing and HOLDING mouse 3 will activate the script. If you are near a choice of buildings to sap, best go for the sentry gun first when it is facing away from you
Posted by helioslumosexpellusrectumus based on script Posted by chazmaniandevil
alias "+stabsap" "slot3; wait 120; +attack; wait 50; -attack; wait 5; slot2; +attack; +attack2; -attack2; wait 20; lastdisguise"
alias "-stabsap" "-attack; slot1"
bind "mouse3" "+stabsap"

BackstabSap with Double Sap, Fast Redisguise and Cloak

Backstabs, saps twice (for dispenser and sentry), cloaks, redisguises. Put in spy.cfg

Note: This only requires a single click of mouse3, not holding it down.

Alias !stab "+attack; wait 5; -attack; wait 25"
alias !sap "slot2; +attack; wait 5; -attack; wait 5; +attack"

alias !stab&!sap "unbind mouse3; unbind mwheelup; unbind mwheeldown; use tf_weapon_knife; wait 100; !stab; wait 30; !sap; wait 150; +attack2; wait 5; -attack2; -attack; lastdisguise; bind mouse3 !stab&!sap; bind mwheelup invprev; bind mwheeldown invnext; slot3; +attack; wait 5; -attack; wait 5; slot1; wait; +attack; wait 5; -attack"

bind mouse3 !stab&!sap

Toggle Auto Disguise on attack

This script toggles whether you automatically invoke "lastdisguise" after attacking. Pressing F will turn the script "on" where you will automatically redisguise after firing. Pressing it again will turn the script "off" which plays as normal. Note that your toggle will remain in position when switching classes or after a death (although it won't make a difference to any class other than Spy)
Posted by Dr.Device
//Toggle Auto Disguise on attack V1.2 by Dr.Device
alias +disguiseattack "+attack"
alias -disguiseattack "-attack; lastdisguise"
alias "spytoggle" "on"
alias "on" "bind mouse1 +disguiseattack; alias spytoggle off; echo DISGUISE ON ATTACK ENABLED"
alias "off" "bind mouse1 +attack; alias spytoggle on; echo DISGUISE ON ATTACK DISABLED"
bind f "spytoggle"

Mr. Epping's Useful Spy Tool v1.5

MEUST (Mr. Epping's Useful Spy Tool) is a small, but nifty spy script.

It focuses on ease of use and augmenting of spy functions. This includes disguise cycling, special binds and easy weapons choosing. You are free to take this script and modify it to your heart's content, as long as you mention my name.

Posted by Mr epping
// |--------------------------------------------|
// |-----Mr. Epping's Useful Spy Tool v1.5------|
// |---------------(by Mr. Epping)--------------|
 
// | MEUST (Mr. Epping's Useful Spy Tool) is a small, but nifty spy script. 
// | It focuses on ease of use and augmenting of spy functions, making it easier to play spy.
// | This includes disguise cycling, special binds and easy weapons choosing.
// | You are free to take this script and modify it to your heart's content, as long as you mention my name.

// | Usage:
// |
// | Normal Binds:
// | [MOUSE3] 			-> 	Use last disguise
// | [MWHEELUP] 		-> 	Select your knife
// | [MWHEELDOWN] 		-> 	Select your revolver
// |
// | Special Binds:
// | [SHIFT] + [MOUSE1]		-> 	Whip out your sapper, use it, and then return to your last weapon
// | [SHIFT] + [MOUSE2] 	-> 	Cloak, then disguise
// | [SHIFT] + [MOUSE3] 	-> 	Random disguise, cycles between Sniper, Demoman, Pyro and Engineer
// | [SHIFT] + [MWHEELUP] 	-> 	Select your sappers
// | [SHIFT] + [MWHEELDOWN] 	-> 	Select your disguise kit
// | [SHIFT] + [G] 		-> 	Undisguise, taunt and then cloak. If done correctly, unlocks The Man From P.U.N.C.T.U.R.E. achievement.
// | [SHIFT] + [1]		-> 	In disguise, fake switch to your primary weapon, then revert to your knife
// | [SHIFT] + [2]		-> 	In disguise, fake switch to your secondary weapon, then revert to your knife
// | [SHIFT] + [3]		-> 	In disguise, fake switch to your melee weapon


// | Psuedo-random disguises. Cycles through Sniper, Demoman, Pyro and Engineer |

alias disguise_random 	"disguise1"
alias disguise1 	"disguise 2 -1; alias disguise_random disguise2" // Disguise as Sniper
alias disguise2 	"disguise 4 -1; alias disguise_random disguise3" // Disguise as Demoman
alias disguise3 	"disguise 7 -1; alias disguise_random disguise4" // Disguise as Pyro
alias disguise4 	"disguise 9 -1; alias disguise_random disguise1" // Disguise as Engineer

// | Weapon aliases |

alias revolver 		"use tf_weapon_revolver"
alias sapper 		"build 4"
alias knife 		"use tf_weapon_knife"
alias disguise_kit	"use tf_weapon_pda_spy"

// | These are the normal binds. |

alias mouse1_normal 	"bind MOUSE1 +attack"
alias mouse2_normal 	"bind MOUSE2 +attack2"
alias mouse3_normal 	"bind MOUSE3 lastdisguise"
alias mwheelup_normal	"bind MWHEELUP knife"
alias mwheeldown_normal	"bind MWHEELDOWN revolver"
alias g_normal 		"bind G taunt"
alias one_normal	"bind 1 slot1"
alias two_normal	"bind 2 slot2"
alias three_normal	"bind 3 slot3"

// | Special binds |

alias +attack_special 	"sapper; wait 60; +attack"
alias -attack_special 	"-attack; lastinv"
alias mouse1_special 	"bind MOUSE1 +attack_special"

alias +cloak_special 	"+attack2; wait 10; disguise_random"
alias -cloak_special 	"-attack2"
alias mouse2_special 	"bind MOUSE2 +cloak_special"

alias mouse3_special 	"bind MOUSE3 disguise_random"

alias mwheelup_special	"bind MWHEELUP sapper"
alias mwheeldown_special "bind MWHEELDOWN disguise_kit"

alias fake_primary	"revolver; 	wait 10; lastdisguise; wait 10; knife"
alias fake_secondary	"sapper; 	wait 10; lastdisguise; wait 10; knife"
alias fake_melee	"knife; 	wait 10; lastdisguise"

alias one_special	"bind 1 fake_primary"
alias two_special	"bind 2 fake_secondary"
alias three_special	"bind 3 fake_melee"

// | Undisguise, taunt and then cloak. If done correctly, unlocks The Man From P.U.N.C.T.U.R.E. achievement. |

alias taunt_special 	"disguise 8 -2; taunt; wait 10; +attack2; -attack2"
alias g_special 	"bind G taunt_special"

// | This is the toggle from normal to special |

alias special_binds 	"mouse1_special; mouse2_special; mouse3_special; mwheelup_special; mwheeldown_special; g_special; one_special; two_special; three_special; -attack; -attack2"
alias normal_binds 	"mouse1_normal;  mouse2_normal;  mouse3_normal;  mwheelup_normal;  mwheeldown_normal;  g_normal;  one_normal;  two_normal;  three_normal; -attack; -attack2"

alias +spy_special 	"special_binds"
alias -spy_special 	"normal_binds"

// | Now finally, bind a specific key to activate special binds |

bind "SHIFT" 		"+spy_special"

// | Reset binds |

normal_binds

Cloaker Disguise Script

This script re-disguises randomly from a specified list upon the exact moment of cloaking.
Posted by Rlaro
//Super Cloak Script - Written by Rlaro http://larolaro.blogspot.com

//This script re-disguises randomly from a specified list upon the exact moment of cloaking.

//Using this script is smokeless, no wafts of smoke will follow you around when changing disguise because you will already be invisible. 
//As soon as you cloak and then uncloak you will be disguised as a different class with no smoke.

//The cloak disguise toggles through Engineer, Pyro and demoman as these are the most efficient classes to disguise as.

//Pressing the "p" key will toggle your disguise's team colour.
//Holding the "3" (slot3, knife) key while pressing the 4 key (slot4, cigar pack) will re-disguise without having to cloak.
//While still remembering whichever team colour you chose.

//Further note,

//This is not at all an exploit, if you cloak before disguising you dissappear, so in turn there will be no smoke because of that. 
//You can also change disguise while cloaked, none of my script utilises any expoits to work. 
//It can all be done in-game normally without my script but with slightly more effort of course.

//---------------------------------------------------------

//For use within the spy class specific .cfg, place the following script in the other remaining .cfg's to avoid clashing.

//bind "MOUSE1" "+attack"
//bind "MOUSE2" "+attack2"

//---------------------------------------------------------

//Super Cloak Script

//Pressing the "p" key will toggle your disguise's team colour.

//This script has a precaution section that reloads the script in the occasion you get killed while cloaked or you toggle really fast, this would break up the toggle into the wrong order. 
//Disguising after instead of before exposing you will plumes of smoke when uncloaking. If the toggle is in the wrong order just attack and it will reset to default.

//Change the "p" letter to whatever key you want as your disguise colour changer.
bind "p" "switch"
;alias "colchange" "bind "p" "switch""

bind "MOUSE1" "rsupercloak"

//The letter "3" should be corresponding to your slot3 key.
bind "3" "+reddis"

;alias "firstattack" "bind "MOUSE1" "+attack""

;alias "+reddis" "slot3; bind "4" "rswapper""
;alias "-reddis" "colchange"
;alias "rswapper" "slot2; wait 10; lastinv; tglr"

;alias "+bludis" "slot3; bind "4" "bswapper""
;alias "-bludis" "colchange"
;alias "bswapper" "slot2; wait 10; lastinv; tglb"

//The letter "3" should be corresponding to your slot3 key.
;alias "reddisbinder" "bind "3" "+reddis""

//The letter "3" should be corresponding to your slot3 key.
;alias "bludisbinder" "bind "3" "+bludis""

;alias "rclkon" "rdeffer; +attack2; wait 20; tglr; -attack2; rclk2"
;alias "rclkoff" "firstattack; +attack2; wait 20; -attack2; rclk1"

;alias "rclk1" "bind "MOUSE2" "rclkon""
;alias "rclk2" "bind "MOUSE2" "rclkoff""

;alias "rdeffer" "bind "MOUSE1" "rsupercloak""

;alias "bclkon" "bdeffer; +attack2; wait 20; tglb; -attack2; bclk2"
;alias "bclkoff" "firstattack; +attack2; wait 20; -attack2; bclk1"

;alias "bclk1" "bind "MOUSE2" "bclkon""
;alias "bclk2" "bind "MOUSE2" "bclkoff""

;alias "bdeffer" "bind "MOUSE1" "bsupercloak""

;alias "rsupercloak" "+attack; wait 20; -attack; firstattack; bind "MOUSE2" "rclkon""
;alias "bsupercloak" "+attack; wait 20; -attack; firstattack; bind "MOUSE2" "bclkon""

;alias tglr "tglr1"
;alias tglr1 "disguise 4 2 ;alias tglr tglr2"
;alias tglr2 "disguise 7 2 ;alias tglr tglr3"
;alias tglr3 "disguise 9 2 ;alias tglr tglr1"

;alias tglb "tglb1"
;alias tglb1 "disguise 4 1 ;alias tglb tglb2"
;alias tglb2 "disguise 7 1 ;alias tglb tglb3"
;alias tglb3 "disguise 9 1 ;alias tglb tglb1"

;alias switch "switch1"
;alias switch1 "tglr; slot2; wait 10; lastinv; rsupercloak; reddisbinder ;alias switch switch2"
;alias switch2 "tglb; slot2; wait 10; lastinv; bsupercloak; bludisbinder ;alias switch switch3"
;alias switch3 "tglr; slot2; wait 10; lastinv; rsupercloak; reddisbinder ;alias switch switch4"
;alias switch4 "tglb; slot2; wait 10; lastinv; bsupercloak; bludisbinder ;alias switch switch1"

Revolver Hiding Script

This is a mish-mash of scripts, that I have modified so that your revolver will always 'zoom in' and change your sensitivity and FOV.
Don't worry, it will zoom out with your sapper, disguise kit and knife.
It won't work with the quick-switch function. You can change the settings to whatever you want it to be.
The re-bindings of normal keys is just to make sure everything keeps its function.
I claim no originality over this as of my statement before being it is a mish-mash, if I am asked to remove this I will.
Posted by Le_Jezza
// Revolver Script
// ===============
// This part tells the mouse to skip the disguise kit on the scroller so you don't disguise any sentries to death.
// It also tells your game to 'zoom in' on the revolver only, it may look wrong at first, but it's correct.
alias num1 "slot1; bind MWHEELUP num3; zoomout; bind MWHEELDOWN num2; zoomin"
alias num2 "slot2; bind MWHEELUP num1; zoomout; bind MWHEELDOWN num3; zoomout"
alias num3 "slot3; bind MWHEELUP num2; zoomin; bind MWHEELDOWN num1; zoomout"
num1

// This tells the game to zoom in only on the revolver, it will zoom out when swapping from revolver to other things, too.
bind "1" "num1; zoomin"
bind "2" "num2; zoomout"
bind "3" "num3; zoomout"
bind "4" "num4; zoomout"

// Tells the game to zoom out when using the quick-switch function, I thought I figured it out, it just crashed my TF2.
bind "q" "lastinv; zoomout"

// The part where you can change stuff! :D
alias "zoomin" "sensitivity <add>; r_drawviewmodel 0; fov_desired 70;  m_yaw 0.044; alias zoomcontrol zoomout"
alias "zoomout" "sensitivity <add>; r_drawviewmodel 1; fov_desired 90; m_yaw 0.022; alias zoomcontrol zoomin"
alias "zoomcontrol" "zoomin"

//Well, the changing part is over.
alias +primaryattack "+attack"
alias -primaryattack "-attack"
alias +secondaryattack "+attack2"
alias -secondaryattack "-attack2"

//Unless you use a controller, in that case you need to re-bind everything to it's appropriate button.
bind "MOUSE1" "+primaryattack"
bind "MOUSE2" "+secondaryattack"
bind "MOUSE3" "zoomcontrol"

King Rat's Spy Script

Has a bunch of features, such as weapon switch re-interface, quickdisguising, changes sensitivity on different weapons, no revolver viewmodel, and a bit of other stuff I can't remember.
Posted by King_Rat
// a ratty spy script
// notes - 
// quickdisguise keys are hardcoded in, because I can't be bothered to make them configurable, if you want to change them, edit the f_disg lines

//    Settings
// --------------
alias sens_revolver "sensitivity 3"
alias sens_knife "sensitivity 6"
alias sens_other "sensitivity 5.8"

//     Binds
// --------------

// Press this on spawn
bind v RESET

// Hold while disguising to change disg team
bind MOUSE4 +f_disg 

// Weapon switch - You can reverse this if you like, to have a slightly more normal slot order
bind MWHEELUP up
bind MWHEELDOWN down

// Number switch thingies
bind 1 stage1
bind 2 stage2
bind 3 stage3
bind 4 stage4

// Quicksap
bind c +sapper

// Attack 1 + 2 (also known as alt fire, mouse2, basically)
bind mouse1 +attack_o
bind mouse2 +attack2_o

// Undisguise
bind x undisguise


//     Aliases - you can ignore everything below this line
// ------------------------------------------------------------

// Quick disguise
alias e_scout "disguise 1 -1"
alias e_sniper "disguise 2 -1"
alias e_soldier "disguise 3 -1"
alias e_demoman "disguise 4 -1"
alias e_medic "disguise 5 -1"
alias e_hwguy "disguise 6 -1"
alias e_pyro "disguise 7 -1"
alias e_spy "disguise 8 -1"
alias e_engineer "disguise 9 -1"
alias a_scout "disguise 1 -2"
alias a_sniper "disguise 2 -2"
alias a_soldier "disguise 3 -2"
alias a_demoman "disguise 4 -2"
alias a_medic "disguise 5 -2"
alias a_hwguy "disguise 6 -2"
alias a_pyro "disguise 7 -2"
alias a_spy "disguise 8 -2"
alias a_engineer "disguise 9 -2"
alias +f_disg "bind f1 a_scout; bind f2 a_soldier; bind f3 a_pyro; bind f4 a_demoman; bind f5 a_hwguy; bind f6 a_engineer; bind f7 a_medic; bind f8 a_sniper; bind f9 a_spy"
alias -f_disg "bind f1 e_scout; bind f2 e_soldier; bind f3 e_pyro; bind f4 e_demoman; bind f5 e_hwguy; bind f6 e_engineer; bind f7 e_medic; bind f8 e_sniper; bind f9 e_spy"

// Weapon switch re-interface
alias up 
alias down 

alias stage1 "slot1;alias up stage2; alias down stage3; sens_revolver;revolver_viewmodel;-attack"
alias stage2 "slot2;alias up stage3; alias down stage1; sens_other;sapper_viewmodel;-attack"
alias stage3 "slot3;alias up stage1; alias down stage2; sens_knife;knife_viewmodel;-attack"
alias stage4 "slot4;alias up stage2; alias down stage1; sens_other;r_drawviewmodel 0;-attack"

alias RESET stage3

// Viewmodel stuff
alias x
alias revolver_viewmodel "r_drawviewmodel 0"
alias rev_viewmodel_on "cl_drawviewmodel 1"
alias rev_viewmodel_off "cl_drawviewmodel 0"
alias x1 "alias revolver_viewmodel rev_viewmodel_on; alias x x2;revolver_viewmodel"
alias x2 "alias revolver_viewmodel rev_viewmodel_off; alias x x1"
alias +attack2_o "+attack2;x"
alias -attack2_o "-attack2"

// Misc
alias "+sapper" "slot2;wait 5;+attack"
alias "-sapper" "wait 5;-attack;lastinv"
alias +attack_o "+attack"
alias -attack_o "-attack"
alias undisguise "disguise 8 -2"

// initing
-f_disg
stage3
hud_fastswitch 1

Disguise Sychronizizer

When enabled (toggle button provided) this script will automatically sync your visible disguse's weapon with your actual one, functionality enabled in the February 24, 2009 Patch. Thus if disguised as an Engineer, taking out your knife would cause your disguise to take our it's wrench.

Notes

  • In-game limitations means this does NOT work with the disguise kit. Only the first three weapons can reliably be used.
  • When the sychronization is enabled, your mouse wheel will "stop" cycling inventory items when it reaches the disguise kit. Instead of a circular cycle, you can only switch Revolver<->Sapper<->Knife in a linear fashion using the scroll wheel.
  • This script assumes you use the number keys 1-3 for weapon selection, along with your scroll wheel. In this example, it uses the letter "B" to both disguise and to enable synchronization. It assumes the letter "Q" is your quick-switch key and that that left mouse button is what you use for attacking.
  • Every time you change class to a Spy, this script will re-bind those controls. To stop this from happening simply remove the last several "bind..." lines
Posted by [HvC]Terr
alias +dsync_attack "+attack; dsync_disable;";
alias -dsync_attack "-attack";
alias dsync_slot1 "slot1; dsync_action;";
alias dsync_slot2 "slot2; dsync_action;";
alias dsync_slot3 "slot3; dsync_action;";
alias dsync_invnext "invnext; dsync_action;";
alias dsync_invprev "invprev; dsync_action;";
alias dsync_lastinv "lastinv; dsync_action;";
alias dsync_enable "dev_notice; echo DISGUISE SYNC ON ++++++++++++; alias dsync_toggle dsync_disable; lastdisguise; alias dsync_action lastdisguise;";
alias dsync_disable "dev_notice; echo DISGUISE SYNC OFF------------; alias dsync_toggle dsync_enable; alias dsync_action";
alias dsync_toggle "dsync_enable;";

alias dev_notice "developer 1; wait 500; developer 0;

bind b dsync_toggle;
bind 1 dsync_slot1;
bind 2 dsync_slot2; 
bind 3 dsync_slot3; 
bind MWHEELUP dsync_invprev; 
bind MWHEELDOWN dsync_invnext;
bind q dsync_lastinv;
bind MOUSE1 +dsync_attack

Disguise Weapon Switch

This script will allow you to easily switch your disguise's weapon while keeping your preferred weapon. For instance pressing 1 repeatedly will cycle through your disguise's weapons while bringing your real weapon back to the revolver.
bind 1 "revolverswitch"

alias revolverswitch "revolverprimary"
alias revolverprimary "slot1; lastdisguise; wait 10; slot1; wait 2; alias revolverswitch revolversecondary"
alias revolversecondary "slot2; lastdisguise; wait 10; slot1; wait 2; alias revolverswitch revolvermelee"
alias revolvermelee "slot3; lastdisguise; wait 10; slot1; wait 2; alias revolverswitch revolverprimary"

bind 2 "sapperswitch"

alias sapperswitch "sapperprimary"
alias sapperprimary "slot1; lastdisguise; wait 10; slot2; wait 2; alias sapperswitch sappersecondary"
alias sappersecondary "slot2; lastdisguise; wait 10; slot2; wait 2; alias sapperswitch sappermelee"
alias sappermelee "slot3; lastdisguise; wait 10; slot2; wait 2; alias sapperswitch sapperprimary"

bind 3 "knifeswitch"

alias knifeswitch "knifeprimary"
alias knifeprimary "slot1; lastdisguise; wait 10; slot3; wait 2; alias knifeswitch knifesecondary"
alias knifesecondary "slot2; lastdisguise; wait 10; slot3; wait 2; alias knifeswitch knifemelee"
alias knifemelee "slot3; lastdisguise; wait 10; slot3; wait 2; alias knifeswitch knifeprimary"
Posted by TheBladeRoden

Drop Disguise Key

Definitely nothing fancy, but I've had this in my scripts for ages and I can't tell you how handy it is, and after just checking here, I'm surprised to see it missing from this page. It works by donning a friendly spy disguise, which instantly removes any disguise you have on with no smoke or sound (can be done manually, but kind've a pain to do so).
If you're curious as to why you should bother: capture point capturing can be done during the entirety of the "decloak" time, so when most people wait to attack with their knife in order to lose disguise and start the capture, they're wasting a full second or so, which sometimes matters tremendously (especially on a fifth point).
Posted by G-Mang
alias dropdisguise "echo DISGUISE_DROP;disguise 8 -2"

bind "x" "dropdisguise"

Flick Cigarette Button

This sets the taunt button to whip out the Disguise kit and taunt. Has the side effect of leaving you at the disguise selection menu (if you know how to circumvent this shoot me an email please).
Posted by Unknown User
alias "flickcig" "slot4; wait 8; taunt; wait 30; slot 1"
bind "g" "flickcig"
Solution: You have to add a longer wait time after the taunt, depending on your FPS you may have to edit it.
Edited by Shadow.
alias "flickcig" "slot4; wait 6; taunt; wait 590; slot 1"
bind "g" "flickcig"

Sapping While Walking

Press one key to active the sapping mode, and again to disable it. Disable it by clicking again MOUSE3 (or whatever your key is), not by firing or switching weapons with the scroll. By doing this it will make the script think it is still in state "attack_1". It will not shoot automaticaly but if you press MOUSE3 after it will disable the script and turn it to your lastused weapon: the sapper, so you'll need to press MOUSE3 again to activate it.
Important If you have the revolver equipped before activating the script it may fire one pistol bullet even though you do not lose your disguise.
Posted by Armageddon
alias "Attack_on" "Attack_1"
alias "Attack_1" "build 4;wait 30;+attack; alias Attack_on Attack_Off"
alias "Attack_off" "-attack; lastinv; alias Attack_on Attack_1"
bind "MOUSE3" "Attack_on"


Sapping While Walking Improved

Basically, the above script with improvements. When you take out your Sapper, it will auto-sap everything as fast as possible. When you switch to a different weapon, it will stop sapping. Thoroughly tested.
Posted by Pauan based on script posted by Armageddon
alias "toggle" "sap_on"
alias "sap_on" "+attack; alias toggle sap_off"
alias "sap_off" "-attack; alias toggle sap_on"
bind "1" "sap_off; slot1"
bind "2" "toggle; slot2"
bind "3" "sap_off; slot3"
bind "4" "sap_off; slot4"

Spy Attack and Last Disguise

Use this for a special attack button in spy.cfg to automatically go to lastdisguise after attacking with said button.
Posted by Essobie
// Spy Attack and Disguise
// =======================
alias +spy_attackdisguise "+attack"
alias -spy_attackdisguise "-attack; lastdisguise"

bind "MOUSE1" +spy_attackdisguise

Spy Drop Flag Or Disguise

For anyone using the above script, you may find the problem that you have no way to permanently drop your disguise, since your attack is bound to always re-apply your last disguise. This basic script allows a single key to drop the flag or drop your current disguise. :The main use for this is if you find yourself in a position where you need to capture a point as spy.
Posted by Klaymen
alias "+dropFlagAndDisguise" "dropitem;+attack"
alias "-dropFlagAndDisguise" "-attack"

bind "BACKSPACE" "+dropFlagAndDisguise"

Viper (Attack & Cloak) minimalist, 'wait-free' Spy script

This is a minimalist script. When holding an activation key (SHIFT by default),
an attack by the player causes them to attack once, then instantly cloak. This
script does NOT cause the player to immediately re-disguise, which places the
burden and choice of new disguise back in the player's hands.
Submitted by User:NathanDetroit
//--------------------------------------------------
//   VIPER (Attack & Cloak)
//     A minimalist spy script by NathanDetroit
//
//     Holding down the "Viper Key" you define below changes your MOUSE1 attack
//     so that after it is pressed you will attack once, then instantly cloak.  
//     Releasing the  "Viper Key" reverts your MOUSE1 attack to normal.
//
//     To delay the re-cloaking component, simply hold MOUSE1 down after executing
//     the attack.  When MOUSE1 is released, the script will resolve and the
//     player will immediately cloak.
//
//   Define Viper_Revert: rebind MOUSE1 (to +attack, by default)
alias viper_revert "bind MOUSE1 +attack"

//   Define Viper_Attack: a MOUSE1 press attacks, a MOUSE1 release cloaks
alias +viper_attack "+attack"
alias -viper_attack "-attack; +attack2; -attack2;

//   Define Viper_Start: keypress readies 'Attack', key release runs 'Revert'
alias +viper_start "bind MOUSE1 +viper_attack"
alias -viper_start "viper_revert"

//   Define Viper Key: (SHIFT, by default)
bind "SHIFT" +viper_start

Spy Hit and Run with SHIFT

This script causes the player to attack, cloak, wait for a split second, and change to the last disguise. SHIFT must be held down while you press MOUSE1 (or whatever key you choose). This way, you don't always have to draw attention to yourself with disguise clouds OR waste cloak charge time; you can backstab a few people while remaining mostly unnoticed, then cloak and disguise on your way out of the area.
Posted by H4l0gen
//--------------------------------------------------
// Hit and Run Script


// Whatever MOUSE1 is "general"ly used for
alias keymod_mouse1_general "bind MOUSE1 +attack"

// What MOUSE1 will be used for when SHIFT is pressed
alias +spy_hitandrun "+attack"
alias -spy_hitandrun "-attack; +attack2; -attack2; wait 20; lastdisguise"

// Toggle between MOUSE1 binds
alias +spy_enablehitandrun "bind MOUSE1 +spy_hitandrun"
alias -spy_enablehitandrun "keymod_mouse1_general"

// Bind SHIFT and MOUSE1
bind "SHIFT" +spy_enablehitandrun
keymod_mouse1_general


Spy Quick Disguise Scripts

FixIt's Quick-n-Dirty Disguise Script

Holding shift assigns the first five disguises to 1 - 5. Holding alt assigns the remaining four disguises to 1-4. Pressing 'B' while holding either shift or alt will switch the team color of your disguise. (The script is designed to default to enemy disguises upon loading)
B by itself functions as it normally does. Also, pressing E while holding Shift will trigger voicemenu 1 6 ("Activate Charge!")
Posted by FixIt
alias "a1" "disguise 1 -1" Enemy Scout"
alias "a2" "disguise 3 -1" Enemy Soldier"
alias "a3" "disguise 7 -1" Enemy Pyro"
alias "a4" "disguise 4 -1" Enemy Demoman"
alias "a5" "disguise 6 -1" Enemy Heavy"
alias "a6" "disguise 9 -1" Enemy Engineer"
alias "a7" "disguise 5 -1" Enemy Medic"
alias "a8" "disguise 2 -1" Enemy Sniper"
alias "a9" "disguise 8 -1" Enemy Spy"
alias "b1" "disguise 1 -2" Ally Scout"
alias "b2" "disguise 3 -2" Ally Soldier"
alias "b3" "disguise 7 -2" Ally Pyro"
alias "b4" "disguise 4 -2" Ally Demoman"
alias "b5" "disguise 6 -2" Ally Heavy"
alias "b6" "disguise 9 -2" Ally Engineer"
alias "b7" "disguise 5 -2" Ally Medic"
alias "b8" "disguise 2 -2" Ally Sniper"
alias "b9" "disguise 8 -2" Ally Spy"
alias "disscout" "a1"
alias "dissoldier" "a2"
alias "dispyro" "a3"
alias "disdemoman" "a4"
alias "disheavy" "a5"
alias "disengineer" "a6"
alias "dismedic" "a7"
alias "dissniper" "a8"
alias "disspy" "a9"
alias "discolor" "dis-us"
alias "dis-us" "alias disscout b1; alias dissoldier b2; alias dispyro b3; alias disdemoman b4; alias disheavy b5; alias disengineer b6; alias dismedic b7; alias dissniper b8; alias disspy b9; alias discolor dis-them; developer 1; echo ***Engaging Allied Disguises***; wait 300; developer 0"
alias "dis-them" "alias disscout a1; alias dissoldier a2; alias dispyro a3; alias disdemoman a4; alias disheavy a5; alias disengineer a6; alias dismedic a7; alias dissniper a8; alias disspy a9; alias discolor dis-us; developer 1; echo ***Engaging Enemy Disguises***; wait 300; developer 0"
alias "+disguise1" "bind 1 disscout; bind 2 dissoldier; bind 3 dispyro; bind 4 disdemoman; bind 5 disheavy; alias lastused discolor; alias chargeme voicemenu 1 6"
alias "-disguise1" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; alias lastused lastdisguise; alias chargeme voicemenu 0 0"
alias "+disguise2" "bind 1 disengineer; bind 2 dismedic; bind 3 dissniper; bind 4 disspy; alias lastused discolor"
alias "-disguise2" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; alias lastused lastdisguise"
bind "shift" "+disguise1"
bind "alt" "+disguise2"
bind "b" "lastused"

Spider's Disguise Overhaul

Please put this in your Autoexec file before using this script.

bind mouse1 "+allattack"
bind mwheelup "slot1"
bind mwheeldown "slot2"
bind mouse3 "slot3"

alias +allattack "+attack;"
alias -allattack "-attack;"

(I find mousewheel setups for weapons are VASTLY more effective than anything else. "lastweapon" is now a useless command.)

1-9 are automatically linked to their corresponding class (in original order) on the opposite team. Holding "-" changes them to your current team.
"q" now replaces "b" for last disguise, and mainly because you wont be needing lastwep. This also lets you change your disguise's false weapons by just pressing q to synch it to your current weapon.
Holding "F" does 2 things:
If you let go of the attack button, you will autodisguise as a random class (not scout or heavy)
If you press "q", you will drop your disguise
//Spider's Disguise Overhaul
//===================
//==Controls=========
//f+mouse1 = disguise after attack
//f+e = call for ubercharge
//f+q = drop disguise
//q = last disguise/sync disguise weapon
//x = call "need dispenser here"
//c = call "spy"
//1-9 = enemy disguise list
//"-"+1-9 = friendly disguise list
//*WARNING* Please set your mousewheel to deal with selecting weapons. Preferably mwheelup=slot1, mwheeldown=slot2, and mouse3=slot3
//** You can do this by going to the in-game options, and selecting "Keyboard"
//** If you don't you will not be able to switch weapons.
//==================

//Binds
bind "mouse1" +defaultmouse1
bind "-" "+fdislist"
bind "f" +ToggleSubtlety
bind "q" dawndisguise
bind "e" ecall
bind "x " xcall
bind "c" ccall
bind "1" edis1
bind "2" edis2
bind "3" edis3
bind "4" edis4
bind "5" edis5
bind "6" edis6
bind "7" edis7
bind "8" edis8
bind "9" edis9

//Disguise Mapping
alias edis1 "disguise 1 -1;"
alias edis2 "disguise 3 -1;"
alias edis3 "disguise 7 -1;"
alias edis4 "disguise 9 -1;"
alias edis5 "disguise 6 -1;"
alias edis6 "disguise 4 -1;"
alias edis7 "disguise 5 -1;"
alias edis8 "disguise 2 -1;"
alias edis9 "disguise 8 -1;"
alias fdis1 "disguise 1 -2;"
alias fdis2 "disguise 3 -2;"
alias fdis3 "disguise 7 -2;"
alias fdis4 "disguise 9 -2;"
alias fdis5 "disguise 6 -2;"
alias fdis6 "disguise 4 -2;"
alias fdis7 "disguise 5 -2;"
alias fdis8 "disguise 2 -2;"
alias fdis9 "disguise 8 -2;"

alias +fdislist "alias edis1 fdis1; alias edis2 fdis2; alias edis3 fdis3; alias edis4 fdis4; alias edis5 fdis5; alias edis6 fdis6; alias edis7 fdis7; alias edis8 fdis8; alias edis9 fdis9;"
alias -fdislist "alias edis1 disguise 1 -1; alias edis2 disguise 3 -1; alias edis3 disguise 7 -1; alias edis4 disguise 9 -1; alias edis5 disguise 6 -1; alias edis6 disguise 4 -1; alias edis7 disguise 5 -1; alias edis8 disguise 2 -1; alias edis9 disguise 8 -1;"

//Low Profile

alias +defaultmouse1 "+attack"
alias -defaultmouse1 "-attack"
alias Subtlety "-attack;lastdisguise random;"
alias +ToggleSubtlety "alias -defaultmouse1 Subtlety;alias dawndisguise dropdisguise;alias ecall ecall2"
alias -ToggleSubtlety "alias -defaultmouse1 -attack;alias dawndisguise lastdisguise;alias ecall voicemenu 0 0"
alias dawndisguise "lastdisguise;"
alias dropdisguise "disguise 8 -2;"

//High Profile

alias ecall "voicemenu 0 0;"
alias ecall2 "voicemenu 1 6;"
alias xcall "voicemenu 1 4;"
alias ccall "voicemenu 1 1;"


Side note: having the toggle autodisguise set the way I do causes the mouse1 button to not work (for whatever reason). The only way I know of fixing this is to bind the small script written above my main script.

Spy Quick Disguise

Press a disguise button once to disguise as an enemy of that class. Press the same button a second time to disguise as a friendly of that class. Firing a pistol or stabbing will reset the enemy/friendly toggle on all disguise buttons, but sapping will not. You must use weapon selection keys for this to work, however. Do not use invlast/invnext for weapon selection.
Posted by Essobie
// Spy Quick Disguise
// ==================
alias spy_e1 "disguise 1 -1; spy_reset; alias spy1 spy_a1"
alias spy_e2 "disguise 3 -1; spy_reset; alias spy2 spy_a2"
alias spy_e3 "disguise 7 -1; spy_reset; alias spy3 spy_a3"
alias spy_e4 "disguise 4 -1; spy_reset; alias spy4 spy_a4"
alias spy_e5 "disguise 6 -1; spy_reset; alias spy5 spy_a5"
alias spy_e6 "disguise 9 -1; spy_reset; alias spy6 spy_a6"
alias spy_e7 "disguise 5 -1; spy_reset; alias spy7 spy_a7"
alias spy_e8 "disguise 2 -1; spy_reset; alias spy8 spy_a8"
alias spy_e9 "disguise 8 -1; spy_reset; alias spy9 spy_a9"

alias spy_a1 "disguise 1 -2; spy_reset; alias spy1 spy_e1"
alias spy_a2 "disguise 3 -2; spy_reset; alias spy2 spy_e2"
alias spy_a3 "disguise 7 -2; spy_reset; alias spy3 spy_e3"
alias spy_a4 "disguise 4 -2; spy_reset; alias spy4 spy_e4"
alias spy_a5 "disguise 6 -2; spy_reset; alias spy5 spy_e5"
alias spy_a6 "disguise 9 -2; spy_reset; alias spy6 spy_e6"
alias spy_a7 "disguise 5 -2; spy_reset; alias spy7 spy_e7"
alias spy_a8 "disguise 2 -2; spy_reset; alias spy8 spy_e8"
alias spy_a9 "disguise 8 -2; spy_reset; alias spy9 spy_e9"

alias +spy_attack_special "+attack; spy_reset"
alias -spy_attack_special "-attack"
alias +spy_attack +spy_attack_special
alias -spy_attack -spy_attack_special

alias _pri "slot1; alias +spy_attack +spy_attack_special; alias -spy_attack -spy_attack_special"         // Attack and reset disguises.
alias swap_mel_spy "slot3; alias +spy_attack +spy_attack_special; alias -spy_attack -spy_attack_special" // Attack and reset disguises.
alias _sec "build 4; alias +spy_attack +attack; alias -spy_attack -attack"                               // Place Sapper (don't reset disguises)

alias spy_reset "alias spy1 spy_e1; alias spy2 spy_e2;alias spy3 spy_e3;alias spy4 spy_e4;alias spy5 spy_e5;alias spy6 spy_e6;alias spy7 spy_e7;alias spy8 spy_e8; alias spy9 spy_e9"

spy_reset // Initialize script

bind "MOUSE1"     "+spy_attack"   // Special Spy Attack
bind "PGUP"       "spy3"          // Disguise as Pyro.
bind "PGDN"       "spy6"          // Disguise as Engineer.
bind "END"        "spy5"          // Disguise as Heavy.
bind "MWHEELUP"   "spy1"          // Disguise as Scout.
bind "MWHEELDOWN" "spy2"          // Disguise as Soldier.
bind "t"          "spy8"          // Disguise as Sniper.
bind "r"          "spy7"          // Disguise as Medic.
bind "g"          "spy4"          // Disguise as Demoman.
bind "5"          "spy9"          // Disguise as Spy.
bind "v"          "_pri"          // Select Primary Weapon.
bind "x"          "_sec"          // Select Sapper.
bind "MOUSE3"     "swap_mel_spy"  // Select Knife.

Spy Quick Disguise with PLAY Command Intergration

Same as spy quick disguise except with the addition of integration with some of Greeze's .wav files when a disguise is chosen. Prevents having to look down at the HUD to see what you will be disguising as. Note that you MUST have these .wav files installed correctly for this script to work. See Downloads page for details.
Posted by Essobie inspired by Greeze's Downloads
There is some discussion about this script.
// Spy Quick Disguise with PLAY Command Intergration
// =================================================
// Note: This script requires that you have class name .wav files available in
// the following directory: ..\Steam\steamapps\[yourSteamName]\team fortress 2\tf\sound\

alias spy_e1 "play_1; disguise 1 -1; spy_reset; alias spy1 spy_a1"
alias spy_e2 "play_2; disguise 3 -1; spy_reset; alias spy2 spy_a2"
alias spy_e3 "play_3; disguise 7 -1; spy_reset; alias spy3 spy_a3"
alias spy_e4 "play_4; disguise 4 -1; spy_reset; alias spy4 spy_a4"
alias spy_e5 "play_5; disguise 6 -1; spy_reset; alias spy5 spy_a5"
alias spy_e6 "play_6; disguise 9 -1; spy_reset; alias spy6 spy_a6"
alias spy_e7 "play_7; disguise 5 -1; spy_reset; alias spy7 spy_a7"
alias spy_e8 "play_8; disguise 2 -1; spy_reset; alias spy8 spy_a8"
alias spy_e9 "play_9; disguise 8 -1; spy_reset; alias spy9 spy_a9"

alias spy_a1 "play_1; disguise 1 -2; spy_reset; alias spy1 spy_e1"
alias spy_a2 "play_2; disguise 3 -2; spy_reset; alias spy2 spy_e2"
alias spy_a3 "play_3; disguise 7 -2; spy_reset; alias spy3 spy_e3"
alias spy_a4 "play_4; disguise 4 -2; spy_reset; alias spy4 spy_e4"
alias spy_a5 "play_5; disguise 6 -2; spy_reset; alias spy5 spy_e5"
alias spy_a6 "play_6; disguise 9 -2; spy_reset; alias spy6 spy_e6"
alias spy_a7 "play_7; disguise 5 -2; spy_reset; alias spy7 spy_e7"
alias spy_a8 "play_8; disguise 2 -2; spy_reset; alias spy8 spy_e8"
alias spy_a9 "play_9; disguise 8 -2; spy_reset; alias spy9 spy_e9"

alias +spy_attack_special "+attack; spy_reset"
alias -spy_attack_special "-attack"
alias +spy_attack +spy_attack_special
alias -spy_attack -spy_attack_special

alias _pri "slot1; alias +spy_attack +spy_attack_special; alias -spy_attack -spy_attack_special"         // Attack and reset disguises.
alias swap_mel_spy "slot3; alias +spy_attack +spy_attack_special; alias -spy_attack -spy_attack_special" // Attack and reset disguises.
alias _sec "build 4; alias +spy_attack +attack; alias -spy_attack -attack"                               // Place Sapper (don't reset disguises)

alias spy_reset "alias spy1 spy_e1; alias spy2 spy_e2;alias spy3 spy_e3;alias spy4 spy_e4;alias spy5 spy_e5;alias spy6 spy_e6;alias spy7 spy_e7;alias spy8 spy_e8; alias spy9 spy_e9"

// Play Command Integration
// ========================
alias play_1 "play scout.wav"
alias play_2 "play soldier.wav"
alias play_3 "play pyro.wav"
alias play_4 "play demo.wav"
alias play_5 "play hwguy.wav"
alias play_6 "play engineer.wav"
alias play_7 "play medic.wav"
alias play_8 "play sniper.wav"
alias play_9 "play spy.wav"

spy_reset // Initialize script

bind "MOUSE1"     "+spy_attack"   // Special Spy Attack
bind "PGUP"       "spy3"          // Disguise as Pyro.
bind "PGDN"       "spy6"          // Disguise as Engineer.
bind "END"        "spy5"          // Disguise as Heavy.
bind "MWHEELUP"   "spy1"          // Disguise as Scout.
bind "MWHEELDOWN" "spy2"          // Disguise as Soldier.
bind "t"          "spy8"          // Disguise as Sniper.
bind "r"          "spy7"          // Disguise as Medic.
bind "g"          "spy4"          // Disguise as Demoman.
bind "5"          "spy9"          // Disguise as Spy.
bind "v"          "_pri"          // Select Primary Weapon.
bind "x"          "_sec"          // Select Sapper.
bind "MOUSE3"     "swap_mel_spy"  // Select Knife.

Spy Quick Disguise with PLAY Command Intergration with Colors

Same as above except uses color specific wav files for each class, rather than just the class name. Again, you will need to have have these .wav files installed correctly for this script to work. See Downloads page for details.
Posted by Klaymen inspired by Greeze's Downloads
// Spy Quick Disguise with PLAY Command Intergration (Including Color)
// ===================================================================
alias spy_cycle_r2 "play_r2; disguise 3 0; alias spy_cycleup spy_cycle_r3; alias spy_cycledn spy_cycle_r8; alias spy_colorswap spy_cycle_b2; spy_red"
alias spy_cycle_r3 "play_r3; disguise 7 0; alias spy_cycleup spy_cycle_r4; alias spy_cycledn spy_cycle_r2; alias spy_colorswap spy_cycle_b3; spy_red"
alias spy_cycle_r4 "play_r4; disguise 4 0; alias spy_cycleup spy_cycle_r5; alias spy_cycledn spy_cycle_r3; alias spy_colorswap spy_cycle_b4; spy_red"
alias spy_cycle_r5 "play_r5; disguise 6 0; alias spy_cycleup spy_cycle_r6; alias spy_cycledn spy_cycle_r4; alias spy_colorswap spy_cycle_b5; spy_red"
alias spy_cycle_r6 "play_r6; disguise 9 0; alias spy_cycleup spy_cycle_r7; alias spy_cycledn spy_cycle_r5; alias spy_colorswap spy_cycle_b6; spy_red"
alias spy_cycle_r7 "play_r7; disguise 5 0; alias spy_cycleup spy_cycle_r8; alias spy_cycledn spy_cycle_r6; alias spy_colorswap spy_cycle_b7; spy_red"
alias spy_cycle_r8 "play_r8; disguise 2 0; alias spy_cycleup spy_cycle_r2; alias spy_cycledn spy_cycle_r7; alias spy_colorswap spy_cycle_b8; spy_red"

alias spy_cycle_b2 "play_b2; disguise 3 1; alias spy_cycleup spy_cycle_b3; alias spy_cycledn spy_cycle_b8; alias spy_colorswap spy_cycle_r2; spy_blu"
alias spy_cycle_b3 "play_b3; disguise 7 1; alias spy_cycleup spy_cycle_b4; alias spy_cycledn spy_cycle_b2; alias spy_colorswap spy_cycle_r3; spy_blu"
alias spy_cycle_b4 "play_b4; disguise 4 1; alias spy_cycleup spy_cycle_b5; alias spy_cycledn spy_cycle_b3; alias spy_colorswap spy_cycle_r4; spy_blu"
alias spy_cycle_b5 "play_b5; disguise 6 1; alias spy_cycleup spy_cycle_b6; alias spy_cycledn spy_cycle_b4; alias spy_colorswap spy_cycle_r5; spy_blu"
alias spy_cycle_b6 "play_b6; disguise 9 1; alias spy_cycleup spy_cycle_b7; alias spy_cycledn spy_cycle_b5; alias spy_colorswap spy_cycle_r6; spy_blu"
alias spy_cycle_b7 "play_b7; disguise 5 1; alias spy_cycleup spy_cycle_b8; alias spy_cycledn spy_cycle_b6; alias spy_colorswap spy_cycle_r7; spy_blu"
alias spy_cycle_b8 "play_b8; disguise 2 1; alias spy_cycleup spy_cycle_b2; alias spy_cycledn spy_cycle_b7; alias spy_colorswap spy_cycle_r8; spy_blu"

alias spy_red "alias spy2 spy_cycle_r2;alias spy3 spy_cycle_r3;alias spy4 spy_cycle_r4;alias spy5 spy_cycle_r5;alias spy6 spy_cycle_r6;alias spy7 spy_cycle_r7;alias spy8 spy_cycle_r8"
alias spy_blu "alias spy2 spy_cycle_b2;alias spy3 spy_cycle_b3;alias spy4 spy_cycle_b4;alias spy5 spy_cycle_b5;alias spy6 spy_cycle_b6;alias spy7 spy_cycle_b7;alias spy8 spy_cycle_b8"

// Play Command Integration
// ========================
alias play_r2 "play cfg/red_soldier.wav"
alias play_r3 "play cfg/red_pyro.wav"
alias play_r4 "play cfg/red_demoman.wav"
alias play_r5 "play cfg/red_hwguy.wav"
alias play_r6 "play cfg/red_engineer.wav"
alias play_r7 "play cfg/red_medic.wav"
alias play_r8 "play cfg/red_sniper.wav"

alias play_b2 "play cfg/blue_soldier.wav"
alias play_b3 "play cfg/blue_pyro.wav"
alias play_b4 "play cfg/blue_demoman.wav"
alias play_b5 "play cfg/blue_hwguy.wav"
alias play_b6 "play cfg/blue_engineer.wav"
alias play_b7 "play cfg/blue_medic.wav"
alias play_b8 "play cfg/blue_sniper.wav"

spy_cycle_b8 // Initialize script and disguise as a Blue Sniper. Alter to taste.

bind "MWHEELUP" "spy_cycleup" 			// Cycles disguise in the current color up a class by number.
bind "MWHEELDOWN" "spy_cycledn" 		// Cycles disguise in the current color down a class by number.
bind "END" "spy_colorswap" 			// Swaps to the other team color and starts a disguise of the last class you selected.
bind "KP_DOWNARROW"		"spy2"		// Disguise as Current Color Soldier
bind "KP_PGDN"			"spy3"		// Disguise as Current Color Pyro
bind "KP_LEFTARROW"		"spy4"		// Disguise as Current Color Demoman
bind "KP_5"			"spy5"		// Disguise as Current Color Heavy
bind "KP_RIGHTARROW"		"spy6"		// Disguise as Current Color Engineer
bind "KP_HOME"			"spy7"		// Disguise as Current Color Medic
bind "KP_UPARROW"		"spy8"		// Disguise as Current Color Sniper
bind "KP_INS"			"spy_colorswap"	// Swap to opposite color.

Spy Quick Disguise Alternative

Same as above, except it won't use more then 1 key. Press MOUSE3 (you can change that) + 1 for scout, 2 for soldier, etc. Press MOUSE3 + 0 to change disguise colour (default you will disguise as BLU). You will notify your team (using say_team) what colour and class you disguise to.
Posted by (µÞ{}fT¡34¡™
//Spy quick disguise with key combinations
//v1.4
alias "b1" "disguise 1 1; say_team Disguising as a: Blu Scout"
alias "b2" "disguise 3 1; say_team Disguising as a: Blu Soldier"
alias "b3" "disguise 7 1; say_team Disguising as a: Blu Pyro"
alias "b4" "disguise 4 1; say_team Disguising as a: Blu Demoman"
alias "b5" "disguise 6 1; say_team Disguising as a: Blu Heavy"
alias "b6" "disguise 9 1; say_team Disguising as a: Blu Engineer"
alias "b7" "disguise 5 1; say_team Disguising as a: Blu Medic"
alias "b8" "disguise 2 1; say_team Disguising as a: Blu Sniper"
alias "b9" "disguise 8 1; say_team Disguising as a: Blu Spy"
alias "r1" "disguise 1 2; say_team Disguising as a: Red Scout"
alias "r2" "disguise 3 2; say_team Disguising as a: Red Soldier"
alias "r3" "disguise 7 2; say_team Disguising as a: Red Pyro"
alias "r4" "disguise 4 2; say_team Disguising as a: Red Demoman"
alias "r5" "disguise 6 2; say_team Disguising as a: Red Heavy"
alias "r6" "disguise 9 2; say_team Disguising as a: Red Engineer"
alias "r7" "disguise 5 2; say_team Disguising as a: Red Medic"
alias "r8" "disguise 2 2; say_team Disguising as a: Red Sniper"
alias "r9" "disguise 8 2; say_team Disguising as a: Red Spy"
alias "disscout" "b1"
alias "dissoldier" "b2"
alias "dispyro" "b3"
alias "disdemoman" "b4"
alias "disheavy" "b5"
alias "disengineer" "b6"
alias "dismedic" "b7"
alias "dissniper" "b8"
alias "disspy" "b9"
alias "discolor" "disred"
alias "disred" "alias disscout r1; alias dissoldier r2; alias dispyro r3; alias disdemoman r4; alias disheavy r5; alias disengineer r6; alias dismedic r7; alias dissniper r8; alias disspy r9; alias discolor disblu; developer 1; echo You Will Now Disguise As RED; wait 300; developer 0"
alias "disblu" "alias disscout b1; alias dissoldier b2; alias dispyro b3; alias disdemoman b4; alias disheavy b5; alias disengineer b6; alias dismedic b7; alias dissniper b8; alias disspy b9; alias discolor disred; developer 1; echo You Will Now Disguise As BLU; wait 300; developer 0"
alias "+disguise" "bind 1 disscout; bind 2 dissoldier; bind 3 dispyro; bind 4 disdemoman; bind 5 disheavy; bind 6 disengineer; bind 7 dismedic; bind 8 dissniper; bind 9 disspy; bind 0 discolor"
alias "-disguise" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9; bind 0 slot10"
bind "MOUSE3" "+disguise"   //You can change this key to whatever you want
  • v1.5: Undisguise by pressing MOUSE3 + -
//Spy quick disguise with key combinations
//By CupOfTea
//v1.5
alias "b1" "disguise 1 1; say_team Disuising as a: Blu Scout"
alias "b2" "disguise 3 1; say_team Disuising as a: Blu Soldier"
alias "b3" "disguise 7 1; say_team Disuising as a: Blu Pyro"
alias "b4" "disguise 4 1; say_team Disuising as a: Blu Demoman"
alias "b5" "disguise 6 1; say_team Disuising as a: Blu Heavy"
alias "b6" "disguise 9 1; say_team Disuising as a: Blu Engineer"
alias "b7" "disguise 5 1; say_team Disuising as a: Blu Medic"
alias "b8" "disguise 2 1; say_team Disuising as a: Blu Sniper"
alias "b9" "disguise 8 1; say_team Disuising as a: Blu Spy"
alias "r1" "disguise 1 2; say_team Disuising as a: Red Scout"
alias "r2" "disguise 3 2; say_team Disuising as a: Red Soldier"
alias "r3" "disguise 7 2; say_team Disuising as a: Red Pyro"
alias "r4" "disguise 4 2; say_team Disuising as a: Red Demoman"
alias "r5" "disguise 6 2; say_team Disuising as a: Red Heavy"
alias "r6" "disguise 9 2; say_team Disuising as a: Red Engineer"
alias "r7" "disguise 5 2; say_team Disuising as a: Red Medic"
alias "r8" "disguise 2 2; say_team Disuising as a: Red Sniper"
alias "r9" "disguise 8 2; say_team Disuising as a: Red Spy"
alias "disscout" "b1"
alias "dissoldier" "b2"
alias "dispyro" "b3"
alias "disdemoman" "b4"
alias "disheavy" "b5"
alias "disengineer" "b6"
alias "dismedic" "b7"
alias "dissniper" "b8"
alias "disspy" "b9"
alias "undisg" "r9"
alias "discolor" "disred"
alias "disred" "alias disscout r1; alias dissoldier r2; alias dispyro r3; alias disdemoman r4; alias disheavy r5; alias disengineer r6; alias dismedic r7; alias dissniper r8; alias disspy r9; alias undisg b9; alias discolor disblu; developer 1; echo You Will Now Disguise As RED; wait 300; developer 0"
alias "disblu" "alias disscout b1; alias dissoldier b2; alias dispyro b3; alias disdemoman b4; alias disheavy b5; alias disengineer b6; alias dismedic b7; alias dissniper b8; alias disspy b9; alias discolor disred; developer 1; echo You Will Now Disguise As BLU; wait 300; developer 0"
alias "+disguise" "bind 1 disscout; bind 2 dissoldier; bind 3 dispyro; bind 4 disdemoman; bind 5 disheavy; bind 6 disengineer; bind 7 dismedic; bind 8 dissniper; bind 9 disspy; bind 0 discolor; bind - undisg"
alias "-disguise" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9; bind 0 slot10; bind - disguiseteam"
bind "MOUSE3" "+disguise"
  • v2.0: Desguise color is automaticly the enemies color at start.
//Spy quick disguise with key combinations
//By CupOfTea
//v2.0
//
/////////////////////////////////////////////////////////////////////////////////////
//Changelog:                                                                       //
//*v1.4: -Got the script working properly.                                         //
//*v1.5: -Added key to undisguise.                                                 //
//*v2.0: -Replaced colors by Enemy/Ally. You will start disguising as an enemy.    //
//       -Added changelog                                                          //
/////////////////////////////////////////////////////////////////////////////////////
//
alias "e1" "disguise 1 -1; say_team Disuising as an: Enemy Scout"
alias "e2" "disguise 3 -1; say_team Disuising as an: Enemy Soldier"
alias "e3" "disguise 7 -1; say_team Disuising as an: Enemy Pyro"
alias "e4" "disguise 4 -1; say_team Disuising as an: Enemy Demoman"
alias "e5" "disguise 6 -1; say_team Disuising as an: Enemy Heavy"
alias "e6" "disguise 9 -1; say_team Disuising as an: Enemy Engineer"
alias "e7" "disguise 5 -1; say_team Disuising as an: Enemy Medic"
alias "e8" "disguise 2 -1; say_team Disuising as an: Enemy Sniper"
alias "e9" "disguise 8 -1; say_team Disuising as an: Enemy Spy"
alias "a1" "disguise 1 -2; say_team Disuising as an: Allied Scout"
alias "a2" "disguise 3 -2; say_team Disuising as an: Allied Soldier"
alias "a3" "disguise 7 -2; say_team Disuising as an: Allied Pyro"
alias "a4" "disguise 4 -2; say_team Disuising as an: Allied Demoman"
alias "a5" "disguise 6 -2; say_team Disuising as an: Allied Heavy"
alias "a6" "disguise 9 -2; say_team Disuising as an: Allied Engineer"
alias "a7" "disguise 5 -2; say_team Disuising as an: Allied Medic"
alias "a8" "disguise 2 -2; say_team Disuising as an: Allied Sniper"
alias "a9" "disguise 8 -2; say_team Disuising as an: Allied Spy"
alias "disscout" "e1"
alias "dissoldier" "e2"
alias "dispyro" "e3"
alias "disdemoman" "e4"
alias "disheavy" "e5"
alias "disengineer" "e6"
alias "dismedic" "e7"
alias "dissniper" "e8"
alias "disspy" "e9"
alias "undisg" "a9"
alias "discolor" "disallied"
alias "disallied" "alias disscout a1; alias dissoldier a2; alias dispyro a3; alias disdemoman a4; alias disheavy a5; alias disengineer a6; alias dismedic a7; alias dissniper a8; alias disspy a9; alias undisg a9; alias discolor disenemy; developer 1; echo You Will Now Disguise As An Ally; wait 300; developer 0"
alias "disenemy" "alias disscout e1; alias dissoldier e2; alias dispyro e3; alias disdemoman e4; alias disheavy e5; alias disengineer e6; alias dismedic e7; alias dissniper e8; alias disspy e9; alias discolor disallied; developer 1; echo You Will Now Disguise As An Enemy; wait 300; developer 0"
alias "+disguise" "bind 1 disscout; bind 2 dissoldier; bind 3 dispyro; bind 4 disdemoman; bind 5 disheavy; bind 6 disengineer; bind 7 dismedic; bind 8 dissniper; bind 9 disspy; bind 0 discolor; bind - undisg"
alias "-disguise" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5; bind 6 slot6; bind 7 slot7; bind 8 slot8; bind 9 slot9; bind 0 slot10; bind - disguiseteam"
bind "MOUSE3" "+disguise"

Spy Quick Disguise Simple

Simplified and re-keyed quick disguise script. Hold SHIFT+KEY for enemy disguise, CAPS+KEY for ally. Keys were chosen for quick access: Q for spy, ASDF for ~spy speed classes, ZXCV for faster/slower classes. Should be able to run forward with W and use mouse while using most combinations. Uncomment last line to bind mouse3 to lastdisguise.
Posted by Azath
SHIFT+KEY : Enemy Disguise
CAPS+KEY : Ally Disguise

Q = Spy

A = Pyro
S = Sniper
D = Demoman
F = Engineer

Z = Scout
X = Medic
C = Soldier
V = Heavy
// Spy Quick Disguise Simple
// =========================
alias spy_e1 "disguise 1 -1"
alias spy_e2 "disguise 3 -1"
alias spy_e3 "disguise 7 -1"
alias spy_e4 "disguise 4 -1"
alias spy_e5 "disguise 6 -1"
alias spy_e6 "disguise 9 -1"
alias spy_e7 "disguise 5 -1"
alias spy_e8 "disguise 2 -1"
alias spy_e9 "disguise 8 -1"

alias spy_a1 "disguise 1 -2"
alias spy_a2 "disguise 3 -2"
alias spy_a3 "disguise 7 -2"
alias spy_a4 "disguise 4 -2"
alias spy_a5 "disguise 6 -2"
alias spy_a6 "disguise 9 -2"
alias spy_a7 "disguise 5 -2"
alias spy_a8 "disguise 2 -2"
alias spy_a9 "disguise 8 -2"

alias +quickspy "bind q spy_e9; bind a spy_e3; bind s spy_e8; bind d spy_e4; bind f spy_e6; bind z spy_e1; bind x spy_7; bind c spy_e2; bind v spy_e5"
alias -quickspy "bind q lastinv; bind a +moveleft; bind s +back; bind d +moveright; bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3"

alias +quickspy2 "bind q spy_a9; bind a spy_a3; bind s spy_a8; bind d spy_a4; bind f spy_a6; bind z spy_a1; bind x spy_a7; bind c spy_a2; bind v spy_a5"
alias -quickspy2 "bind q lastinv; bind a +moveleft; bind s +back; bind d +moveright; bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3"

bind SHIFT +quickspy
bind CAPSLOCK +quickspy2

//bind mouse3 lastdisguise //optional

Modification for Vkey

If you have the V key bound to voice chat, then replace the section with the following. I figured this out after the spy script kept messing up the V key. Turns out the script wasn't unbinding the v key when CAPS or SHIFT aren't being held down, which makes for some confusion in game play if you are pressing V and instead of chat, you're disguising! Modification by Osquid (Cotton Headed Ninnymuggins)

alias +quickspy "bind q spy_e9; bind a spy_e3; bind s spy_e8; bind d spy_e4; bind f spy_e6; bind z spy_e1; bind x spy_7; bind c spy_e2; bind v spy_e5"
alias -quickspy "bind q lastinv; bind a +moveleft; bind s +back; bind d +moveright; bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3; bind v +voicerecord"

alias +quickspy2 "bind q spy_a9; bind a spy_a3; bind s spy_a8; bind d spy_a4; bind f spy_a6; bind z spy_a1; bind x spy_a7; bind c spy_a2; bind v spy_a5"
alias -quickspy2 "bind q lastinv; bind a +moveleft; bind s +back; bind d +moveright; bind z voice_menu_1; bind x voice_menu_2; bind c voice_menu_3; bind v +voicerecord"

Spy Script Packs

Useful Scripts For The Spy

Pack of Spy scripts.
Posted by Searz

Here´s what it does:

End switches between Disguise-set1 and 2 (default 1)

Disguise-set 1:
Q = switch between the revolver and the knife
L = drop intel, cloak and disguise (for when emergencys occur)
1 = soldier diguise
2 = switch to the revolver
3 = switch to the knife
4 = heavy disguise
mouse2 = cloak then lastdisguise. To only redisguise just attack with your knife and press mouse2 right after that (that´s more usefull than the auto-redisguise according to me)
mouse4 = sniper disguise
mouse5/F = auto sap
numpad 1-9 = disguise as the corresponding class
Delete = change team colour of your disguises
numpad + = turn on/off random auto-disguise after fireing (default: off)
mousewheel = scroll through the disguises: engineer, demoman and pyro
(you start with engineer)

Disguise-set 2:
Same as set one except for:
1 = heavy disguise
mouse4 = soldierdisguise
mousewheel = scroll through the disguises: engineer, demoman, pyro and sniper
(Basicly set 2 includes the sniper in the mousewheel disguise) ____________________________________________________________________________________________________________________

To change the keybinds write your own keys under the "//Keybinds" row. Important note: I´ve bound auto sap and sniper disguise to mouse5-4, if you dont have these buttons on your mouse change the binding to something else (autosapping is also bound to f). ____________________________________________________________________________________________________________________

I have created all scipts in this except for the "dropintel and cloak"(vanish by Sturmeh).

I´ve tried to make this as bug free as possible and i think I´ve succeded. The only two bugs i know of at the moment is that after you die you sometimes have to press q two times to change weapon and if you die with the autosap on you keep attacking when respawned (just press q, 2 or 3 to fix it again). If anyone knows how to make a script that resets upon death I´d really appreciate it if you´d contact me.
____________________________________________________________________________________________________________________

If you wish to make changes to my scripts or use any of them in another code or something please let me know (and credit me of course :P).

Put this code in spy.cfg

//Keybinds
bind mouse1 "+M1"
bind mouse2 "+M2"
bind mouse4 "M4"
bind mouse5 "sappin"
bind mwheelup "MU"
bind mwheeldown "MD"
bind 1 "N1"
bind 2 "N2"
bind 3 "N3"
bind 4 "N4"
bind q "LW"
bind f "sappin"

//Spy weapon interface redesign with integrated auto-sap by Searz
alias +sap "slot2; +attack; alias sappin -sap; alias +M1 +SS; alias -M1 -SS; lastdisguise"
alias -sap "-attack; lastinv; alias sappin +sap"
alias +SS "slot3; alias sappin "
alias -SS "-attack; alias sappin +sap; alias LW w1; alias +M1 +attack; alias -M1 -attack"
alias w1 "-attack; slot1; alias sappin +sap; alias LW w3; alias +M1 +attack; alias -M1 -attack"
alias w3 "-SS; slot3"

//Vanish by Sturmeh
bind l "+vanish"
alias +vanish "dropitem; +attack2"
alias -vanish "-attack2; wait 10; lastdisguise"

//Mousewheel\numpad\1 and 4keys quick-disguise(w/disguise-sets), auto re-disguise when cloaking and random disguise after fireing(toggleble) by Searz
alias +cloak "+attack2"
alias -cloak "-attack2; wait 10; lastdisguise"
alias +disgon "+attack"
alias -disgon "-attack; atckdisg"
alias autodisgon "alias +M1 +disgon; alias -M1 -disgon; bind KP_PLUS autodisgoff"
alias autodisgoff "alias +M1 +attack; alias -M1 -attack; bind KP_PLUS autodisgon"

alias SCR "disguise 1 2"
alias SR "disguise 2 2; alias MD PR; alias MU DR; alias atckdisg DR"
alias SNR "disguise 2 2"
alias SOR "disguise 3 2"
alias MR "disguise 5 2"
alias HR "disguise 6 2"
alias SPYR "disguise 8 2"

alias SCB "disguise 1 1"
alias SB "disguise 2 1; alias MD PB; alias MU DB; alias atckdisg DB"
alias SNB "disguise 2 1"
alias SOB "disguise 3 1"
alias MB "disguise 5 1"
alias HB "disguise 6 1"
alias SPYB "disguise 8 1"

alias Dset1 "alias blu set1blu; alias red set1red; alias PB set1PB; alias EB set1EB; alias DB set1DB; alias PR set1PR; alias ER set1ER; alias DR set1DR; blu; bind end Dset2"
alias Dset2 "alias blu set2blu; alias red set2red; alias PB set2PB; alias DB set2DB; alias PR set2PR; alias DR set2DR; blu; bind end Dset1"

alias set1PB "disguise 7 1; alias MD EB; alias MU DB; alias atckdisg DB"
alias set1EB "disguise 9 1; alias MD DB; alias MU PB; alias atckdisg PB"
alias set1DB "disguise 4 1; alias MD PB; alias MU EB; alias atckdisg EB"
alias set1PR "disguise 7 2; alias MD ER; alias MU DR; alias atckdisg DR"
alias set1ER "disguise 9 2; alias MD DR; alias MU PR; alias atckdisg PR"
alias set1DR "disguise 4 2; alias MD PR; alias MU ER; alias atckdisg ER"

alias set2PB "disguise 7 1; alias MD EB; alias MU SB; alias atckdisg SB"
alias set2DB "disguise 4 1; alias MD SB; alias MU EB; alias atckdisg EB"
alias set2PR "disguise 7 2; alias MD ER; alias MU SR; alias atckdisg SR"
alias set2DR "disguise 4 2; alias MD SR; alias MU ER; alias atckdisg ER"

alias set1blu "bind kp_end SCB; bind kp_downarrow SOB; alias N4 SOB; bind kp_pgdn PB; bind kp_leftarrow disgDB; bind kp_5 HB; alias N1 HB; bind kp_rightarrow disgEB; bind kp_home MB; bind kp_uparrow SNB; alias M4 SNB; bind kp_pgup SPYB; bind DEL red; EB"
alias set1red "bind kp_end SCR; bind kp_downarrow SOR; alias N4 SOR; bind kp_pgdn PR; bind kp_leftarrow disgDR; bind kp_5 HR; alias N1 HR; bind kp_rightarrow disgER; bind kp_home MR; bind kp_uparrow SNR; alias M4 SNR; bind kp_pgup SPYR; bind DEL blu; ER"
alias set2blu "bind kp_end SCB; bind kp_downarrow SOB; alias M4 SOB; bind kp_pgdn PB; bind kp_leftarrow disgDB; bind kp_5 HB; alias N1 HB; alias N4 HB; bind kp_rightarrow disgEB; bind kp_home MB; bind kp_uparrow SB; bind kp_pgup SPYB; bind DEL red; EB"
alias set2red "bind kp_end SCR; bind kp_downarrow SOR; alias M4 SOR; bind kp_pgdn PR; bind kp_leftarrow disgDR; bind kp_5 HR; alias N1 HR; alias N4 HR; bind kp_rightarrow disgER; bind kp_home MR; bind kp_uparrow SR; bind kp_pgup SPYR; bind DEL blu; ER"

//Some important stuff..
bind KP_PLUS autodisgon
alias +M2 +cloak
alias -M2 -cloak
alias N2 w1
alias N3 w3
Dset1
w1

To change the other classes´ binds back to normal, add this to their respective cfgs

//Re-binds
bind mouse1 "+attack"
bind mouse2 "+attack2"
unbind mouse4
unbind mouse5
bind 1 "slot1"
bind 2 "slot2"
bind 3 "slot3"
bind 4 "slot4"
bind q "lastinv"
bind mwheelup "invnext"
bind mwheeldown "invprev"


Toggle Sturmweh's Vanish Script

If you use the Death-Ringer, it may be very annoying when switchung the ringer while carrying the intelligence. In normal gameplay with the Death-Ringer, it always executes lastdisguise when switching the ringer, causing your Disguise to switch weapons which you may not want.

The following Script extends Sturmweh's Vanish with a simple toggle to enable/disable it.

//Vanish with drop-item + auto-disguise
bind MOUSE2 "+vanishing"
alias +vanishing +vanish
alias -vanishing -vanish
alias +vanish "dropitem; +attack2"
alias -vanish "-attack2; wait 10; lastdisguise"
//enable/disable vanish, e.g. for better deathringer use
bind ENTER togglevanish
alias togglevanish togglevanish0
alias togglevanish0 "alias +vanishing +attack2; alias -vanishing -attack2; alias togglevanish togglevanish1"
alias togglevanish1 "alias +vanishing +vanish;  alias -vanishing -vanish;  alias togglevanish togglevanish0"

Total Weapon Interface Redesign

This is a total redesign of the weapons interface.
Features:
1: Mouse2 pulls sapper and then re-binds to fire it
2: Mouse1 pulls knife if on sapper and re-binds to fire it
3: 'Q' Swaps the current Mouse1 weapon between knife and revolver
  • Note: Mouse3 is the new cloak button...DO NOT FORGET THIS
This script could use some more management modifications as it's still not as clean as I would like it to be and I think some of it could be scripted a little cleaner/better. However the interface itself works and I am of the impression that this is the single most efficient way to play the spy class. It saves both time and effort when playing and is a very natural weapons interface. When playing it some normal spy actions such as sap and stab are a lot easier, rclick,rclick,lclick,lclick is a fast easy way to sap/stab.
  • Note: I also am making use of an outside .cfg to clear key input it is defined below
Posted by Mordentral
// clear.cfg
// for remapping binds and cleaning things up
// you can exec autoexec as well but I like to keep things simple
bind "MOUSE5" ""
bind "MOUSE3" ""
bind "MOUSE1" "+attack"
bind "MOUSE2" "+attack2"
bind "q" "lastinv"
// Spy.cfg remap -> Provided by Mordentral / M72 The LAW-BOOM BOOM

// Remap defaults
exec clear.cfg // Clear my configs and reset for the class

alias +destsent "slot2; +attack; alias +stab +backstab1; alias -stab -backstab1; alias +sap +destsent2; alias -sap -destsent2"
alias -destsent "-attack;"
alias +destsent2 "+attack;"
alias -destsent2 "-attack;"

alias "+sap" "+destsent"
alias "-sap" "-destsent"
bind "MOUSE2" "+sap"

bind "MOUSE3" "+attack2"

alias +backstab1 "slot3; +attack; alias +sht1 +shoot; alias -sht1 -shoot; alias +stab +backstab; alias -stab -backstab; alias +sap +destsent; alias -sap -destsent"
alias -backstab1 "-attack;"
alias +backstab "+attack"
alias -backstab "-attack; lastdisguise"

alias "+stab" "+backstab1"
alias "-stab" "-backstab1"
bind "MOUSE1" "+stab"


alias +shoot "slot1; +attack; alias +stab +attack; alias -stab -attack; alias +sht1 +backstab1; alias -sht1 -backstab1; alias +sap +destsent; alias -sap -destsent"
alias -shoot "-attack;"
alias +shoot1 "+attack"
alias -shoot1 "-attack"

alias "+sht1" "+shoot"
alias "-sht1" "-shoot"

bind "q" "+sht1;"
Posted by mordentral


5 Mouse Button Allspy Script

This is a rather unorganized script designed for 5 button mice. This script contains an autodisguise after attack, a quick sapper, a knife/revolver switcher and full mouse disguise functionality and a fake disguise weapon switcher and reloader. Q will always swap between knife and revolver. Mouse4 will select your knife. 1 will select your revolver. Mouse5 will pull out your sapper and continuously attack until you stop pressing mouse5. 2 and mouse3 will cause your disguise to change weapons or reload. To disguise: While holding shift press: q to change team color, mouse1 for Demoman, mouse2 for Engineer, mouse3 for Spy, mouse4 for Sniper, mouse5 for Pyro, 1 for medic, 2 for scout, 3 for soldier or 4 for heavy. Auto reload is normally deactivated to prevent the ambassador concealing the crosshair.

Replace "bind mouse1 "+attack"" with "bind mouse1 "+allattack"" to activate auto disguise.

Posted by virus. based on scripts posted by others on this page.

alias unloadcfg "echo "*** SPY CONFIG LOADED ***";exec clear.cfg;-reload"

unloadcfg

alias "crossstuff" "small;yellow;plus_dot"
crossstuff

//Attack, diguise and reload
alias +allattack  "+attack"
alias -allattack  "-attack"

//Sap
alias "+sapper"   "slot2;+attack"
alias "-sapper"   "-attack;knife"

//Knife - change sensitivity to suit yourself
alias "knife"     "slot3;sensitivity 2.7;bind q "revolver""

//Revolver
alias "revolver"  "slot1;lastdisguise;sensitivity 1.0;bind q "knife"; -reload"

alias "+crouchcolor" "teal;+duck"
alias "-crouchcolor" "yellow;-duck"

//Cloaker
alias claoker "+attack2;lastdisguise"


//Spy quick disguise with key combinations
//By CupOfTea
//v2.0
//
alias "e1" "disguise 1 -1"
alias "e2" "disguise 3 -1"
alias "e3" "disguise 7 -1"
alias "e4" "disguise 4 -1"
alias "e5" "disguise 6 -1"
alias "e6" "disguise 9 -1"
alias "e7" "disguise 5 -1"
alias "e8" "disguise 2 -1"
alias "e9" "disguise 8 -1"
alias "a1" "disguise 1 -2"
alias "a2" "disguise 3 -2"
alias "a3" "disguise 7 -2"
alias "a4" "disguise 4 -2"
alias "a5" "disguise 6 -2"
alias "a6" "disguise 9 -2"
alias "a7" "disguise 5 -2"
alias "a8" "disguise 2 -2"
alias "a9" "disguise 8 -2"
alias "disscout" "e1"
alias "dissoldier" "e2"
alias "dispyro" "e3"
alias "disdemoman" "e4"
alias "disheavy" "e5"
alias "disengineer" "e6"
alias "dismedic" "e7"
alias "dissniper" "e8"
alias "disspy" "e9"
alias "undisg" "a9"
alias "discolor" "disallied"
alias "disallied" "alias disscout a1; alias dissoldier a2; alias dispyro a3; alias disdemoman a4; alias disheavy a5; alias disengineer a6; alias dismedic a7; alias dissniper a8; alias disspy a9; alias undisg a9; alias discolor disenemy; developer 1; echo You Will Now Disguise As An Ally; wait 300; developer 0"
alias "disenemy"  "alias disscout e1; alias dissoldier e2; alias dispyro e3; alias disdemoman e4; alias disheavy e5; alias disengineer e6; alias dismedic e7; alias dissniper e8; alias disspy e9; alias discolor disallied; developer 1; echo You Will Now Disguise As An Enemy; wait 300; developer 0"
alias "+disguise" "bind q discolor;bind mouse1 disdemoman;bind mouse2 disengineer;bind mouse3 disspy;bind mouse4 dissniper;bind mouse5 dispyro;bind 1 disscout;bind 2 dismedic;bind 3 dissoldier;bind 4 disheavy"
alias "-disguise" "bind q revolver;bind mouse1 +allattack;bind mouse2 +attack2;unbind mouse3;bind mouse4 knife;bind mouse5 +sapper;bind 1 revolver;unbind 2;unbind 3;unbind 4"

//Weapon Switcher

alias +fakeprimary    "slot1;wait 10; lastdisguise;wait 10;+reload"
alias -fakeprimary    "-reload;knife;alias swapper +fakesecondary"

alias +fakemelee      "slot3; wait 10; lastdisguise"
alias -fakemelee      "knife;alias swapper +fakeprimary"

alias +fakesecondary  "slot2;wait 10; lastdisguise;wait 10;+reload"
alias -fakesecondary  "-reload;knife;alias swapper +fakemelee"

alias fakemed         "voicemenu 1 7"

//binds
bind mouse1      "+attack"
bind mouse2      "+attack2"
bind mouse3      "swapper"
bind mouse4      "knife"
bind mouse5      "+sapper"
bind mwheelup    "swapper"
bind mwheeldown  "swapper"
bind shift       "+disguise"
bind 1           "revolver"
bind b           "lastdisguise"
bind mouse3      "+fakeprimary"
bind c           "fakemed"
bind alt         "undisg"

knife;-reload


Personal tools