r2370 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Apr 20 19:23:43 EDT 2007


Author: div0
Date: 2007-04-20 19:23:43 -0400 (Fri, 20 Apr 2007)
New Revision: 2370

Modified:
   trunk/data/qcsrc/server/g_world.qc
Log:
fix hit sounds again


Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc	2007-04-20 16:00:04 UTC (rev 2369)
+++ trunk/data/qcsrc/server/g_world.qc	2007-04-20 23:23:43 UTC (rev 2370)
@@ -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