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
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"
Yeah, I know scripts can't detect active weapon. That's one problem I've had with the source script system.