mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge branch 'FF/Ops' into FF/OpsDev
This commit is contained in:
commit
d5aa9eaf0f
@ -34,6 +34,7 @@ local _TraceClassMethod = {}
|
|||||||
|
|
||||||
local _ClassID = 0
|
local _ClassID = 0
|
||||||
|
|
||||||
|
---
|
||||||
-- @type BASE
|
-- @type BASE
|
||||||
-- @field ClassName The name of the class.
|
-- @field ClassName The name of the class.
|
||||||
-- @field ClassID The ID number of the class.
|
-- @field ClassID The ID number of the class.
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
-- @module Core.Database
|
-- @module Core.Database
|
||||||
-- @image Core_Database.JPG
|
-- @image Core_Database.JPG
|
||||||
|
|
||||||
|
---
|
||||||
-- @type DATABASE
|
-- @type DATABASE
|
||||||
-- @field #string ClassName Name of the class.
|
-- @field #string ClassName Name of the class.
|
||||||
-- @field #table Templates Templates: Units, Groups, Statics, ClientsByName, ClientsByID.
|
-- @field #table Templates Templates: Units, Groups, Statics, ClientsByName, ClientsByID.
|
||||||
|
|||||||
@ -860,8 +860,10 @@ do -- SET_BASE
|
|||||||
self:F3( Object )
|
self:F3( Object )
|
||||||
local outcome = false
|
local outcome = false
|
||||||
local name = Object:GetName()
|
local name = Object:GetName()
|
||||||
|
--self:I("SET_BASE: Objectname = "..name)
|
||||||
self:ForEach(
|
self:ForEach(
|
||||||
function(object)
|
function(object)
|
||||||
|
--self:I("SET_BASE: In set objectname = "..object:GetName())
|
||||||
if object:GetName() == name then
|
if object:GetName() == name then
|
||||||
outcome = true
|
outcome = true
|
||||||
end
|
end
|
||||||
@ -4330,7 +4332,6 @@ do -- SET_CLIENT
|
|||||||
function SET_CLIENT:FilterStart()
|
function SET_CLIENT:FilterStart()
|
||||||
|
|
||||||
if _DATABASE then
|
if _DATABASE then
|
||||||
self:_FilterStart()
|
|
||||||
self:HandleEvent( EVENTS.Birth, self._EventOnBirth )
|
self:HandleEvent( EVENTS.Birth, self._EventOnBirth )
|
||||||
self:HandleEvent( EVENTS.Dead, self._EventOnDeadOrCrash )
|
self:HandleEvent( EVENTS.Dead, self._EventOnDeadOrCrash )
|
||||||
self:HandleEvent( EVENTS.Crash, self._EventOnDeadOrCrash )
|
self:HandleEvent( EVENTS.Crash, self._EventOnDeadOrCrash )
|
||||||
@ -4339,6 +4340,7 @@ do -- SET_CLIENT
|
|||||||
local timing = self.ZoneTimerInterval or 30
|
local timing = self.ZoneTimerInterval or 30
|
||||||
self.ZoneTimer:Start(timing,timing)
|
self.ZoneTimer:Start(timing,timing)
|
||||||
end
|
end
|
||||||
|
self:_FilterStart()
|
||||||
end
|
end
|
||||||
|
|
||||||
return self
|
return self
|
||||||
@ -4574,9 +4576,9 @@ do -- SET_CLIENT
|
|||||||
if self.Filter.Callsigns then
|
if self.Filter.Callsigns then
|
||||||
local MClientCallsigns = false
|
local MClientCallsigns = false
|
||||||
local callsign = MClient:GetCallsign()
|
local callsign = MClient:GetCallsign()
|
||||||
--self:T(callsign)
|
--self:I(callsign)
|
||||||
for _,_Callsign in pairs(self.Filter.Callsigns) do
|
for _,_Callsign in pairs(self.Filter.Callsigns) do
|
||||||
if callsign and string.find(callsign,_Callsign) then
|
if callsign and string.find(callsign,_Callsign,1,true) then
|
||||||
MClientCallsigns = true
|
MClientCallsigns = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -286,6 +286,7 @@ SPAWN.Takeoff = {
|
|||||||
Cold = 4,
|
Cold = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
---
|
||||||
-- @type SPAWN.SpawnZoneTable
|
-- @type SPAWN.SpawnZoneTable
|
||||||
-- @list <Core.Zone#ZONE_BASE> SpawnZone
|
-- @list <Core.Zone#ZONE_BASE> SpawnZone
|
||||||
|
|
||||||
|
|||||||
@ -108,7 +108,7 @@
|
|||||||
-- @image Escorting.JPG
|
-- @image Escorting.JPG
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
-- @type ESCORT
|
-- @type ESCORT
|
||||||
-- @extends Core.Base#BASE
|
-- @extends Core.Base#BASE
|
||||||
-- @field Wrapper.Client#CLIENT EscortClient
|
-- @field Wrapper.Client#CLIENT EscortClient
|
||||||
|
|||||||
@ -67,7 +67,7 @@
|
|||||||
-- @module Functional.MissileTrainer
|
-- @module Functional.MissileTrainer
|
||||||
-- @image Missile_Trainer.JPG
|
-- @image Missile_Trainer.JPG
|
||||||
|
|
||||||
|
---
|
||||||
-- @type MISSILETRAINER
|
-- @type MISSILETRAINER
|
||||||
-- @field Core.Set#SET_CLIENT DBClients
|
-- @field Core.Set#SET_CLIENT DBClients
|
||||||
-- @extends Core.Base#BASE
|
-- @extends Core.Base#BASE
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
-- @module Functional.Movement
|
-- @module Functional.Movement
|
||||||
-- @image MOOSE.JPG
|
-- @image MOOSE.JPG
|
||||||
|
|
||||||
|
---
|
||||||
-- @type MOVEMENT
|
-- @type MOVEMENT
|
||||||
-- @extends Core.Base#BASE
|
-- @extends Core.Base#BASE
|
||||||
|
|
||||||
|
|||||||
@ -98,7 +98,7 @@ PLAYERTASK = {
|
|||||||
|
|
||||||
--- PLAYERTASK class version.
|
--- PLAYERTASK class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
PLAYERTASK.version="0.1.19"
|
PLAYERTASK.version="0.1.20"
|
||||||
|
|
||||||
--- Generic task condition.
|
--- Generic task condition.
|
||||||
-- @type PLAYERTASK.Condition
|
-- @type PLAYERTASK.Condition
|
||||||
@ -2195,7 +2195,8 @@ function PLAYERTASKCONTROLLER:_EventHandler(EventData)
|
|||||||
end
|
end
|
||||||
elseif EventData.id == EVENTS.PlayerEnterAircraft and EventData.IniCoalition == self.Coalition then
|
elseif EventData.id == EVENTS.PlayerEnterAircraft and EventData.IniCoalition == self.Coalition then
|
||||||
if EventData.IniPlayerName and EventData.IniGroup then
|
if EventData.IniPlayerName and EventData.IniGroup then
|
||||||
if self.IsClientSet and self.ClientSet:IsNotInSet(CLIENT:FindByName(EventData.IniUnitName)) then
|
--if self.IsClientSet and self.ClientSet:IsNotInSet(CLIENT:FindByName(EventData.IniUnitName)) then
|
||||||
|
if self.IsClientSet and (not self.ClientSet:IsIncludeObject(CLIENT:FindByName(EventData.IniUnitName))) then
|
||||||
self:T(self.lid.."Client not in SET: "..EventData.IniPlayerName)
|
self:T(self.lid.."Client not in SET: "..EventData.IniPlayerName)
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
@ -4064,6 +4065,7 @@ function PLAYERTASKCONTROLLER:onafterStart(From, Event, To)
|
|||||||
self:HandleEvent(EVENTS.Crash, self._EventHandler)
|
self:HandleEvent(EVENTS.Crash, self._EventHandler)
|
||||||
self:HandleEvent(EVENTS.PilotDead, self._EventHandler)
|
self:HandleEvent(EVENTS.PilotDead, self._EventHandler)
|
||||||
self:HandleEvent(EVENTS.PlayerEnterAircraft, self._EventHandler)
|
self:HandleEvent(EVENTS.PlayerEnterAircraft, self._EventHandler)
|
||||||
|
self:SetEventPriority(5)
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -26,6 +26,10 @@
|
|||||||
-- @field #ENUMS
|
-- @field #ENUMS
|
||||||
ENUMS = {}
|
ENUMS = {}
|
||||||
|
|
||||||
|
--- Suppress the error box
|
||||||
|
env.setErrorMessageBoxEnabled( false )
|
||||||
|
|
||||||
|
|
||||||
--- Rules of Engagement.
|
--- Rules of Engagement.
|
||||||
-- @type ENUMS.ROE
|
-- @type ENUMS.ROE
|
||||||
-- @field #number WeaponFree [AIR] AI will engage any enemy group it detects. Target prioritization is based based on the threat of the target.
|
-- @field #number WeaponFree [AIR] AI will engage any enemy group it detects. Target prioritization is based based on the threat of the target.
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
-- @module Utilities.Utils
|
-- @module Utilities.Utils
|
||||||
-- @image MOOSE.JPG
|
-- @image MOOSE.JPG
|
||||||
|
|
||||||
|
---
|
||||||
-- @type SMOKECOLOR
|
-- @type SMOKECOLOR
|
||||||
-- @field Green
|
-- @field Green
|
||||||
-- @field Red
|
-- @field Red
|
||||||
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
SMOKECOLOR = trigger.smokeColor -- #SMOKECOLOR
|
SMOKECOLOR = trigger.smokeColor -- #SMOKECOLOR
|
||||||
|
|
||||||
|
---
|
||||||
-- @type FLARECOLOR
|
-- @type FLARECOLOR
|
||||||
-- @field Green
|
-- @field Green
|
||||||
-- @field Red
|
-- @field Red
|
||||||
|
|||||||
@ -1790,24 +1790,8 @@ end
|
|||||||
-- @return DCS#Task The DCS task structure.
|
-- @return DCS#Task The DCS task structure.
|
||||||
function CONTROLLABLE:EnRouteTaskEngageGroup( AttackGroup, Priority, WeaponType, WeaponExpend, AttackQty, Direction, Altitude, AttackQtyLimit )
|
function CONTROLLABLE:EnRouteTaskEngageGroup( AttackGroup, Priority, WeaponType, WeaponExpend, AttackQty, Direction, Altitude, AttackQtyLimit )
|
||||||
|
|
||||||
-- EngageControllable = {
|
|
||||||
-- id = 'EngageControllable ',
|
|
||||||
-- params = {
|
|
||||||
-- groupId = Group.ID,
|
|
||||||
-- weaponType = number,
|
|
||||||
-- expend = enum AI.Task.WeaponExpend,
|
|
||||||
-- attackQty = number,
|
|
||||||
-- directionEnabled = boolean,
|
|
||||||
-- direction = Azimuth,
|
|
||||||
-- altitudeEnabled = boolean,
|
|
||||||
-- altitude = Distance,
|
|
||||||
-- attackQtyLimit = boolean,
|
|
||||||
-- priority = number,
|
|
||||||
-- }
|
|
||||||
-- }
|
|
||||||
|
|
||||||
local DCSTask = {
|
local DCSTask = {
|
||||||
id = 'EngageControllable',
|
id = 'EngageGroup',
|
||||||
params = {
|
params = {
|
||||||
groupId = AttackGroup:GetID(),
|
groupId = AttackGroup:GetID(),
|
||||||
weaponType = WeaponType,
|
weaponType = WeaponType,
|
||||||
@ -1923,7 +1907,7 @@ end
|
|||||||
function CONTROLLABLE:EnRouteTaskFAC_EngageGroup( AttackGroup, Priority, WeaponType, Designation, Datalink, Frequency, Modulation, CallsignID, CallsignNumber )
|
function CONTROLLABLE:EnRouteTaskFAC_EngageGroup( AttackGroup, Priority, WeaponType, Designation, Datalink, Frequency, Modulation, CallsignID, CallsignNumber )
|
||||||
|
|
||||||
local DCSTask = {
|
local DCSTask = {
|
||||||
id = 'FAC_EngageControllable',
|
id = 'FAC_EngageGroup',
|
||||||
params = {
|
params = {
|
||||||
groupId = AttackGroup:GetID(),
|
groupId = AttackGroup:GetID(),
|
||||||
weaponType = WeaponType or "Auto",
|
weaponType = WeaponType or "Auto",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user