r/tf2scripthelp • • Dec 02 '15

Answered Can this script work?

Sketchek (bless his soul) released his cfg a while ago, and I particularly liked the idea of this one:

//minimize sound made when detonator jumping (shorten detonator whistle by swinging melee and muffle painful screams with "yes").
alias +silence "+attack;wait 3;slot3;wait 10;voicemenu 2 7"
alias -silence "-attack;slot2"

I can't get it to work, and my guess is it's because of the wait commands. Is there anyway to change this script so that it works?

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/Cap_Ghoti Dec 03 '15

That sounds good! Is there any way to tell the script to only do this while I'm on slot2?

1

u/Kairu927 Dec 04 '15

Sure! I assume you want it on mouse1?

alias +m_atk "+attack"
alias -m_atk "-attack"
bind mouse1 +m_atk

alias +silence "+attack;voicemenu 2 7"
alias -silence "-attack;"

bind 1 "slot1; alias +m_atk +attack; alias -m_atk -attack"
bind 2 "slot2; alias +m_atk +silence; alias -m_atk -silence"
bind 3 "slot3; alias +m_atk +attack; alias -m_atk -attack"

This will work assuming you use number keys to switch weapons. If you use mouse wheel it'll get quite a bit longer, so let me know if that's something you want added in.

To reset this:

bind 1 slot1
bind 2 slot2
bind 3 slot3
bind mouse1 +attack

1

u/Cap_Ghoti Dec 04 '15

I do use mousewheel (also q for MWHEELUP and e for MWHEELDOWN). Regardless of that though, I think this script is more trouble than it's worth. Thank you so much for putting so much effort into this for me though!