From 8f3e121416d5952f8e07bd05751e3580031f599c Mon Sep 17 00:00:00 2001 From: mand1nga Date: Tue, 23 Aug 2011 19:23:28 -0300 Subject: [PATCH] Small for detection of touched jump pads --- qcsrc/server/bot/navigation.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/bot/navigation.qc b/qcsrc/server/bot/navigation.qc index 2c80aca61..ed5c4b644 100644 --- a/qcsrc/server/bot/navigation.qc +++ b/qcsrc/server/bot/navigation.qc @@ -912,6 +912,10 @@ void navigation_poptouchedgoals() if(self.goalcurrent.classname=="player") navigation_poproute(); + // aid for detecting jump pads better (distance based check fails sometimes) + if(self.goalcurrent.wpflags & WAYPOINTFLAG_TELEPORT && self.jumppadcount > 0 ) + navigation_poproute(); + // Loose goal touching check when running if(self.aistatus & AI_STATUS_RUNNING) if(self.speed >= autocvar_sv_maxspeed) // if -really- running -- 2.39.2