r/Tf2Scripts • • May 01 '18
Request I need a script for Thermal Thruster
I tried making one on my own but it didn't fully work. The one I made was a rocket jump script I edited;
alias +jp "slot2; +jump; +duck; wait; wait; +attack; wait; wait; -attack; wait; +attack"
alias -jp "-attack; -duck; -jump; wait; slot1"
bind shift +jp
I'm trying to make it so when I press shift, I switch to thermal thruster, jump with it and then switch back to primary. But only the switching and sometimes jumping works for now, and it does not switch back to primary. Help is appreciated.
2
Upvotes
3
u/bythepowerofscience May 03 '18
I don't quite understand the purpose of the final
+attackin the+jpalias, but besides that the problem is just the timing. You forgot to account for the weapon switch time, but what you couldn't have known about was the +/- wait thing. (From what I've been able to figure out from experimenting, you need to wait at least 5 ticks between using any + and - of the same alias in the same line.)However, what's actually a bigger problem is that jumps can vary in distance, and thus vary in time. You're going to have to switch back to slot1 manually, unless you want to not be able to switch until the amount of time a long jump would've taken has passed.
Since the slot switch is no longer an issue, the only thing that needs to be taken into account is the weapon switch time. I'd normally just want to use a +/- alias for this without wait, but with the weapon switch I'm not sure it can even be done with a +/- alias, at least not with everything executing at the right time. (Y'know, since most people tap buttons like that, and that might not last the full 5 ticks.)
So, here's the script I could come up with:
Assuming the Thermal Thruster follows TF2's standard weapon switch time of 0.5 seconds or 33 ticks (post-Tough Break), the timing should be right here.
Honestly though, you'd be better off just doing it yourself. Same goes for rocket jumping. Fact is, scripts and movement just don't work well together, and even when they do cooperate they only work with exceedingly-simple movement that would be easier to learn how to do yourself than to learn how to use the bind.
1
u/[deleted] May 03 '18
[removed] — view removed comment