r1747 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Jul 9 12:38:29 EDT 2006
Author: div0
Date: 2006-07-09 12:38:29 -0400 (Sun, 09 Jul 2006)
New Revision: 1747
Modified:
trunk/data/qcsrc/server/clientcommands.qc
Log:
so this is how you do local sounds...
Modified: trunk/data/qcsrc/server/clientcommands.qc
===================================================================
--- trunk/data/qcsrc/server/clientcommands.qc 2006-07-09 16:17:04 UTC (rev 1746)
+++ trunk/data/qcsrc/server/clientcommands.qc 2006-07-09 16:38:29 UTC (rev 1747)
@@ -45,7 +45,7 @@
if(!teamsay || (head.team == source.team))
{
sprint(head, msgstr);
- sound(head, CHAN_VOICE, "misc/talk.wav", 1, ATTN_NORM);
+ stuffcmd(head, "play2 misc/talk.wav\n");
}
head = find(head, classname, "player");
}
@@ -58,7 +58,7 @@
if(clienttype(head) == CLIENTTYPE_REAL)
{
sprint(head, msgstr);
- sound(head, CHAN_VOICE, "misc/talk.wav", 1, ATTN_NORM);
+ stuffcmd(head, "play2 misc/talk.wav\n");
}
head = find(head, classname, "observer");
}
@@ -68,7 +68,7 @@
if(clienttype(head) == CLIENTTYPE_REAL)
{
sprint(head, msgstr);
- sound(head, CHAN_VOICE, "misc/talk.wav", 1, ATTN_NORM);
+ stuffcmd(head, "play2 misc/talk.wav\n");
}
head = find(head, classname, "spectator");
}
More information about the nexuiz-commits
mailing list