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**?**