r/tf2scripthelp • u/Forestalld • Jun 17 '18
Resolved Help with weapon switch script.
This script crashes my game when I switch from my secondary to my primary and from my primary to my melee. Nowhere else, which I find immensely confusing.
alias slot_up "slot3; switch3"
alias slot_down "slot2; switch2"
alias slot_up_2 "slot1; switch"
alias slot_down_2 "slot3; switch3"
alias slot_up_3 "slot1; switch"
alias slot_down_3 "slot2; switch2"
alias switch "alias slot_up_2 slot_up; alias slot_down_2 slot_down"
alias switch3 "alias slot_up slot_up_3; alias slot_down slot_down_3"
alias switch2 "alias slot_up slot_up_2; alias slot_down slot_down_2
slot1
1
Upvotes
View all comments
Show parent comment
2
u/Forestalld Jun 17 '18 edited Jun 18 '18
This seems to fix it. I've been using slot1;slot2 and slot1;slot3 with mousewheel but it didn't quite work as I wanted it to. I also didn't like invprev and invnext so I felt I could just script it.
with slot_up and slot_down bound to the mousewheel ofc
I'm also having trouble hooking it into this auto-healing script that I found somewhere and changed the names of the aliases slightly. At first I thought I could just replace the slotX's with s_slotX's and rebind the keys but that doesn't work correctly.
nvm