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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Apr 20 19:24:36 EDT 2007


Author: div0
Date: 2007-04-20 19:24:36 -0400 (Fri, 20 Apr 2007)
New Revision: 2371

Modified:
   branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
Log:
hit sound fix again


Modified: branches/nexuiz-2.0/data/qcsrc/server/g_world.qc
===================================================================
--- branches/nexuiz-2.0/data/qcsrc/server/g_world.qc	2007-04-20 23:23:43 UTC (rev 2370)
+++ branches/nexuiz-2.0/data/qcsrc/server/g_world.qc	2007-04-20 23:24:36 UTC (rev 2371)
@@ -1932,14 +1932,16 @@
 	FOR_EACH_REALCLIENT(self)
 	{
 		if(self.classname == "spectator")
-			self.hitsound = self.enemy.hitsound;
-		if(self.hitsound)
 		{
-			stuffcmd(self, "play2 misc/hit.wav\n");
-			self.hitsound = FALSE;
+			if(self.enemy.hitsound)
+				stuffcmd(self, "play2 misc/hit.wav\n");
 		}
+		else
+		{
+			if(self.hitsound)
+				stuffcmd(self, "play2 misc/hit.wav\n");
+		}
 	}
 	FOR_EACH_CLIENT(self)
-			if(clienttype(self) == CLIENTTYPE_BOT)
-				self.hitsound = FALSE;
+		self.hitsound = FALSE;
 }




More information about the nexuiz-commits mailing list