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

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat May 2 20:06:50 EDT 2009


Author: mand1nga
Date: 2009-05-02 20:06:37 -0400 (Sat, 02 May 2009)
New Revision: 6641

Modified:
   trunk/data/qcsrc/server/havocbot.qc
Log:
Slighly better workaround for goals leading straight to a wall

Modified: trunk/data/qcsrc/server/havocbot.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot.qc	2009-05-02 17:16:31 UTC (rev 6640)
+++ trunk/data/qcsrc/server/havocbot.qc	2009-05-03 00:06:37 UTC (rev 6641)
@@ -541,20 +541,22 @@
 			// avoiding dangers and obstacles
 			local vector dst_ahead, dst_down;
 			makevectors(self.v_angle_y * '0 1 0');
-			dst_ahead = self.origin + self.view_ofs + (self.velocity * 0.4) + (v_forward * 32 * 2);
+			dst_ahead = self.origin + self.view_ofs + (self.velocity * 0.4) + (v_forward * 32 * 3);
 			dst_down = dst_ahead + '0 0 -1500';
 
 			// Look ahead
 			traceline(self.origin + self.view_ofs , dst_ahead, TRUE, world);
 
 			// Check head-banging against walls
-			if(vlen(self.origin + self.view_ofs - trace_endpos) < 2 && !(self.aistatus & AI_STATUS_OUT_WATER))
+			if(vlen(self.origin + self.view_ofs - trace_endpos) < 25 && !(self.aistatus & AI_STATUS_OUT_WATER))
 			{
+				self.BUTTON_JUMP = TRUE;
 				if(self.facingwalltime && time > self.facingwalltime)
 				{
 					self.ignoregoal = self.goalcurrent;
 					self.ignoregoaltime = time + cvar("bot_ai_ignoregoal_timeout");
-					navigation_poproute();
+					self.bot_strategytime = 0;
+					return;
 				}
 				else
 				{



More information about the nexuiz-commits mailing list