r1748 - branches/nexuiz-2.0/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jul 9 13:04:06 EDT 2006


Author: div0
Date: 2006-07-09 13:04:06 -0400 (Sun, 09 Jul 2006)
New Revision: 1748

Modified:
   branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc
Log:
so this is how you play sound locally...


Modified: branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc	2006-07-09 16:38:29 UTC (rev 1747)
+++ branches/nexuiz-2.0/data/qcsrc/server/clientcommands.qc	2006-07-09 17:04:06 UTC (rev 1748)
@@ -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