From 4bcf43122f3906efde94cf0609246716671e7ca6 Mon Sep 17 00:00:00 2001 From: funkyfranky Date: Tue, 2 Apr 2019 16:27:41 +0200 Subject: [PATCH] AB --- Moose Development/Moose/Ops/Airboss.lua | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Moose Development/Moose/Ops/Airboss.lua b/Moose Development/Moose/Ops/Airboss.lua index b9332e85d..5fe985d33 100644 --- a/Moose Development/Moose/Ops/Airboss.lua +++ b/Moose Development/Moose/Ops/Airboss.lua @@ -376,6 +376,9 @@ -- -- All section members are supposed to follow. Player (or section lead) is removed from all other queues and automatically added to the landing pattern queue. -- +-- If this command is called while the player is currently on the carrier, he will be put in the bolter pattern. So the next expected step after take of +-- is the abeam position. This allows for quick landing training exercises without having to go through the whole pattern. +-- -- The mission designer can forbid this option my setting @{#AIRBOSS.SetEmergencyLandings}(false) in the script. -- -- ### [Reset My Status] @@ -13187,11 +13190,17 @@ function AIRBOSS:_GetETAatNextWP() -- Current velocity [m/s]. local v=self.carrier:GetVelocityMPS() + -- Next waypoint. + local nextWP=self:_GetNextWaypoint() + -- Distance to next waypoint. - local s=0 - if #self.waypoints>cwp then - s=p:Get2DDistance(self.waypoints[cwp+1]) - end + local s=p:Get2DDistance(nextWP) + + -- Distance to next waypoint. + --local s=0 + --if #self.waypoints>cwp then + -- s=p:Get2DDistance(self.waypoints[cwp+1]) + --end -- v=s/t <==> t=s/v local t=s/v