r4993 - in trunk/data: qcsrc/server sound/player

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Nov 5 15:26:41 EST 2008


Author: div0
Date: 2008-11-05 15:26:40 -0500 (Wed, 05 Nov 2008)
New Revision: 4993

Modified:
   trunk/data/qcsrc/server/cl_player.qc
   trunk/data/qcsrc/server/defs.qh
   trunk/data/sound/player/default.sounds
Log:
add the new stuff to default.sounds


Modified: trunk/data/qcsrc/server/cl_player.qc
===================================================================
--- trunk/data/qcsrc/server/cl_player.qc	2008-11-05 20:19:42 UTC (rev 4992)
+++ trunk/data/qcsrc/server/cl_player.qc	2008-11-05 20:26:40 UTC (rev 4993)
@@ -764,7 +764,7 @@
 	return 1;
 }
 
-string allvoicesamples = "attack attackinfive coverme defend freelance incoming meet needhelp seenflag taunt teamshoot";
+string allvoicesamples;
 float GetPlayerSoundSampleField_notFound;
 float GetPlayerSoundSampleField_fixed;
 .string GetVoiceMessageSampleField(string type)
@@ -830,6 +830,14 @@
 		PrecacheGlobalSound(strcat(argv(1), " ", argv(2)));
 	}
 	fclose(fh);
+
+	if not(allvoicesamples)
+	{
+#define _VOICEMSG(m) allvoicesamples = strcat(allvoicesamples, " ", #m);
+		ALLVOICEMSGS
+#undef _VOICEMSG
+		allvoicesamples = strzone(substring(allvoicesamples, 1, strlen(allvoicesamples) - 1));
+	}
 }
 
 void ClearPlayerSounds()

Modified: trunk/data/qcsrc/server/defs.qh
===================================================================
--- trunk/data/qcsrc/server/defs.qh	2008-11-05 20:19:42 UTC (rev 4992)
+++ trunk/data/qcsrc/server/defs.qh	2008-11-05 20:26:40 UTC (rev 4993)
@@ -470,7 +470,6 @@
 		_VOICEMSG(seenenemy) \
 		_VOICEMSG(getflag) \
 		_VOICEMSG(droppedflag) \
-		_VOICEMSG(getourflagback) \
 		_VOICEMSG(flagcarriertakingdamage)
 #define _VOICEMSG(m) .string playersound_##m;
 ALLPLAYERSOUNDS

Modified: trunk/data/sound/player/default.sounds
===================================================================
--- trunk/data/sound/player/default.sounds	2008-11-05 20:19:42 UTC (rev 4992)
+++ trunk/data/sound/player/default.sounds	2008-11-05 20:26:40 UTC (rev 4993)
@@ -1,16 +1,27 @@
+//affirmative sound/player/torus/affirmative 0
 attack sound/player/torus/attack 0
+//attacking sound/player/torus/attacking 0
 attackinfive sound/player/torus/letsgo 0
 coverme sound/player/torus/coverme 0
 //defend sound/player/voice/defend 1
+//defending sound/player/torus/defending 0
+//droppedflag sound/player/voice/droppedflag 0
+//flagcarriertakingdamage sound/player/voice/flagcarriertakingdamage 0
 //freelance sound/player/voice/freelance 1
+//getflag sound/player/voice/getflag 0
 incoming sound/player/torus/incoming 0
 meet sound/player/torus/waypoint 0
 needhelp sound/player/torus/needhelp 0
+//negative sound/player/torus/negative 0
+//onmyway sound/player/torus/onmyway 0
+//roaming sound/player/torus/roaming 0
 seenflag sound/player/torus/flagseen 0
+seenenemy sound/player/torus/seenenemy 0
 taunt sound/player/torus/taunt 0
 teamshoot sound/player/torus/teamshoot 0
 death sound/player/torus/death 0
 drown sound/player/torus/drown 0
+//fall sound/debug/v_falling 0
 //falling sound/debug/v_falling 0
 gasp sound/player/torus/gasp 0
 jump sound/player/torus/jump 0




More information about the nexuiz-commits mailing list