[nexuiz-commits] r6328 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Mar 27 08:30:44 EDT 2009


Author: div0
Date: 2009-03-27 08:30:44 -0400 (Fri, 27 Mar 2009)
New Revision: 6328

Modified:
   trunk/data/qcsrc/server/cl_client.qc
Log:
turn off jetpack sound when dead


Modified: trunk/data/qcsrc/server/cl_client.qc
===================================================================
--- trunk/data/qcsrc/server/cl_client.qc	2009-03-27 12:24:55 UTC (rev 6327)
+++ trunk/data/qcsrc/server/cl_client.qc	2009-03-27 12:30:44 UTC (rev 6328)
@@ -1622,6 +1622,17 @@
 
 	self.effects &~= (EF_RED | EF_BLUE | EF_ADDITIVE | EF_FULLBRIGHT);
 
+	if(self.items & IT_USING_JETPACK)
+	{
+		SoundEntity_StartSound(self, CHAN_PLAYER, "misc/jetpack_fly.wav", VOL_BASE, ATTN_IDLE);
+		self.modelflags |= MF_ROCKET;
+	}
+	else
+	{
+		SoundEntity_StopSound(self, CHAN_PLAYER);
+		self.modelflags &~= MF_ROCKET;
+	}
+
 	if(!self.modelindex) // don't apply the flags if the player is gibbed
 		return;
 
@@ -1675,17 +1686,6 @@
 	if (time >= game_starttime)
 	if (time < self.spawnshieldtime)
 		self.effects = self.effects | (EF_ADDITIVE | EF_FULLBRIGHT);
-
-	if(self.items & IT_USING_JETPACK)
-	{
-		SoundEntity_StartSound(self, CHAN_PLAYER, "misc/jetpack_fly.wav", VOL_BASE, ATTN_IDLE);
-		self.modelflags |= MF_ROCKET;
-	}
-	else
-	{
-		SoundEntity_StopSound(self, CHAN_PLAYER);
-		self.modelflags &~= MF_ROCKET;
-	}
 }
 
 float CalcRegen(float current, float stable, float regenfactor)



More information about the nexuiz-commits mailing list