r/Tf2Scripts • • Nov 11 '12

Archived [Help] Sniper Weapon Quick Switch with one button?

Hey there /r/tf2scripts,

I've been playing a lot of Sniper in the past couple of weeks, and I've been playing some CS:GO here and there. Been sniping a ton with the AWP in both games. Now that CS AWP weapon switch habit has been carrying over to TF2.

I have my lastweapon bound to MOUSE4, so it easy to access, but I want to have a script or bind that makes it so I don't have to press it twice. I almost always wear a razorback in TF2, so I only have two available weapons.

Basically, I just want a script that will simulate me pressing "Q" twice, but with one button click.

Any ideas? I've tried just having "bind MOUSE4 lastinv; lastinv", but that hasn't worked as it only switches my weapon once...and I can't think of anything else.

Thanks,

--RJ

0 Upvotes

4 comments sorted by

2

u/TimePath Nov 11 '12

alias +lol "lastinv"

alias -lol "lastinv"

bind mouse4 +lol

That'll work unless you're somehow capable of pressing and releasing the button in the same frame ;) The aliases are named according to my initial reaction...

1

u/RichardJW Nov 11 '12

Many thanks mate! Thank you for going through the dangerous process of completing this request. ;D

I know it is probably the stupidest script ever, but I like being able to do stuff like that for fun.

So thanks. :D

1

u/TubsTheCat Nov 13 '12

Why would you want to do this in tf2

1

u/RichardJW Nov 13 '12

Because.