I'm trying to find a script which goes to the flamethrower and air blasts (with mouse2) no matter which weapon I'm currently using, and then returning to weapon I was using. And when I'm on the flame thrower and I use mouse2, it stays on the flamethrower. Is this possible ?
Thanks,
View all comments
Show parent comment
3
u/genemilder Dec 14 '13 edited Dec 14 '13
OP wants it to not switch back to the previous weapon if he has his primary out. The first script would make consecutive airblasts much more difficult due to the weapon switch time.
For your second script, yes scripting all weapon switch interactions is what I meant. I didn't include one because he didn't specify how he switches weapons (and honestly sometimes more scripting isn't the best answer).
For your script in particular,
you can remove thebind q QWfrom your first 3 lines as it's unnecessary. And your method of simulatinglastinvwithQWwon't work the same as actuallastinv, it actually works likeinvnextshould.Edit: you removed that bit.Because you used
w1in+air, yourLWis redefined tow1before being executed in-air. You'll want to change+airto haveslot1instead.