]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Keep tracking last seen enemies for half a second more. Three seconds is way too...
authormand1nga <mand1nga@xonotic.org>
Fri, 19 Aug 2011 01:39:54 +0000 (22:39 -0300)
committermand1nga <mand1nga@xonotic.org>
Fri, 19 Aug 2011 01:39:54 +0000 (22:39 -0300)
qcsrc/server/bot/havocbot/havocbot.qc
qcsrc/server/bot/navigation.qc

index 2505888ef01b421c56c5aa82a2c06e20de8fc080..96f66c92707223c0f7a15603389bf78446a05b74 100644 (file)
@@ -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
index de4019d995f73143100cab8dcfa1b3ed55dbcb5c..87ff3d53231aee92c6cc5660f04803467c1a1f82 100644 (file)
@@ -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