From 3c6089884edfa7af0265d2ec7553e5a7a4d4d9ae Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 2 Mar 2021 21:19:30 +0100 Subject: [PATCH] Update Airboss.lua - Added MP wire correction function. --- Moose Development/Moose/Ops/Airboss.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Moose Development/Moose/Ops/Airboss.lua b/Moose Development/Moose/Ops/Airboss.lua index d8e631019..12370b7a7 100644 --- a/Moose Development/Moose/Ops/Airboss.lua +++ b/Moose Development/Moose/Ops/Airboss.lua @@ -2641,6 +2641,15 @@ function AIRBOSS:SetRecoveryTurnTime(interval) return self end +--- Set multiplayer environment wire correction. +-- @param #AIRBOSS self +-- @param #number Dcorr Correction distance in meters. Default 8.7 m. +-- @return #AIRBOSS self +function AIRBOSS:SetMPWireCorrection(Dcorr) + self.mpWireCorrection=Dcorr or 8.7 + return self +end + --- Set time interval for updating queues and other stuff. -- @param #AIRBOSS self -- @param #number interval Time interval in seconds. Default 30 sec. @@ -10371,6 +10380,11 @@ function AIRBOSS:_GetWire(Lcoord, dc) -- Corrected landing distance wrt to stern. Landing distance needs to be reduced due to delayed landing event for human players. local d=Ldist-dc + + -- Multiplayer wire correction. + if self.mpWireCorrection then + d=d-self.mpWireCorrection + end -- Shift wires from stern to their correct position. local w1=self.carrierparam.wire1