mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-13 09:16:15 +00:00
Merge
This commit is contained in:
@@ -695,7 +695,7 @@ ARTY.id="ARTY | "
|
||||
|
||||
--- Arty script version.
|
||||
-- @field #string version
|
||||
ARTY.version="1.1.2"
|
||||
ARTY.version="1.1.3"
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -2474,9 +2474,10 @@ function ARTY:_OnEventMarkChange(Event)
|
||||
if Event.text~=nil and Event.text:lower():find("arty") then
|
||||
|
||||
-- Convert (wrong x-->z, z-->x) vec3
|
||||
-- TODO: This needs to be "fixed", once DCS gives the correct numbers for x and z.
|
||||
-- local vec3={y=Event.pos.y, x=Event.pos.x, z=Event.pos.z}
|
||||
local vec3={y=Event.pos.y, x=Event.pos.z, z=Event.pos.x}
|
||||
-- DONE: This needs to be "fixed", once DCS gives the correct numbers for x and z.
|
||||
-- Was fixed in DCS 2.5.5.34644!
|
||||
local vec3={y=Event.pos.y, x=Event.pos.x, z=Event.pos.z}
|
||||
--local vec3={y=Event.pos.y, x=Event.pos.z, z=Event.pos.x}
|
||||
|
||||
-- Get coordinate from vec3.
|
||||
local _coord=COORDINATE:NewFromVec3(vec3)
|
||||
|
||||
@@ -1752,7 +1752,7 @@ _WAREHOUSEDB = {
|
||||
|
||||
--- Warehouse class version.
|
||||
-- @field #string version
|
||||
WAREHOUSE.version="0.9.6wip"
|
||||
WAREHOUSE.version="0.9.6"
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
-- TODO: Warehouse todo list.
|
||||
|
||||
@@ -5996,7 +5996,7 @@ function AIRBOSS:_ScanCarrierZone()
|
||||
local awacs2marshal = isawacs and self.awacs:IsReturning() and self.awacs.airbase:GetName()==self.airbase:GetName() and knownflight.flag==-100 and self.awacs.recovery==true
|
||||
|
||||
-- Put flight into Marshal.
|
||||
local putintomarshal=closein>UTILS.NMToMeters(5) and knownflight.flag==-100 and iscarriersquad and istanker==false and isawacs==false
|
||||
local putintomarshal=closein>UTILS.NMToMeters(5) and knownflight.flag==-100 and iscarriersquad and (not istanker) and (not isawacs)
|
||||
|
||||
-- Send AI flight to marshal stack if group closes in more than 5 and has initial flag value.
|
||||
if putintomarshal or tanker2marshal or awacs2marshal then
|
||||
@@ -12760,7 +12760,7 @@ function AIRBOSS:_Debrief(playerData)
|
||||
table.insert(self.playerscores[playerData.name], mygrade)
|
||||
|
||||
-- Trigger grading event.
|
||||
self:LSOGrade(playerdata, mygrade)
|
||||
self:LSOGrade(playerData, mygrade)
|
||||
|
||||
-- LSO grade: (OK) 3.0 PT - LURIM
|
||||
local text=string.format("%s %.1f PT - %s", grade, Points, analysis)
|
||||
|
||||
@@ -418,6 +418,13 @@ function RECOVERYTANKER:New(carrierunit, tankergroupname)
|
||||
-- @param #RECOVERYTANKER self
|
||||
-- @param #number delay Delay in seconds.
|
||||
|
||||
--- On after "Start" event function. Called when FSM is started.
|
||||
-- @function [parent=#RECOVERYTANKER] OnAfterStart
|
||||
-- @param #RECOVERYTANKER self
|
||||
-- @param #string From From state.
|
||||
-- @param #string Event Event.
|
||||
-- @param #string To To state.
|
||||
|
||||
|
||||
--- Triggers the FSM event "RefuelStart" when the tanker starts refueling another aircraft.
|
||||
-- @function [parent=#RECOVERYTANKER] RefuelStart
|
||||
|
||||
@@ -346,6 +346,12 @@ function RESCUEHELO:New(carrierunit, helogroupname)
|
||||
-- @param #RESCUEHELO self
|
||||
-- @param #number delay Delay in seconds.
|
||||
|
||||
--- On after "Start" event function. Called when FSM is started.
|
||||
-- @function [parent=#RESCUEHELO] OnAfterStart
|
||||
-- @param #RECOVERYTANKER self
|
||||
-- @param #string From From state.
|
||||
-- @param #string Event Event.
|
||||
-- @param #string To To state.
|
||||
|
||||
--- Triggers the FSM event "Rescue" that sends the helo on a rescue mission to a specifc coordinate.
|
||||
-- @function [parent=#RESCUEHELO] Rescue
|
||||
|
||||
Reference in New Issue
Block a user