r6037 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Mar 2 11:49:58 EST 2009


Author: mand1nga
Date: 2009-03-02 11:49:53 -0500 (Mon, 02 Mar 2009)
New Revision: 6037

Modified:
   trunk/data/qcsrc/server/bots.qc
   trunk/data/qcsrc/server/havocbot_roles.qc
Log:
Now bots can not see invisible players on minsta

Modified: trunk/data/qcsrc/server/bots.qc
===================================================================
--- trunk/data/qcsrc/server/bots.qc	2009-03-02 09:50:37 UTC (rev 6036)
+++ trunk/data/qcsrc/server/bots.qc	2009-03-02 16:49:53 UTC (rev 6037)
@@ -1644,6 +1644,9 @@
 		return FALSE;
 	if (e.BUTTON_CHAT)
 		return FALSE;
+	if(g_minstagib)
+	if(e.items & IT_STRENGTH)
+		return FALSE;
 	return TRUE;
 };
 

Modified: trunk/data/qcsrc/server/havocbot_roles.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot_roles.qc	2009-03-02 09:50:37 UTC (rev 6036)
+++ trunk/data/qcsrc/server/havocbot_roles.qc	2009-03-02 16:49:53 UTC (rev 6037)
@@ -250,12 +250,17 @@
 
 	FOR_EACH_PLAYER(head)
 	{
+		// TODO: Merge this logic with the bot_shouldattack function
 		if (self != head)
 		if (head.health > 0)
 		if ((noteam && (!bot_ignore_bots || clienttype(head) == CLIENTTYPE_REAL)) || head.team != self.team)
 		{
 			if (vlen(head.origin - org) > sradius)
 				continue;
+
+			if(g_minstagib)
+			if(head.items & IT_STRENGTH)
+				continue;
 				
 			// rate only visible enemies
 			/*




More information about the nexuiz-commits mailing list