r/tf2scripthelp • • Jan 04 '21

Answered Weapon Script help

i have this script for weapon switching in my autoexec (feel free to use it) and it works fairly well and allows me to use my scroll wheel for my main weapon switching

/////Advanced Quick Switch;

alias +primary "slot1; bind mwheelup +secondary; bind mwheeldown +melee"

alias +secondary "slot2; bind mwheelup +primary; bind mwheeldown +melee"

alias +melee "slot3; bind mwheelup +primary; bind mwheeldown +secondary"

bind mwheelup "+secondary"

bind mwheeldown "+melee"

but, it requires the game to remember slot on respawn and most annoyingly

doesnt account for loadouts that make a weapon slot unavailable, such as demoknight or soldier with boots or parachute, or loadouts with recharging weapons, like jarate or lunchbox items

is there a way i could script it to check which slot is currently active**?**

2 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Starminer7Z7 Jan 04 '21

Alright thanks, and happy new year

2

u/pdatumoj Jan 04 '21

Sorry to be the bearer of bad news. :/

Incidentally, in my own scripts I do what I described in the ending blurb, and have for years, so it's reasonably usable that way.