From: mand1nga Date: Tue, 23 Aug 2011 22:23:28 +0000 (-0300) Subject: Small for detection of touched jump pads X-Git-Tag: xonotic-v0.5.0~36^2~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8f3e121416d5952f8e07bd05751e3580031f599c;p=xonotic%2Fxonotic-data.pk3dir.git Small for detection of touched jump pads --- 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