I run an alltalk server, because the regulars like to chat among themselves, since we like to be social after all. This allows me to have alltalk on, but still be able to chat to just my team when I need to communicate with just my team "spy as sniper! sentry around the corner!".
I put its for TF2 because I hard coded team 2 and 3, so that spectators could be easily immune.
If anyone wants to improve on this plugin and use my code, you have my permission! I'm not much of a coder, I just really wanted this done.
commands:
+teamtalk - turns on talk to team mode
-teamtalk - turns off talk to team mode
Now for the bad news, for people to use it, they need to make some aliases, so this isnt something you can just explain to the pubbers how to do in game.
If anyone has a way to do it in a single bind, that would be awesome!
Lets say you want V to be normal talk, and F to only send voice to your team.
Code:
alias +teamonly "+teamtalk;+voicerecord"
alias -teamonly "-teamtalk;-voicerecord"
bind f +teamonly
bind v +voicerecord
It plays a short beep of a different pitch when you start and stop talking, so you know its working.
Alternatively, you can bind a key to be a toggle, then push the normal voice key to talk.
Code:
alias teamtalktoggle1 "+teamtalk; alias teamtalktoggle teamtalktoggle2"
alias teamtalktoggle2 "-teamtalk; alias teamtalktoggle teamtalktoggle1"
alias teamtalktoggle teamtalktoggle1
bind f teamtalktoggle
bind v +voicerecord
Spectators can talk to and hear everyone always.