mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-15 07:26:23 +00:00
AB, RH 1.0.9
This commit is contained in:
@@ -48,12 +48,16 @@
|
|||||||
--
|
--
|
||||||
-- Heatblur's mighty F-14B Tomcat has been added (March 13th 2019) as well.
|
-- Heatblur's mighty F-14B Tomcat has been added (March 13th 2019) as well.
|
||||||
--
|
--
|
||||||
--
|
|
||||||
-- ## Discussion
|
-- ## Discussion
|
||||||
--
|
--
|
||||||
-- If you have questions or suggestions, please visit the [MOOSE Discord](https://discord.gg/AeYAkHP) #ops-airboss channel.
|
-- If you have questions or suggestions, please visit the [MOOSE Discord](https://discord.gg/AeYAkHP) #ops-airboss channel.
|
||||||
-- There you also find an example mission and the necessary voice over sound files. Check out the **pinned messages**.
|
-- There you also find an example mission and the necessary voice over sound files. Check out the **pinned messages**.
|
||||||
--
|
--
|
||||||
|
-- ## Example Missions
|
||||||
|
--
|
||||||
|
-- Example missions can be found [here](https://github.com/FlightControl-Master/MOOSE_MISSIONS/tree/develop/OPS%20-%20Airboss).
|
||||||
|
-- They contain the latest development Moose.lua file.
|
||||||
|
--
|
||||||
-- ## IMPORTANT
|
-- ## IMPORTANT
|
||||||
--
|
--
|
||||||
-- Some important restrictions (of DCS) you should be aware of:
|
-- Some important restrictions (of DCS) you should be aware of:
|
||||||
@@ -14351,12 +14355,14 @@ end
|
|||||||
-- RADIO MESSAGE Functions
|
-- RADIO MESSAGE Functions
|
||||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
--- Function called by DCS timer. Unused.
|
||||||
|
-- @param #table param Parameters.
|
||||||
|
-- @param #number time Time.
|
||||||
function AIRBOSS._CheckRadioQueueT(param, time)
|
function AIRBOSS._CheckRadioQueueT(param, time)
|
||||||
AIRBOSS._CheckRadioQueue(param.airboss, param.radioqueue, param.name)
|
AIRBOSS._CheckRadioQueue(param.airboss, param.radioqueue, param.name)
|
||||||
return time+0.05
|
return time+0.05
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
--- Radio queue item.
|
--- Radio queue item.
|
||||||
-- @type AIRBOSS.Radioitem
|
-- @type AIRBOSS.Radioitem
|
||||||
-- @field #number Tplay Abs time when transmission should be played.
|
-- @field #number Tplay Abs time when transmission should be played.
|
||||||
@@ -14379,11 +14385,11 @@ function AIRBOSS:_CheckRadioQueue(radioqueue, name)
|
|||||||
if #radioqueue==0 then
|
if #radioqueue==0 then
|
||||||
|
|
||||||
if name=="LSO" then
|
if name=="LSO" then
|
||||||
self:I(self.lid..string.format("Stopping LSO radio queue."))
|
self:T(self.lid..string.format("Stopping LSO radio queue."))
|
||||||
self.radiotimer:Stop(self.RQLid)
|
self.radiotimer:Stop(self.RQLid)
|
||||||
self.RQLid=nil
|
self.RQLid=nil
|
||||||
elseif name=="MARSHAL" then
|
elseif name=="MARSHAL" then
|
||||||
self:I(self.lid..string.format("Stopping Marshal radio queue."))
|
self:T(self.lid..string.format("Stopping Marshal radio queue."))
|
||||||
self.radiotimer:Stop(self.RQMid)
|
self.radiotimer:Stop(self.RQMid)
|
||||||
self.RQMid=nil
|
self.RQMid=nil
|
||||||
end
|
end
|
||||||
@@ -14530,7 +14536,7 @@ function AIRBOSS:RadioTransmission(radio, call, loud, delay, interval, click, pi
|
|||||||
|
|
||||||
-- Schedule radio queue checks.
|
-- Schedule radio queue checks.
|
||||||
if not self.RQLid then
|
if not self.RQLid then
|
||||||
self:I(self.lid..string.format("Starting LSO radio queue."))
|
self:T(self.lid..string.format("Starting LSO radio queue."))
|
||||||
self.RQLid=self.radiotimer:Schedule(nil, AIRBOSS._CheckRadioQueue, {self, self.RQLSO, "LSO"}, 0.02, 0.05)
|
self.RQLid=self.radiotimer:Schedule(nil, AIRBOSS._CheckRadioQueue, {self, self.RQLSO, "LSO"}, 0.02, 0.05)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -14541,7 +14547,7 @@ function AIRBOSS:RadioTransmission(radio, call, loud, delay, interval, click, pi
|
|||||||
caller="MarshalCall"
|
caller="MarshalCall"
|
||||||
|
|
||||||
if not self.RQMid then
|
if not self.RQMid then
|
||||||
self:I(self.lid..string.format("Starting Marhal radio queue."))
|
self:T(self.lid..string.format("Starting Marhal radio queue."))
|
||||||
self.RQMid=self.radiotimer:Schedule(nil, AIRBOSS._CheckRadioQueue, {self, self.RQMarshal, "MARSHAL"}, 0.02, 0.05)
|
self.RQMid=self.radiotimer:Schedule(nil, AIRBOSS._CheckRadioQueue, {self, self.RQMarshal, "MARSHAL"}, 0.02, 0.05)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,7 @@
|
|||||||
-- @field #string alias Alias of the spawn group.
|
-- @field #string alias Alias of the spawn group.
|
||||||
-- @field #number uid Unique ID of this helo.
|
-- @field #number uid Unique ID of this helo.
|
||||||
-- @field #number modex Tail number of the helo.
|
-- @field #number modex Tail number of the helo.
|
||||||
|
-- @field #number dtFollow Follow time update interval in seconds. Default 1.0 sec.
|
||||||
-- @extends Core.Fsm#FSM
|
-- @extends Core.Fsm#FSM
|
||||||
|
|
||||||
--- Rescue Helo
|
--- Rescue Helo
|
||||||
@@ -227,6 +228,7 @@ RESCUEHELO = {
|
|||||||
alias = nil,
|
alias = nil,
|
||||||
uid = 0,
|
uid = 0,
|
||||||
modex = nil,
|
modex = nil,
|
||||||
|
dtFollow = nil,
|
||||||
}
|
}
|
||||||
|
|
||||||
--- Unique ID (global).
|
--- Unique ID (global).
|
||||||
@@ -235,7 +237,7 @@ _RESCUEHELOID=0
|
|||||||
|
|
||||||
--- Class version.
|
--- Class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
RESCUEHELO.version="1.0.8"
|
RESCUEHELO.version="1.0.9"
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
-- TODO list
|
-- TODO list
|
||||||
@@ -303,6 +305,7 @@ function RESCUEHELO:New(carrierunit, helogroupname)
|
|||||||
self:SetRescueZone()
|
self:SetRescueZone()
|
||||||
self:SetRescueHoverSpeed()
|
self:SetRescueHoverSpeed()
|
||||||
self:SetRescueDuration()
|
self:SetRescueDuration()
|
||||||
|
self:SetFollowTimeInterval()
|
||||||
self:SetRescueStopBoatOff()
|
self:SetRescueStopBoatOff()
|
||||||
|
|
||||||
-- Some more.
|
-- Some more.
|
||||||
@@ -644,6 +647,15 @@ function RESCUEHELO:SetModex(modex)
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Set follow time update interval.
|
||||||
|
-- @param #RESCUEHELO self
|
||||||
|
-- @param #number dt Time interval in seconds. Default 1.0 sec.
|
||||||
|
-- @return #RESCUEHELO self
|
||||||
|
function RESCUEHELO:SetFollowTimeInterval(dt)
|
||||||
|
self.dtFollow=dt or 1.0
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
--- Use an uncontrolled aircraft already present in the mission rather than spawning a new helo as initial rescue helo.
|
--- Use an uncontrolled aircraft already present in the mission rather than spawning a new helo as initial rescue helo.
|
||||||
-- This can be useful when interfaced with, e.g., a warehouse.
|
-- This can be useful when interfaced with, e.g., a warehouse.
|
||||||
-- The group name is the one specified in the @{#RESCUEHELO.New} function.
|
-- The group name is the one specified in the @{#RESCUEHELO.New} function.
|
||||||
@@ -940,6 +952,9 @@ function RESCUEHELO:onafterStart(From, Event, To)
|
|||||||
-- Formation parameters.
|
-- Formation parameters.
|
||||||
self.formation:FormationCenterWing(-self.offsetX, 50, math.abs(self.altitude), 50, self.offsetZ, 50)
|
self.formation:FormationCenterWing(-self.offsetX, 50, math.abs(self.altitude), 50, self.offsetZ, 50)
|
||||||
|
|
||||||
|
-- Set follow time interval.
|
||||||
|
self.formation:SetFollowTimeInterval(self.dtFollow)
|
||||||
|
|
||||||
-- Formation mode.
|
-- Formation mode.
|
||||||
self.formation:SetFlightModeFormation(self.helo)
|
self.formation:SetFlightModeFormation(self.helo)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user