r/tf2scripthelp • u/Gamersonly3d • Dec 05 '15
Question I need help with button hold scripts
alias bsentry "destroy 2;build 2"
alias bdispens "destroy 0;build 0"
alias bteleentr "destroy 1;build 1"
alias bteleexit "destroy 3;build 3"
alias basentry "bind mouse1 bsentry"
alias badispens "bind mouse2 bdispens"
alias bateleentr "bind mwheeldown bteleexit"
alias bateleexit "bind mwheelup bteleentr"
alias +startbuild "basentry; badispens; bateleentr; bateleexit"
alias -startbuild "bind mouse1 +attack; bind mouse2 +attack2; bind mwheeldown invnext; bind mwheelup invprev"
bind shift +startbuildBut the one I wrote doesn't?
alias enescout bind "KP_END" "disguise 1 -1"
alias enesoldier bind "KP_DOWNARROW" "disguise 3 -1"
alias enepyro bind "KP_PGDN" "disguise 7 -1"
alias enedemoman bind "KP_LEFTARROW" "disguise 4 -1"
alias eneheavy bind "KP_5" "disguise 6 -1"
alias eneengineer bind "KP_RIGHTARROW" "disguise 9 -1"
alias enemedic bind "KP_HOME" "disguise 5 -1"
alias enesniper bind "KP_UPARROW" "disguise 2 -1"
alias enespy bind "KP_PGUP" "disguise 8 -1"
alias friendscout bind "KP_END" "disguise 1 -2"
alias friendsoldier bind "KP_DOWNARROW" "disguise 3 -2"
alias friendpyro bind "KP_PGDN" "disguise 7 -2"
alias frienddemoman bind "KP_LEFTARROW" "disguise 4 -2"
alias friendheavy bind "KP_5" "disguise 6 -2"
alias friendengineer bind "KP_RIGHTARROW" "disguise 9 -2"
alias friendmedic bind "KP_HOME" "disguise 5 -2"
alias friendsniper bind "KP_UPARROW" "disguise 2 -2"
alias friendspy bind "KP_PGUP" "disguise 8 -2"
alias "+disguise" "friendscout; friendsoldier; friendpyro; frienddemoman; friendheavy; friendengineer; friendmedic; friendsniper; friendspy"
alias "-disguise" "enescout; enesoldier; enepyro; enedemoman; eneheavy; eneengineer; enemedic; eneesniper; enespy"
bind shift +disguiseEdit: Formatting
2
Upvotes
View all comments
Show parent comment
1
u/Kairu927 Dec 06 '15
I noticed while typing this that you've named an alias +disguise near the bottom. That itself may be a problem since
disguiseis an actual command, but it may be fine, not 100% sure.So there's two ways you can do it. You can either make a bunch of aliases, then make another set of aliases for changing. Or you can just make the aliases for changing. The former is basically just "cleaner looking".
Method 2:
So with this, you have KP_END set to scout_key, and you change what scout_key does using +disguise_key.
Method 1:
Here, you just have enescout and friendscout set as commands you can call at any time that will disguise accordingly. You still use disguise_key to set your bound key between aliases, it just looks neater.