mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
RT & RH
Recovery Tanker Rescue Helo
This commit is contained in:
parent
0a5f042555
commit
43ec58fe85
@ -14,6 +14,7 @@
|
|||||||
-- ===
|
-- ===
|
||||||
--
|
--
|
||||||
-- ### Author: **funkyfranky**
|
-- ### Author: **funkyfranky**
|
||||||
|
-- ### Special thanks to HighwaymanEd for testing and suggesting improvements!
|
||||||
--
|
--
|
||||||
-- @module Ops.RecoveryTanker
|
-- @module Ops.RecoveryTanker
|
||||||
-- @image MOOSE.JPG
|
-- @image MOOSE.JPG
|
||||||
@ -276,7 +277,7 @@ function RECOVERYTANKER:New(carrierunit, tankergroupname)
|
|||||||
self:SetPatternUpdateInterval()
|
self:SetPatternUpdateInterval()
|
||||||
|
|
||||||
-- Moving zone: Zone 1 NM astern the carrier with radius of 1 NM.
|
-- Moving zone: Zone 1 NM astern the carrier with radius of 1 NM.
|
||||||
self.zoneUpdate=ZONE_UNIT:New("Pattern Update Zone", self.carrier, UTILS.NMToMeters(1), {dx=-UTILS.NMToMeters(1), dy=0, relative_to_unit=true})
|
--self.zoneUpdate=ZONE_UNIT:New("Pattern Update Zone", self.carrier, UTILS.NMToMeters(1), {dx=-UTILS.NMToMeters(1), dy=0, relative_to_unit=true})
|
||||||
--self.zoneUpdate:SmokeZone(SMOKECOLOR.White, 45)
|
--self.zoneUpdate:SmokeZone(SMOKECOLOR.White, 45)
|
||||||
|
|
||||||
-----------------------
|
-----------------------
|
||||||
@ -735,6 +736,7 @@ function RECOVERYTANKER:onafterStatus(From, Event, To)
|
|||||||
-- Check if tanker flies through pattern update zone.
|
-- Check if tanker flies through pattern update zone.
|
||||||
-- TODO: Check if this can be used to update the pattern without too much disruption.
|
-- TODO: Check if this can be used to update the pattern without too much disruption.
|
||||||
-- Could be a problem when carrier changes course since the tanker might not fligh through the zone any more.
|
-- Could be a problem when carrier changes course since the tanker might not fligh through the zone any more.
|
||||||
|
--[[
|
||||||
if self.Debug and self.zoneUpdate then
|
if self.Debug and self.zoneUpdate then
|
||||||
local inupdatezone=self.tanker:GetUnit(1):IsInZone(self.zoneUpdate)
|
local inupdatezone=self.tanker:GetUnit(1):IsInZone(self.zoneUpdate)
|
||||||
if inupdatezone then
|
if inupdatezone then
|
||||||
@ -742,6 +744,7 @@ function RECOVERYTANKER:onafterStatus(From, Event, To)
|
|||||||
self:T(string.format("Recovery tanker is in pattern update zone! Time=%s", clock))
|
self:T(string.format("Recovery tanker is in pattern update zone! Time=%s", clock))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
|
|
||||||
-- Check if tanker is running and not RTBing or refueling.
|
-- Check if tanker is running and not RTBing or refueling.
|
||||||
if self:IsRunning() then
|
if self:IsRunning() then
|
||||||
|
|||||||
@ -9,8 +9,6 @@
|
|||||||
-- * Automatic respawning on empty fuel for 24/7 operations.
|
-- * Automatic respawning on empty fuel for 24/7 operations.
|
||||||
-- * Automatic rescuing of crashed or ejected units in the vicinity.
|
-- * Automatic rescuing of crashed or ejected units in the vicinity.
|
||||||
--
|
--
|
||||||
-- Please not that his class is work in progress and in an **alpha** stage.
|
|
||||||
--
|
|
||||||
-- ===
|
-- ===
|
||||||
--
|
--
|
||||||
-- ### Author: **funkyfranky**
|
-- ### Author: **funkyfranky**
|
||||||
@ -162,7 +160,7 @@ RESCUEHELO = {
|
|||||||
|
|
||||||
--- Class version.
|
--- Class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
RESCUEHELO.version="0.9.4w"
|
RESCUEHELO.version="0.9.5"
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
-- TODO list
|
-- TODO list
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user