r/Tf2Scripts • • Aug 03 '12

Satisfied [Help] Toggle incoming voice chat

If necessary it can be 2 diff keys but I need to disable mic chat yet still allowing me to speak, Me and my wife play together with sound but only need 1 computer listening to voice chat so we don't have annoying echo. We both need to be able to speak though. It is a hassle to constantly go through menu options to turn it on or off.

Things we have tried:

Bind "F8" "voice_enable 1" (doesnt work) Bind "F9" "voice_enable 0" (Turns off incoming voice but also disables mic) Bindtoggle "F8" "voice_enable" (did nothing, or at least did not turn it back on)

6 Upvotes

5 comments sorted by

3

u/genemilder Aug 03 '12

bind F8 "incrementvar voice_enable 0 1 1"

This won't solve your problem if the state voice_enable doesn't change the game in the way you want.

Otherwise I'm sure you know:

Escape > Options > Voice > Voice Receive Volume = 0

1

u/Sleep45 Aug 03 '12

Ok this disabled all voice chat but when hit again would not enable it. Its not exactly what I want but small steps. This had the same result as binding a key to voice_enable 0

2

u/genemilder Aug 03 '12

I'm reading user reports that TF2 doesn't like the console re-enabling voice_enable (which would explain your issue). The code is correctly phrased, you can try it with something else to be sure:

bind F8 "incrementvar r_drawviewmodel 0 1 1"

1

u/War_Junkie Aug 03 '12

Try it like this:

bind f8 "voiceoff"
alias "voiceoff" "voice_enable 0; bind f8 voiceon"
alias "voiceon" "voice_enable 1; bind f8 voiceoff" 

If that doesn't work, maybe this?

bind f8 "voiceoff"
alias "voiceoff" "voice_scale 0; bind f8 voiceon"
alias "voiceon" "voice_scale 1; bind f8 voiceoff" 

2

u/Wofiel Aug 04 '12

Or bind f8 incrementvar voice_scale 0 1 1"