r/Tf2Scripts • u/BonkDrinkerJr • Sep 10 '23
Script Another Bind Request by the Awesome coders
Hey I was wondering if anyone had some bind scripts for spy for when he changes his weapon while disguised his outer disguise weapon would also change with out having to click B all the time.
Anyone up for the coding challenge?
3
Upvotes
2
u/just_a_random_dood Sep 10 '23
relatively easy if you only use your number bar about the letters
bind 1 slot1; lastdisguisebind 2 slot2; lastdisguisebind 3 slot3; lastdisguisebind 4 slot4; lastdisguisebind 5 slot5; lastdisguiseI'm like 99% sure this is all you need
2
u/Link_x2 Sep 28 '23 edited Sep 28 '23
One way to get around needing a wait command is to have the second effect activate on the release of a key:
alias +equippingSlot1 "slot1"alias -equippingSlot1 "lastdisguise"bind 1 +equippingSlot1So your code would be:
alias +equippingSlot1 "slot1"alias -equippingSlot1 "lastdisguise"alias +equippingSlot2 "slot2"alias -equippingSlot2 "lastdisguise"alias +equippingSlot3 "slot3"alias -equippingSlot3 "lastdisguise"alias +equippingSlot4 "slot4"alias -equippingSlot4 "lastdisguise"alias +equippingSlot5 "slot5"alias -equippingSlot5 "lastdisguise"bind 1 +equippingSlot1bind 2 +equippingSlot2bind 3 +equippingSlot3bind 4 +equippingSlot4bind 5 +equippingSlot5The other way to get around a wait command is double tapping your key and toggling effects, but that is not preferred here.Let me know if that doesnt work or if you need anymore help, I have done more scripting on Spy than is humanly healthy
1
u/unhandybirch656 May 17 '24
apologies for necroposting but I have a script in my spy config that allows me to press and hold my last disguise key to make all my loadout slot binds (1, 2, 3) additionally execute lastdisguise on the new slot, essentially making ur slot keys also mimic the slots of the disguise. I wouldn't recommend having it switch every time because you'd have your disguise's melee weapon out every time u go for a backstab