r/Tf2Scripts • • Jul 05 '23

Request Advanced weapon swap scripting

Hi all. I'm looking for information on a particular script, if it even exists.

Currently, my preferred weapon swap method is binding Q to slot2;slot1 to quickly swap between the two. This works great whenever I have a secondary to swap to, but becomes awkward when I run melee weapons integral to my loadout, like hybrid demo or gunboat/treads with m. gardener.

The question is this: is there a script that will let me swap between slot1 and slot2 with one button, and then slot 1 and slot 3 but ONLY if slot 2 isn't available to swap to?

Example: I play RL/shotgun soldier. Q swaps between my first two slots. Then, I swap to gunboats. Now Q will swap between RL and my melee.

Is this possible at all?

4 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Gustav_EK Jul 05 '23 edited Jul 05 '23

This is exactly what I was looking for. Thank you so much!

I'm thinking there might be a way to remove the error noise with a soundmod or something. If not though, this is still better than what I was using.

1

u/seiferthanseifer Jul 06 '23

You are welcome!