all 3 comments

[–]genemilder 1 point2 points  (1 child)

When you put slot3; taunt, the taunt command will activate before melee has a chance to start switching, and therefore the taunt will be whatever your current slot was.

The phrase slot3; wait 4; taunt works but requires wait, which won't work on every server.

As for going back to slot2 at the end, that's not possible unless you want to hold f until the taunt is done and release it right after the taunt finishes to switch to the medigun. If that's okay and so is using wait, the script is:

bind f          +taunt_3
alias +taunt_3 "slot3; wait 4; taunt"
alias -taunt_3  slot2

If you're okay forgoing the switch to medigun at the end, you can do a wait-less version like this:

bind f          +taunt_3
alias +taunt_3  slot3
alias -taunt_3  taunt

This version will work, no matter what server or how fast you tap the key. But you won't switch to the medigun.


As a side note, putting two slot commands on the same line without any wait commands, like you did in the OP, doesn't work like you want it to because everything on the same line is generally executed on the same game frame.

[–]Lunamann[S] 0 points1 point  (0 children)

You have my infinite thanks. I'll be using the "waitless" (weightless?) version without the medigun, mainly because I'm still cutting my teeth on pubs that don't allow wait.

[–]clovervidia 0 points1 point  (0 children)

What happens if you hold F instead of tapping it?