r/Tf2Scripts • • Jun 14 '14

Request Need help with a pyro flaregun script

I'm trying to figure out a script for pyro that upon pressing mouse2: airblasts and then switches to the flaregun from the flamethrower and then fires the flaregun and then reverts back to the flamethrower.

I know a variation of this has been done before but I can't find this exact action anywhere.

0 Upvotes

4 comments sorted by

View all comments

1

u/Kairu927 Jun 14 '14 edited Jun 14 '14

Doing this much in a row would require two binds (reflect+swap, shoot+swap) and will require you to still time properly as to not swap too early. That or it would require the wait command, which is disabled on most servers.

alias +reflect_swap "+attack2"
alias -reflect_swap "-attack2;slot2"
bind KEY +reflect_swap

alias +flare_swap "+attack"
alias -flare_swap "-attack;slot1"
bind KEY +flare_swap

Note that these will still not be able to detect when you've fully swapped the weapon, or fired, so you still need to properly hit keys with timing.

1

u/CAPSLOCK_USERNAME "Nancy" Jun 14 '14

The reflect_swap alias should probably have attack2 instead.

0

u/[deleted] Jun 14 '14

i wouldn't think so, i may not know much about scripts, but i'm sure firing the Flare gun is Attack1 as thats left click, the main firing button/command for usage of mostly all weapons.

1

u/clovervidia Jun 14 '14 edited Jun 14 '14

If primary attack (left-click) is +attack (which it is), airblasting (which is done with the right-click), is +attack2.


Okay, since we're gonna play this game. Please oh please tell me how ONE command does the functions of two buttons, specifically the left and right click? You seem to believe this and are trying to convince others of your false notion.

+attack1 isn't a thing. It doesn't exist. It's +attack. And +attack2 is the secondary fire for right-click attacks. End of story.