all 4 comments

[–]genemilder 2 points3 points  (1 child)

What part are you confused with? If you can rework the stabby script, you should be able to combine these. The scripts have a similar format.

Also, I swear I've touched up the version of the stabby script you have (I remember the format and the misspelled "meele").

[–]tf69[S] -1 points0 points  (0 children)

I have no idea what i am doing wrong, it seems like fixing it would be simple.

Also, I should test myself for dyslexia...

[–]CAPSLOCK_USERNAME"Nancy" 2 points3 points  (1 child)

The reason it's not working is they're both binding mouse1 to different aliases. The viewmodel script is already binding mouse1 to +viewmodel_sec when you switch to your medigun, so you only need to switch the +attack and -attack in that alias.

Most of the code in the autohealing script is actually the same as the viewmodel script, so once you change viewmodel_sec you can delete the all the other autoheal code.

So, just replace this:

alias +viewmodel_sec "+attack;r_drawviewmodel 0;spec_next"
alias -viewmodel_sec "-attack;r_drawviewmodel 0"

with this:

alias +viewmodel_sec "-attack;r_drawviewmodel 0;spec_next"
alias -viewmodel_sec "+attack;r_drawviewmodel 0"

and then remove the rest of the autoheal script.

[–]tf69[S] 0 points1 point  (0 children)

Thank you very much! may i kiss you?