r/tf2scripthelp • u/Snow_Monky • Apr 25 '15
Answered Bind change script question from primary weapon to secondary weapon
Is it possible to make a script where the primary and alternate attacks are changed based on the weapon that is out?
I'm trying to make a script where the bindings for primary and alt attack is set for the primary weapon and when I switch to the secondary weapon the primary and alt attack bindings change to different keys.
1
Upvotes
View all comments
Show parent comment
1
u/Snow_Monky May 24 '15 edited May 24 '15
exec reset
bind v "slot1; unbind MOUSE1; unbind MOUSE5; bind MOUSE1 +attack3; bind MOUSE5 +attack"
bind TAB "slot2; unbind MOUSE1; bind MOUSE1 +attack"
bind 1 "slot5; unbind MOUSE1; unbind MOUSE5; bind MOUSE1 +attack3; bind MOUSE5 +attack"
It doesn't work perfectly because when I run out of ammo in secondary weapon "v" it autoswitches to the other weapon and I forget that the attacks are different in heat of moment.