r1745 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Jul 9 12:11:42 EDT 2006
Author: div0
Date: 2006-07-09 12:11:42 -0400 (Sun, 09 Jul 2006)
New Revision: 1745
Modified:
trunk/data/qcsrc/server/clientcommands.qc
Log:
when teamsaying, also play misc/talk.wav
Modified: trunk/data/qcsrc/server/clientcommands.qc
===================================================================
--- trunk/data/qcsrc/server/clientcommands.qc 2006-07-09 15:30:30 UTC (rev 1744)
+++ trunk/data/qcsrc/server/clientcommands.qc 2006-07-09 16:11:42 UTC (rev 1745)
@@ -43,7 +43,10 @@
{
if(clienttype(head) == CLIENTTYPE_REAL)
if(!teamsay || (head.team == source.team))
+ {
sprint(head, msgstr);
+ sound(head, CHAN_VOICE, "misc/talk.wav", 1, ATTN_NORM);
+ }
head = find(head, classname, "player");
}
@@ -53,14 +56,20 @@
while(head)
{
if(clienttype(head) == CLIENTTYPE_REAL)
+ {
sprint(head, msgstr);
+ sound(head, CHAN_VOICE, "misc/talk.wav", 1, ATTN_NORM);
+ }
head = find(head, classname, "observer");
}
head = find(world, classname, "spectator");
while(head)
{
if(clienttype(head) == CLIENTTYPE_REAL)
+ {
sprint(head, msgstr);
+ sound(head, CHAN_VOICE, "misc/talk.wav", 1, ATTN_NORM);
+ }
head = find(head, classname, "spectator");
}
ServerConsoleEcho(substring(msgstr, 0, strlen(msgstr) - 1), TRUE);
More information about the nexuiz-commits
mailing list