r/tf2scripthelp • • Jul 28 '16

Question Tf2 autoheal command conflicting with script

I have this script for medic:

alias +Healing "slot2;+attack" alias -Healing "-attack" bind 7 "+Healing"

When the autoheal feature is checked and I press 7 twice, the medigun won't stop healing unless I switch away. How can this be fixed?

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Nathan-Clark Jul 29 '16

Well, my problem is that I made this script:

alias +Healing "slot3;+attack" alias -Healing "-attack" bind 7 "+Healing"

Having this script means that when I try to heal, I press 7 once and it doesn't stop +attack until i switch weapons, when tf_medigun_autoheal 1 is enabled. HOw can I get this script to work with the setting turned on

1

u/sgt_scabberdaddle Jul 29 '16

Well, you can't basically. You would have to turn it off, but maybe you can have the script turn it on/off if you do this.

alias +Healing "tf_medigun_autoheal 0;slot2;+attack"
alias -Healing "tf_medigun_autoheal 1;-attack"
bind 7 "+Healing"

1

u/Nathan-Clark Jul 30 '16 edited Jul 31 '16

Tried the script, I press 7 to take out the medigun, I press 7 again to start healing, still can't press 7 again to stop healing.

Edit: I've changed 7 to just switch to medigun and 1 now is +attack. I can toggle it now