So I was thinking when I read this thread on the Steam forums:
http://forums.steampowered.com/forum...d.php?t=700131
it was kinda doable.
Basically, people were asking for an extra button that can be pressed allowing a player to talk to the other side, yet still be able to use
team voice chat for normal play and team strategy.
This plugin allows a player to switch on all talk, which only affects him. His voice will then be heard by the other team.
However, he will not be able to hear them talking back unless someone from their team switches on their alltalk....
So team chat is still maintained and only those players wishing to talk to the whole server can be heard.
The plugin also has a feature where it will do tag recognition, so only members of a clan can use the alltalk. Simply fill in the text file with a clan tag and turn on the tags cvar.
Servers with this plugin:
http://www.game-monitor.com/search.p...&type=variable
UsageA toggle command.
A player should bind a key to this...e.g. bind "i" "voiceall"
When activated, the player can be heard by the whole server if he presses his normal voice comms key.
When deactivated, he only can be heard by his team.
Installation- Copy sm_playeralltalk.smx to addons/sourcemod/plugins
- Copy sm_playeralltalk_data.txt to addons/sourcemod/configs
Configuration
When enabled, it reads a txt file (sm_playeralltalk_data.txt) for clan tags, only allowing those players to use the command. This was added, because some griefers and pubbers may/can/will abuse the feature...
- sm_alltalk_messages <0 or 1>
When enabled, clients can see if the all talk feature is on via a message in the chat area
- sm_alltalk_default <0 or 1>
Sets whether the default for the client is teamtalk or alltalk
Notes
Has been tested with TF2, DoDS, CSS and PVKii
If you are already using the
adminsentinel plugin, this plugin will conflict with admin listening abilities. Admins should use the talk-to-server feature in that plugin, only.
If you wish to provide your players with a single button to talk, like the "V" button, they will need to add a couple of commands to their config.cfg, courtesy of
Skoll. Pressing "h", in this case, will have the same effect as pressing "v" except the player will be speaking to the whole server
PHP Code:
alias +alltalk "voiceall; +voicerecord"
alias -alltalk "-voicerecord; voiceall"
bind h +alltalk
Changelog
v1.0.100
SourceMod release
v1.0.101
Added Cvar to remove messages
v1.0.102
Added Cvar to set default status (thanks RM Hamster)
Credits
RM_Hamster for adding the useful CVAR to define how the plugin starts.