r/tf2scripthelp • • Jun 19 '17

Question random voice line script?

i want a script that randomly activates a voiceline from the "Jeer" and the "Negative" voiceline lists because those are my fav voicelines.

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/grayTorre Jun 20 '17 edited Jun 20 '17
alias "+neg" "neg_roulette; alias neg_ref neg_loop; alias neg_bypass neg_ref; neg_wait-test; neg_bypass"
alias "neg_loop" "neg_toggle; wait; neg_ref"
alias "neg_wait-test" "wait; alias neg_bypass neg_toggle"
alias "neg_vm3" "alias neg_roulette voicemenu 2 3; alias neg_toggle neg_vm5"
alias "neg_vm5" "alias neg_roulette voicemenu 2 5; alias neg_toggle neg_vm3"
neg_vm3
alias "-neg" "alias neg_ref"

bind <KEY> +neg

When you press the button, it'll pick one in an exceedingly unpredictable manner.

If the wait command is disabled on the server, it'll just toggle between the two options instead of being properly random.

If a server plugin kicks you for spamming, put a 10 behind the wait in the neg_loop alias to fix it. Might not be a problem, though.

1

u/bravia_ Jun 20 '17

thank you brother