summaryrefslogtreecommitdiff
path: root/src/game/g_client.c
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2009-10-03 11:44:02 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:17 +0000
commit122de31ac2834809fb15088eda6f5278d4525fb1 (patch)
treedcb4c460a2cae6df5195bd4eb21c32a7ee309ba1 /src/game/g_client.c
parent82ef46c4c099fbfed24fa326ee6f501ad5535a30 (diff)
* voice chat stuff (no, not like TeamSpeak)
Diffstat (limited to 'src/game/g_client.c')
-rw-r--r--src/game/g_client.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/g_client.c b/src/game/g_client.c
index 01f5dbb2..578fc176 100644
--- a/src/game/g_client.c
+++ b/src/game/g_client.c
@@ -1091,14 +1091,18 @@ void ClientUserinfoChanged( int clientNum )
team = client->pers.teamSelection;
+ Q_strncpyz( client->pers.voice, Info_ValueForKey( userinfo, "voice" ),
+ sizeof( client->pers.voice ) );
+
// send over a subset of the userinfo keys so other clients can
// print scoreboards, display models, and play custom sounds
Com_sprintf( userinfo, sizeof( userinfo ),
"n\\%s\\t\\%i\\model\\%s\\c1\\%s\\c2\\%s\\"
- "hc\\%i\\ig\\%16s",
+ "hc\\%i\\ig\\%16s\\v\\%s",
client->pers.netname, team, model, c1, c2,
- client->pers.maxHealth, BG_ClientListString( &client->sess.ignoreList ) );
+ client->pers.maxHealth, BG_ClientListString( &client->sess.ignoreList ),
+ client->pers.voice );
trap_SetConfigstring( CS_PLAYERS + clientNum, userinfo );