r/Tf2Scripts • u/Kairu927 • Oct 22 '13
Script [Complete] Vaccinator No-Wait Specific Toggle
https://gist.github.com/kbrougham/7090528
This is as 'good' as I can get it. You can't advance twice in one frame without a wait command (disabled on sv_pure), so you need different key presses to get it to work. The best I could do is make it so you can spam a key to rotate to it and stop on it.
Replace your keys as desired, more info in comments within the file.
Basically: to get to your desired specific resist, you just spam the key to get you there. Not so elegant, but it gets around the wait command issue, which is disabled in competitive.
5
Upvotes
3
u/TimePath Oct 22 '13
You're correct that it could be a bit more elegant, but it's still a really innovative waitless alternative.
3
u/Kered13 Oct 25 '13
I made a script like this awhile ago that tied into movement keys (or whatever other keys you wanted) to get the second advance. However, it was buggy and prone to race conditions (weird things can happen when two aliases execute in the same frame) that would get reality out of sync with what the script "thought" you had. I eventually gave up trying to use it.
It looks like you have just gone with requiring a double tap for a complete switch. This avoids the more complicated problems, but requires more effort when you're playing. How has it worked playing in game?