r/Tf2Scripts • u/mrstork89 • Oct 02 '19
Satisfied Degreaser-Panic Attack Switch-Shoot Bind
I need this to reset the spread.
So what it should do it, When I press Hold a Button: Switch to Panic Attack(Slot2), shoot, switch to degreaser(slot1) then repeat.
I can't figure out the repeat part, I ended up creating a press to shoot and switch. I don't want to repeatedly press to shoot, I wanna hold.
alias "+switch" "slot1;slot2;+attack"
alias "-switch" "+attack;-attack"
Please Help, thanks!
5
Upvotes
1
u/just_a_random_dood Oct 03 '19
I don't think it's possible to make a script that only shoots once.
The problem is is that
+attackis a +/- command, and those by definition will run continuously until you stop pressing.Here's how the script looks to me
+attack;-attackinstead of directly having a-attackright there??), stay on secondaryTL;DR I think it's impossible.
+attack -attackwill never "only shoot once" in between switching between two slots, it'll just fire always.1
u/FanciestBanana Oct 03 '19
This script has couple caveats: I did not time the duration of each
wait, you'll have to fine tune that yourself (assuming the server you are playing on even supports it; nowadays only valve servers do).The better solution would be to switch to slot2 and shoot on button press and switch back on button release:
This requires more work on your side, but it's stable.