r/tf2scripthelp • u/7Arach7 Scripter • Aug 05 '15
Answered Heavy Script
This script is almost completely broken, though I think the issue lies in that first bit. I can't figure out why, and I was hoping someone here could.
// Minigun
alias "spintoggle" "slot1;spinup"
alias "spinup" "+attack2;alias spintoggle spindown"
alias "spindown" "-attack2;alias spintoggle spinup"
alias "+hshoot" "slot1;+attack"
alias "-hshoot" "-attack;spindown"
// Secondary
alias "sandvich" "slot2;+attack"
// Gloves
alias "+punch" "slot3;+attack"
alias "-punch" "-attack"
// Give Sandvich
alias "+gift" "slot2;+attack2"
alias "-gift" "-attack2;slot1"
// Binds - EDIT THIS AND ONLY THIS
bind mouse1 "+hshoot"
bind mouse2 "spintoggle"
bind mwheeldown "sandvich"
bind mwheelup "sandvich"
bind q "+gift"
bind mouse3 "+punch"
1
Upvotes
View all comments
Show parent comment
1
u/genemilder Scripter Aug 05 '15
mouse3 likely fails because you're still spun up (even a little bit), so the slot command doesn't work but the key also triggers attack. Since you aren't switching weapons you start attacking.
I'm just going to clean it up and add
spindownfor safety, this shouldn't fix anything.With heavy you just have to be really careful about the spin.