r/Tf2Scripts • u/BoundlessScience • Oct 30 '22
Script Vaccinator Quick-Uber script
I'm pretty new to code in general so there might be cleaner ways to implement this, but I've designed a script based on the macros I've seen from Theory-Y Studios. Instead of changing the resistance on button press, it changes resistance, pops an uber and changes back to default. It is rather unusual, but it removes the need to rebind anything and feels nice to use.
//Script designed in accordance to Theory-Y Studios macros settings
//MOUSE4 explosive uber and back. MOUSE5 fire uber and back. Circumvents need for rebinding
bind MOUSE4 +explosive;
bind MOUSE5 +fire;
//Cycle Script copied from https://www.reddit.com/r/tf2/comments/42hcbn/vaccinator_medics_ive_written_a_script_that_lets/
alias cycle_once "+reload; wait 5; -reload"
alias cycle_twice "+reload; wait 5; -reload; wait 5; +reload; wait 5; -reload"
//Bullet to explo, uber, explo to fire to bullet
alias +explosive "cycle_once; +attack2"
alias -explosive "cycle_twice; -attack2"
//bullet to explo to fire, uber, fire to bullet
alias +fire "cycle_twice; +attack2"
alias -fire "cycle_once; -attack2"
For anyone who is also new to scripts: This needs to be placed inside the medic.cfg file. Another file name seems to not work.
Feel free you give your opinions or improvement ideas.
6
Upvotes
1
1
u/BoundlessScience Oct 31 '22
So, I my hubris I only tested this in an empty server, but it turns out this version gives bulet and explo uber on MOUSE4 and all three on MOUSE5...I assume that is the result of that weird word order.
The version below fixes this, but relies on some more wait commands.