r/Tf2Scripts • u/Xurkitree1 • Feb 14 '21
Request Vaccinator Quick-switch resistance script.
Hi! I've been wanting a Vaccinator quick-switch script lately, however, I cannot use the ones online due to the fact that I play on a laptop with a trackpad. I cannot use scroll to switch weapons, and rely on the num row. Furthermore I've also rebound several keys around my left hand such as E to M1.
I was wondering if someone could make a script that would allow me to quickswitch between resists using a combination of keys such as Shift+1 being Bullet, Shift+2 being Explosive and Shift+3 being Fire, similar to my Eureka Effect teleport bind.
Thanks in advance!
2
u/stratacat Feb 14 '21
Just get a mouse and hook it up to your laptop, you can get a cheap one for 5$
1
u/bythepowerofscience Feb 25 '21 edited Feb 25 '21
I made this ages ago, and I'm actually really proud of this one.
UPDATE: Script has been revised and tested fully. It works now.
Only caveat is that whenever you die, your resistance automatically switches back to bullet, but the game doesn't know that. To fix that, you can tell the game "I'm on bullet right now" by pressing Alt+1. Same goes for if you try to switch resistances too fast and you realize it hasn't caught up, you can use Alt+1-3 to assert that you're currently on bullet, explosive, or fire respectively.
And here's a reset config to put in your other classes:
Let me know if you have any questions/comments/concerns, and I hope you enjoy!
2
u/pdatumoj Feb 15 '21
Hardware aside, this is (apparently) impossible, at present. There's no way to directly access a given resistance.
1
u/zombieking26 Feb 17 '21 edited Feb 17 '21
So, the vaccinator is by far my most used weapon, and probably makes up 1/3 of my time playing the game. I also have experience looking for this exact same thing.
Good news and bad news. The bad news is that the script you want is kind of impossible. There isn't a way to have the script know which resistance is which. I think there are some extremely janky solutions online, but I'm not sure I would recommend them.
Instead, I think there's another way to make the Vacc better. You can bind one key to reload, and another key to reload twice in a row. That way, you will always be one press away from any of the resistances. Would you like the script for it?
Also, I have created an even weirder script that I currently use: it completely skips fire. It goes from bullet, to explosive, back to bullet, with a separate key to reload once normally if I ever want to use fire. However, it's pretty janky, and messes up when you die, but it's another option if you want to try it. I really like it because of how much less useful fire resistance is.
Edit: both use the wait command. I actually don't know where said command is disabled, but it's not disabled in casual and uncle dane's servers which are the only places I play anyway.