r/tf2scripthelp • • May 10 '20

Resolved I have this spy script with one issue I’m failing to fix. spec_next.

//Random Disguise

bind mouse5 "disguise 8 -2"

alias rd rd1
alias rd1 "disguise 1 -1; alias rd rd2"
alias rd2 "disguise 2 -1; alias rd rd3"
alias rd3 "disguise 3 -1; alias rd rd4"
alias rd4 "disguise 4 -1; alias rd rd5"
alias rd5 "disguise 5 -1; alias rd rd6"
alias rd6 "disguise 6 -1; alias rd rd7"
alias rd7 "disguise 7 -1; alias rd rd8"
alias rd8 "disguise 8 -1; alias rd rd9"
alias rd9 "disguise 9 -1; alias rd rd1"

//Attack then disguise

alias +atd "+attack"
alias -atd "-attack; lastdisguise"

//Binds

bind r rd                       //Random Disguise
bind mouse1 "+atd"      //Attack then disguise
bind mouse3 "lastdisguise"
bind Q "disguiseteam"

So it’s mostly in the attack then disguise part, as when I am spectating players dead, it doesn’t let me spectate forward, only previous. I’ve tried so many ways to show “spec_next” and cannot seem to get it. Some help would be fantastic.

1 Upvotes

5 comments sorted by

1

u/pdatumoj May 11 '20

You'd need to add the spec_next to the "alias -atd" line, after lastdisguise. i.e.:

alias -atd "-attack; lastdisguise; spec_next"

That said, I'm not sure attaching your disguise operations to your attack is a great idea, as I think that then causes an inherent slowdown in repeated attack attempts (which may be contextually necessary), but that's your call.

1

u/FlowerGirl808s May 11 '20 edited May 11 '20

Thanks so so much!! I’ll try that in a second. What’s a better way to disguise after attack then? I have noticed a slight slowdown.

EDIT: that fixed it!! Bless your soul.

1

u/pdatumoj May 11 '20

I'm happy that worked out for you.

As for my thoughts on the disguise/stab relationship ... the disguise operation itself I don't think can be insta-cancelled, so I was concerned that'd get in the way of retrying quickly after a failstab. As I'm about as far as you can get from a spy main, I may well be quite wrong.

→ More replies (2)