Spy scripts

From TF2 Wiki

Jump to: navigation, search
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
===Sapper Script===
alias +sapper "slot2; +attack"
alias -sapper "-attack; wait 25; slot3"
bind "mouse3" "+sapper"


Auto Sapper Improved version

This is improved version made by ArmageddonSnipe , pressing MOUSE3 will push out the sapper and sap every building you can materially reach.Pull MOUSE3 will switch to your previous weapon.


==Sapper script V2==
alias "+sapper" "build 4;wait 100;+attack"
alias "-sapper" "-attack;lastinv"
bind "MOUSE3" "+sapper";
//made by ArmageddonSnipe

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.


Sapping while walking

Posted by Armageddon 18:17, 23 August 2008 (UTC)

This script was entirelly made by me , basically, you press one key to active the sapping mode, and again to disable it. Do not forget to disable it by clicking again MOUSE3 (or whatever your key is) , not by firing or switching weapons with the scroll, 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 AGAIN mouse3 to activate it... . So do not forget to click MOUSE3 to de-activate it.

Important Edit: Sometimes, if you have the revolver equip before activate the script, it may fire one pistol bullet BUT YOU WILL NOT LOSE YOUR DISGUISE (kinda glitch no?) i'll search a way to make a script to fire and fire without losing disguise ...

==Sapping Walking Script==
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 made by ArmageddonSnipe

Sapping while walking (Improved)

Basically, I took the above script and improved it. 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. I have tested it extensively, and even when switching very rapidly, I never had it accidently attack.

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"
// Original by ArmageddonSnipe. Edited by Pauan.

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

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"

Spy Attack and Last Disguise

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"


Spy Quick Disguise

Use the numberpad to select the class you which do disguise to, or scroll through the classes with the mouse wheel (or any other two keys you wish). Toggle the team color with a separate button.
Posted by Essobie
// Spy Quick Disguise
// ==================
alias spy_cycle_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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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 "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"

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 with PLAY Command Intergration

Same as above 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
// ==================
alias spy_cycle_r2 "play_2; 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_3; 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_4; 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_5; 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_6; 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_7; 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_8; 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_2; 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_3; 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_4; 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_5; 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_6; 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_7; 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_8; 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_2 "play cfg/soldier.wav"
alias play_3 "play cfg/pyro.wav"
alias play_4 "play cfg/demo.wav"
alias play_5 "play cfg/hwguy.wav"
alias play_6 "play cfg/engineer.wav"
alias play_7 "play cfg/medic.wav"
alias play_8 "play cfg/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 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 with F Keys

Apologies to the origional creator whose name I cannot find or remember at the moment, so if someone would like to add that information please do. This is an entire script that I have modified to use the top function keys. F10 swaps colors and the F1-9 keys I have ordered for the most useful class to disguise as, to the least. Modify for your own taste of course.
Posted by Shifty54
There is some discussion about this script.
//Red Aliases
alias redscout "disguise 1 2"
alias redsniper "disguise 2 2"
alias redsoldier "disguise 3 2"
alias reddemoman "disguise 4 2"
alias redmedic "disguise 5 2"
alias redhwguy "disguise 6 2"
alias redpyro "disguise 7 2"
alias redspy "disguise 8 2"
alias redengineer "disguise 9 2"

//Blue Aliases
alias bluescout "disguise 1 1"
alias bluesniper "disguise 2 1"
alias bluesoldier "disguise 3 1"
alias bluedemoman "disguise 4 1"
alias bluemedic "disguise 5 1"
alias bluehwguy "disguise 6 1"
alias bluepyro "disguise 7 1"
alias bluespy "disguise 8 1"
alias blueengineer "disguise 9 1"


//F1-F9 to disguise - 1=Sniper 2=Soldier 3=Pyro 4=Demoman 5=Engineer 6=Heavy 7=Spy 8=Medic 9=Scout

alias BLUETEAM "bind f1 redsniper; bind f2 redsoldier; bind f3 redpyro; bind f4 reddemoman; bind f5 redengineer; bind f6 redhwguy; bind f7 redspy; bind f8 redmedic; bind f9 redscout"
alias REDTEAM "bind f1 bluesniper; bind f2 bluesoldier; bind f3 bluepyro; bind f4 bluedemoman; bind f5 blueengineer; bind f6 bluehwguy; bind f7 bluespy; bind f8 bluemedic; bind f9 bluescout"

//F10 Toggles Colors
alias toggletored "alias changecolor setred"
alias toggletoblue "alias changecolor setblue"

//Changes the script to go from blue to red.
alias setred "REDTEAM; toggletoblue"
alias setblue "BLUETEAM; toggletored"

//Primary team is Red
alias changecolor "setred"
Bind "F10" "changecolor"

Spy Quick Disguise with F Keys (Class Order)

The above script altered to fit with the order of the TF2 Classes.
Posted by K E Z
//Red Aliases
alias redscout "disguise 1 2"
alias redsniper "disguise 2 2"
alias redsoldier "disguise 3 2"
alias reddemoman "disguise 4 2"
alias redmedic "disguise 5 2"
alias redhwguy "disguise 6 2"
alias redpyro "disguise 7 2"
alias redspy "disguise 8 2"
alias redengineer "disguise 9 2"

//Blue Aliases
alias bluescout "disguise 1 1"
alias bluesniper "disguise 2 1"
alias bluesoldier "disguise 3 1"
alias bluedemoman "disguise 4 1"
alias bluemedic "disguise 5 1"
alias bluehwguy "disguise 6 1"
alias bluepyro "disguise 7 1"
alias bluespy "disguise 8 1"
alias blueengineer "disguise 9 1"


//F1-F9 to disguise - 1=Scout 2=Soldier 3=Pyro 4=Demoman 5=Heavy 6=Engineer 7=Medic 8=Sniper 9=Spy

alias BLUETEAM "bind f1 redscout; bind f2 redsoldier; bind f3 redpyro; bind f4 reddemoman; bind f5 redhwguy; bind f6 redengineer; bind f7 redmedic; bind f8 redsniper; bind f9 redspy"
alias REDTEAM "bind f1 bluescout; bind f2 bluesoldier; bind f3 bluepyro; bind f4 bluedemoman; bind f5 bluehwguy; bind f6 blueengineer; bind f7 bluemedic; bind f8 bluesniper; bind f9 bluespy"

//F10 Toggles Colors
alias toggletored "alias changecolor setred"
alias toggletoblue "alias changecolor setblue"

//Changes the script to go from blue to red.
alias setred "REDTEAM; toggletoblue"
alias setblue "BLUETEAM; toggletored"

//Primary team is Red
alias changecolor "setred"
Bind "F10" "changecolor"

Class reloader (Spy)

Add "; +kill; -kill" to the end of of the alias to autodisguise if you have your attack bind set with "; lastdisguise". Mainly used to refill cloak once inside the spawn room but may also be used for saving you when you cannot reach the supply closet and you are on fire.
Posted by --NiteCyper 22:35, 17 August 2008 (UTC)
//Class reloader (Spy)
alias "classre" "join_class medic; join_class spy; use tf_weapon_knife; wait 90; lastdisguise"
bind "mouse3" "classre"

Fast Backstab

This script eliminates the slow backstab animation and uses the normal stab animation to perform backstab by looking away from the enemy, initiating the stab animation and looking back, landing the stab.
Posted by CannibalBob
===Fast Backstab Script===
autoexec.cfg:
alias resetcmd "bind mouse1 +attack;bind 1 slot1;bind 2 slot2;bind 3 slot3"
alias faststab "lookstrafe 1;cl_yawspeed 1000;+right;wait 13;-right;+attack;+left;wait 13;-left;-attack;cl_yawspeed 210;lookstrafe 0"

spy.cfg:
resetcmd
alias disablestab "bind mouse1 +attack"
alias enablestab "bind mouse1 faststab"
bind 1 "slot1;disablestab"
bind 2 "slot2;disablestab"
bind 3 "slot3;enablestab"

all other classes.cfg:
resetcmd

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 alot 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
// 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
==Spy glich scripte==
ok this scripte is simple but working out the times for the glich to work hard!! and you are woundering what glich im talking about well its the glich that allows to attack and stay disguse for this scripte to work you need timing and you need to wait after doing this script to attack agian i do have another verson that has no cool down period but dont know what it looks like as on the screen it flickers from spy to disguse back and forth about 6 times for every lastdisguse command but most of the time looks like disguise great thing about this that sentrys dont notise you but enemys might but by the time work it out agmounst the confusion you have exscape

////this is not the exsact scripte since i cant get on the computer that has the file you have to wait in the mean while i hope that its correct but if not dont worry ill get correct times soon and edit it and this will be gone and yes the scripte is ment to be moor complex but cant rember all of the scripte\\\\

\\\\scripte spy glich////
lastdisguise; wait 590;lastdisguise;wait 3; +attack; lastdisguise; wait 10; -attack
Posted by THE FORGOTEN

Combination Engineer and Spy Script

As Spy: pressing 1-9 dsguises as blue team class of that number, holding shift and pressing 1-9 disguises as red team.
As Engineer: 1-4 brings up buildmode, holding shift and pressing 1-4 destroys that building.
Now improved. (Figured out how to do it without binding keys in aliases.
Written by Mechlord
Last modification: 20080920
bind "1" "01"
bind "2" "02"
bind "3" "03"
bind "4" "04"
bind "5" "05"
bind "6" "06"
bind "7" "07"
bind "8" "08"
bind "9" "09"

alias 01 "11"
alias 02 "12"
alias 03 "13"
alias 04 "14"
alias 05 "15"
alias 06 "16"
alias 07 "17"
alias 08 "18"
alias 09 "19"

alias 11 "build 3; disguise 1 1"
alias 12 "build 0; disguise 3 1"
alias 13 "build 1; disguise 7 1"
alias 14 "build 2; disguise 4 1"
alias 15 "disguise 6 1"
alias 16 "disguise 9 1"
alias 17 "disguise 5 1"
alias 18 "disguise 2 1"
alias 19 "disguise 8 1"

alias 21 "destroy 3; disguise 1 2"
alias 22 "destroy 0; disguise 3 2"
alias 23 "destroy 1; disguise 7 2"
alias 24 "destroy 2; disguise 4 2"
alias 25 "disguise 6 2"
alias 26 "disguise 9 2"
alias 27 "disguise 5 2"
alias 28 "disguise 2 2"
alias 29 "disguise 8 2"


alias +function "alias 01 21; alias 02 22; alias 03 23; alias 04 24; alias 05 25; alias 06 26; alias 07 27; alias 08 28; alias 09 29"
alias -function "alias 01 11; alias 02 12; alias 03 13; alias 04 14; alias 05 15; alias 06 16; alias 07 17; alias 08 18; alias 09 19"

bind "shift" "+function"

Combination Engineer and Spy Script

When "f" is pressed, it takes out the knife, stabs, and saps continuously until "f" is pressed again.
If you don't want "f" to toggle this you can change it to any key you want
Written by Paul
///////////////////
//  Stab 'n Sap  //
// By The Luaper //
///////////////////

alias "toggle" "stabOn"

alias "stabOn" "slot3; wait 25; +attack; wait 50; -attack; slot2; alias "toggle" "stabOff"; +sapper"
alias "stabOff" "alias "toggle" "stabOn"; -sapper"

alias +sapper "+attack"
alias -sapper "-attack; slot3"

bind "f" "toggle"

Personal tools