]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Small for detection of touched jump pads
authormand1nga <mand1nga@xonotic.org>
Tue, 23 Aug 2011 22:23:28 +0000 (19:23 -0300)
committermand1nga <mand1nga@xonotic.org>
Tue, 23 Aug 2011 22:23:28 +0000 (19:23 -0300)
qcsrc/server/bot/navigation.qc

index 2c80aca61bc7804540d53c5d0a3a82c8c4dab1cd..ed5c4b644fe05a2c48a7516c99fbff07799f638e 100644 (file)
@@ -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