Spy disguises on your numpad/keypad script.

Haggus McGee

Forum Fiend
Joined
Apr 12, 2008
Messages
652
Ok, I've made instructions of how to configure your keypad to give one button disguising. It may sound tough, but as long as you know how to open the console, alt-tab, copy AND paste, you should be fine. It's all explained. Feel free to save it to a notepad doc. so you can alt-tab easier. Here it is:

-=?Instant Selection of Disguises on Keypad?=-

The Spy is sometimes fiddly changing your disguise. By scripting the commands on the numpad, it is possible to choose from 18 disguises at the touch of a button on your keypad/numpad without even having to change weapon. The disguises are arranged just like the class selection screen: 1=Scout, 2=Soldier, 3=Pyro and so on untill 9=Spy. In order to toggle between which team you wish to disguise as, 0, is the button. This format alows you to be very versitile with your disguising, whether between class or team, as well as being extremly convenient. Hope I've helped with your spying.
Thanks,
Haggus McGee
_________________________

-=? Insructions ?=-

--Enter these commands into the spy cfg.

--Program Files > Steam > SteamApps > "your account name" > Team Fortress 2 > tf > cfg > open "spy" with notepad.

--Copy and paste this in and save it.
_________________________

alias blu_sct "disguise 1 1"
alias blu_sldr "disguise 3 1"
alias blu_pyro "disguise 7 1"
alias blu_dmomn "disguise 4 1"
alias blu_hwg "disguise 6 1"
alias blu_engnr "disguise 9 1"
alias blu_mdc "disguise 5 1"
alias blu_snpr "disguise 2 1"
alias blu_spy "disguise 8 1"

alias red_sct "disguise 1 2"
alias red_sldr "disguise 3 2"
alias red_pyro "disguise 7 2"
alias red_dmomn "disguise 4 2"
alias red_hwg "disguise 6 2"
alias red_engnr "disguise 9 2"
alias red_mdc "disguise 5 2"
alias red_snpr "disguise 2 2"
alias red_spy "disguise 8 2"

alias blu "bind kp_ins red; bind kp_end blu_sct; bind kp_downarrow blu_sldr; bind kp_pgdn blu_pyro; bind kp_leftarrow blu_dmomn; bind kp_5 blu_hwg; bind kp_rightarrow blu_engnr; bind kp_home blu_mdc; bind kp_uparrow blu_snpr; bind kp_pgup blu_spy"

alias red "bind kp_ins blu; bind kp_end red_sct; bind kp_downarrow red_sldr; bind kp_pgdn red_pyro; bind kp_leftarrow red_dmomn; bind kp_5 red_hwg; bind kp_rightarrow red_engnr; bind kp_home red_mdc; bind kp_uparrow red_snpr; bind kp_pgup red_spy"

blu
 
Last edited:
all i see is gibberish :O

Well, this is kinda confusing, but I understand. It is alot easier when you get used to being a spy. They say it's one of the hardest.

Btw Zergspower. I love the tag. :D
 
If you follow the instructions, all you have to do is copy and paste things in order and that's it. If step one is giving trouble, then copy and paste each individual line and not the whole paragraph, as that's just for speed.
 
OK, here's what you have to do:

1. Go to C:\Program Files\Steam\steamapps\<username>\team fortress 2\tf\cfg

2. Open spy.cfg with Notepad and paste the following:

Code:
alias blu_sct "disguise 1 1"
alias blu_sldr "disguise 3 1"
alias blu_pyro "disguise 7 1"
alias blu_dmomn "disguise 4 1"
alias blu_hwg "disguise 6 1"

alias blu_engnr "disguise 9 1"
alias blu_mdc "disguise 5 1"
alias blu_snpr "disguise 2 1"
alias blu_spy "disguise 8 1"

alias red_sct "disguise 1 2"
alias red_sldr "disguise 3 2"
alias red_pyro "disguise 7 2"
alias red_dmomn "disguise 4 2"
alias red_hwg "disguise 6 2"

alias red_engnr "disguise 9 2"
alias red_mdc "disguise 5 2"
alias red_snpr "disguise 2 2"
alias red_spy "disguise 8 2"

alias blu "bind kp_ins red; bind kp_end blu_sct; bind kp_downarrow blu_sldr; bind kp_pgdn blu_pyro; bind kp_leftarrow blu_dmomn; bind kp_5 blu_hwg; bind kp_rightarrow blu_engnr; bind kp_home blu_mdc; bind kp_uparrow blu_snpr; bind kp_pgup blu_spy"

alias red "bind kp_ins blu; bind kp_end red_sct; bind kp_downarrow red_sldr; bind kp_pgdn red_pyro; bind kp_leftarrow red_dmomn; bind kp_5 red_hwg; bind kp_rightarrow red_engnr; bind kp_home red_mdc; bind kp_uparrow red_snpr; bind kp_pgup red_spy"

blu

4. Save it and launch Team Fortress 2


The script will execute every time you select the Spy.
 
Last edited:
Sucks for people without a numpad. (Me.)

Could someone be really awesome for me and bind the END key to cycling disguises, and the Page Down key to changing the team for the cycling disguises? Whoever does that, I will love. Forever.
 
OK I've found out about the cfg so now you can do it than way in less time (and permanent results) no excuses of not being bothered or not able to.
 
Sucks for people without a numpad. (Me.)

Could someone be really awesome for me and bind the END key to cycling disguises, and the Page Down key to changing the team for the cycling disguises? Whoever does that, I will love. Forever.

I could but I don't think you'd like being cycled to heavy every 9th disguise. I'd use this but I'm too paranoid to use scripts like this because I'm always afraid they'll get in my way once in awhile. But anyway if you give me details of what you'd like I'd probably be able to cook something up suited more to you.
 
Sucks for people without a numpad. (Me.)

Could someone be really awesome for me and bind the END key to cycling disguises, and the Page Down key to changing the team for the cycling disguises? Whoever does that, I will love. Forever.

No prob bob.

Code:
alias blu_dis "blu_sct"
alias red_dis "red_sct"

alias blu_sct "alias blu_dis blu_sldr; disguise 1 1"
alias blu_sldr "alias blu_dis blu_pyro; disguise 3 1"
alias blu_pyro "alias blu_dis blu_dmomn; disguise 7 1"
alias blu_dmomn "alias blu_dis blu_hwg; disguise 4 1"
alias blu_hwg "alias blu_dis blu_engnr; disguise 6 1"

alias blu_engnr "alias blu_dis blu_mdc; disguise 9 1"
alias blu_mdc "alias blu_dis blu_snpr; disguise 5 1"
alias blu_snpr "alias blu_dis blu_spy; disguise 2 1"
alias blu_spy "alias blu_dis blu_sct; disguise 8 1"

alias red_sct "alias red_dis red_sldr; disguise 1 2"
alias red_sldr "alias red_dis red_pyro; disguise 3 2"
alias red_pyro "alias red_dis red_dmomn; disguise 7 2"
alias red_dmomn "alias red_dis red_hwg; disguise 4 2"
alias red_hwg "alias red_dis red_engnr; disguise 6 2"

alias red_engnr "alias red_dis red_mdc; disguise 9 2"
alias red_mdc "alias red_dis red_snpr; disguise 5 2"
alias red_snpr "alias red_dis red_spy; disguise 2 2"
alias red_spy "alias red_dis red_sct; disguise 8 2"

bind KEY1 "blu_dis"
bind KEY2 "red_dis"

Replace KEY1 and KEY2 with whatever you want to use for your key strokes.

Pressing KEY1 will disguise you as the current blue disguise and then cycle the script to the next disguise. Same for KEY2 and red.
 
<3 Lafinass.

Now if I were to take some of those disguises out, what would I have to do to alter it?

I'm thinking take out the slower classes and shuffle it up a bit. If it's just pyro, engineer, sniper, spy, someone's going to figure out that pattern.

There's got to be a way to /completely/ make it random.
 
<3 Lafinass.

Now if I were to take some of those disguises out, what would I have to do to alter it?

I'm thinking take out the slower classes and shuffle it up a bit. If it's just pyro, engineer, sniper, spy, someone's going to figure out that pattern.

There's got to be a way to /completely/ make it random.

The truely random way is to do it yourself, I don't think with this scripting you can do much randomizing but I've only played around with it instead of tried to learn every little detail. With quickswitch on though it isn't that hard to just hit 4 # in a small amount of time. I'm to the point where I don't even see the disguise kit flip out or the menu screen before I'm disguising.

Code:
alias blu_dis "blu_sct"
alias red_dis "red_sct"

alias blu_sct "alias blu_dis blu_pyro; disguise 1 1"
alias blu_pyro "alias blu_dis blu_dmomn; disguise 7 1"
alias blu_dmomn "alias blu_dis blu_engnr; disguise 4 1"

alias blu_engnr "alias blu_dis blu_mdc; disguise 9 1"
alias blu_mdc "alias blu_dis blu_snpr; disguise 5 1"
alias blu_snpr "alias blu_dis blu_spy; disguise 2 1"
alias blu_spy "alias blu_dis blu_sct; disguise 8 1"


alias red_sct "alias red_dis red_pyro; disguise 1 2"
alias red_pyro "alias red_dis red_dmomn; disguise 7 2"
alias red_dmomn "alias red_dis red_engnr; disguise 4 2"

alias red_engnr "alias red_dis red_mdc; disguise 9 2"
alias red_mdc "alias red_dis red_snpr; disguise 5 2"
alias red_snpr "alias red_dis red_spy; disguise 2 2"
alias red_spy "alias red_dis red_sct; disguise 8 2"

bind KEY1 "blu_dis"
bind KEY2 "red_dis"

I just took Lafinass's code and removed soldier and heavy since you hate speed reduction, demoman is still a speed cut but its only about 5%, medics still in there but he still has his uses if you're clever enough.

Though using this kind've just removes control of what disguise you want at that time when you use it. I'm just giving a fair warning that in the long run the right disguise in the right situation can allow you to trick certain people into following you. And the wrong one can be extremely obvious.
 
Last edited:
Eh, takes more skill to do it the MANLY way.. :)
I always frown upon scripts like these, takes away fun from the game.
 
Last edited:
What keys does this script assign the disguises to? Keypad?

edit: Yeah, nevermind, I reread the title of this thread XD
 
Last edited:
Eh. I can do it the normal way, of course. I thought scripts would be easier. But yeah, they're less fun. And more work. So. Might as well not. xd
 
Back
Top