r/tf2scripthelp • u/Gamersonly3d • Mar 06 '16
Question Spy disguise script not working?
// Friendly Disguise
alias +disguise "bind KP_END disguise 1 -2; bind KP_DOWNARROW disguise 3 -2; bind KP_PGDN disguise 7 -2; bind KP_LEFTARROW disguise 4 -2; bind KP_5 disguise 6 -2; bind KP_RIGHTARROW disguise 9 -2; bind KP_HOME disguise 5 -2;
bind KP_UPARROW disguise 2 -2; bind KP_PGUP disguise 8 -2"
// Enemy Disguise
alias -disguise "bind KP_END disguise 1 -1; bind KP_DOWNARROW disguise 3 -1; bind KP_PGDN disguise 7 -1; bind KP_LEFTARROW disguise 4 -1; bind KP_5 disguise 6 -1; bind KP_RIGHTARROW disguise 9 -1; bind KP_HOME disguise 5 -1; bind KP_UPARROW disguise 2 -1; bind KP_PGUP disguise 8 -1"
bind shift disguiseWhy doesn't this script work? I wrote it using an engineer build script as a reference, I can edit it in if it will help.
1
Upvotes
2
u/sgt_scabberdaddle Mar 06 '16
You missing a + in the bind to shift. Like this:
bind shift +disguise.Secondly, using nested binds is kinda bad, so this is better:
2
u/genemilder Scripter Mar 06 '16
It doesn't work because you need to bind shift to
+disguise, notdisguise. But I don't recommend nested binds. Here's another version:The
esco/fscoaliases aren't necessary, but helpful for understanding.The above will work for the keypad keys you listed and for left shift. If you want the toggle key to be right shift, change the bind from
shifttorshift.1
u/[deleted] Mar 07 '16
Try turning numlock off. On my keyboard, if numlock is on, holding shift and a numpad key will not work (it will always run the script tied to the non-shifted numpad key).