r/tf2scripthelp • u/MTSnacks_ • Aug 27 '15
Resolved Medic Auto-heal script breaks
When using this script in my medic.cfg, several things may randomly break: my other weapons (slot1, slot3) sometimes get stuck on auto-fire, I cannot switch weapons, or I cannot fire my weapons/switch heal targets.
//autoheal script
alias key1 "slot1;autohealOff"
alias key2 "slot2;autohealOn"
alias key3 "slot3;autohealOff"
alias autohealOn " +attack;alias +heal -attack;alias -heal +attack"
alias autohealOff "-attack;alias +heal +attack;alias -heal -attack"
alias turnoffmediccfg "bind mouse1 +attack;bind 1 slot1;bind 2 slot2;bind 3 slot3;-attack"
bind mouse1 +heal
bind 1 key1
bind 2 key2
bind 3 key3 The full cfg is available here.
1
Upvotes
View all comments
Show parent comment
2
u/MTSnacks_ Aug 27 '15
I modified the script to address the switch issue. After inspecting the other files in the cfg directory, I found files and aliases left over by tf2mate. Removing these fixed all the problems. Thanks for the insight!