[nexuiz-commits] r6639 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat May 2 13:12:23 EDT 2009
Author: mand1nga
Date: 2009-05-02 13:12:21 -0400 (Sat, 02 May 2009)
New Revision: 6639
Modified:
trunk/data/qcsrc/server/havocbot_roles.qc
Log:
Fixed bug in the detection of goals
Modified: trunk/data/qcsrc/server/havocbot_roles.qc
===================================================================
--- trunk/data/qcsrc/server/havocbot_roles.qc 2009-05-02 17:07:34 UTC (rev 6638)
+++ trunk/data/qcsrc/server/havocbot_roles.qc 2009-05-02 17:12:21 UTC (rev 6639)
@@ -434,6 +434,10 @@
self.bot_strategytime = time + cvar("bot_ai_strategyinterval");
navigation_goalrating_start();
havocbot_goalrating_ctf_ourflag(50000);
+ if(self.health<100)
+ havocbot_goalrating_ctf_carrieritems(1000, self.origin, 1000);
+ navigation_goalrating_end();
+
if (self.navigation_hasgoals)
self.bot_cantfindflag = time + 10;
else if (time > self.bot_cantfindflag)
@@ -442,9 +446,6 @@
Damage(self, self, self, 100000, DEATH_KILL, self.origin, '0 0 0');
return;
}
- if(self.health<100)
- havocbot_goalrating_ctf_carrieritems(1000, self.origin, 1000);
- navigation_goalrating_end();
}
};
More information about the nexuiz-commits
mailing list