From: mand1nga Date: Fri, 19 Aug 2011 01:39:54 +0000 (-0300) Subject: Keep tracking last seen enemies for half a second more. Three seconds is way too... X-Git-Tag: xonotic-v0.5.0~36^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b2e834389b6f8c92f2cbd909c5e3677b3eab3823;p=xonotic%2Fxonotic-data.pk3dir.git Keep tracking last seen enemies for half a second more. Three seconds is way too much for this. --- diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index 2505888ef..96f66c927 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -887,7 +887,7 @@ void havocbot_chooseenemy() if (self.health > 30) { // remain tracking him for a shot while (case he went after a small corner or pilar - self.havocbot_chooseenemy_finished = time + autocvar_bot_ai_enemydetectioninterval; + self.havocbot_chooseenemy_finished = time + 0.5; return; } // enemy isn't visible, or is far away, or we're injured severely diff --git a/qcsrc/server/bot/navigation.qc b/qcsrc/server/bot/navigation.qc index de4019d99..87ff3d532 100644 --- a/qcsrc/server/bot/navigation.qc +++ b/qcsrc/server/bot/navigation.qc @@ -897,7 +897,7 @@ void navigation_poptouchedgoals() if(checkpvs(self.origin + self.view_ofs, self.goalstack01)) if(tracewalk(self, self.origin, self.mins, self.maxs, (self.goalstack01.absmin + self.goalstack01.absmax) * 0.5, bot_navigation_movemode)) { - /// dprint("path optimized, removed a goal from the queue\n"); + /// dprint("path optimized for ", self.netname, ", removed a goal from the queue\n"); navigation_poproute(); // TODO this may also be a nice idea to do "early" (e.g. by // manipulating the vlen() comparisons) to shorten paths in