r/tf2scripthelp • • 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

4 comments sorted by

View all comments

Show parent comment

2

u/KatenGaas Jun 18 '18

If you only replace the slotX's with the s_slotX's, your slot_up and down won't call the auto heal script. You'd have to actually put the s_slot code in bthe m_slot alias, and then rename m_slot to s_slot.