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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Apr 2 18:56:40 EDT 2009


Author: mand1nga
Date: 2009-04-02 18:56:40 -0400 (Thu, 02 Apr 2009)
New Revision: 6416

Modified:
   trunk/data/qcsrc/server/havocbot_roles.qc
Log:
Don't rate enemies if bot_nofire is set

Modified: trunk/data/qcsrc/server/havocbot_roles.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot_roles.qc	2009-04-02 22:43:11 UTC (rev 6415)
+++ trunk/data/qcsrc/server/havocbot_roles.qc	2009-04-02 22:56:40 UTC (rev 6416)
@@ -257,8 +257,11 @@
 	local float t, noteam, distance;
 	noteam = ((self.team == 0) || !teams_matter); // fteqcc sucks
 
+	if (cvar("bot_nofire"))
+		return;
+
 	// don't chase players if we're under water
-	if(self.waterlevel>1)
+	if(self.waterlevel>WATERLEVEL_WETFEET)
 		return;
 
 	FOR_EACH_PLAYER(head)



More information about the nexuiz-commits mailing list