mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#EasyGCICAP
* Docu additions
This commit is contained in:
parent
98a11a8aad
commit
d6e3caaa9b
@ -166,6 +166,11 @@
|
|||||||
-- * @{#EASYGCICAP.SetDefaultRepeatOnFailure}: Set max repeats on failure for intercepting/killing intruders, defaults to 3.
|
-- * @{#EASYGCICAP.SetDefaultRepeatOnFailure}: Set max repeats on failure for intercepting/killing intruders, defaults to 3.
|
||||||
-- * @{#EASYGCICAP.SetTankerAndAWACSInvisible}: Set Tanker and AWACS to be invisible to enemy AI eyes. Is set to `true` by default.
|
-- * @{#EASYGCICAP.SetTankerAndAWACSInvisible}: Set Tanker and AWACS to be invisible to enemy AI eyes. Is set to `true` by default.
|
||||||
--
|
--
|
||||||
|
-- ## Debug and Monitor
|
||||||
|
--
|
||||||
|
-- mywing.debug = true -- log information
|
||||||
|
-- mywing.Monitor = true -- show some statistics on screen
|
||||||
|
--
|
||||||
--
|
--
|
||||||
-- @field #EASYGCICAP
|
-- @field #EASYGCICAP
|
||||||
EASYGCICAP = {
|
EASYGCICAP = {
|
||||||
@ -1127,20 +1132,24 @@ function EASYGCICAP:onafterStatus(From,Event,To)
|
|||||||
local caps = counttable(self.ManagedCP)
|
local caps = counttable(self.ManagedCP)
|
||||||
local assets = 0
|
local assets = 0
|
||||||
local instock = 0
|
local instock = 0
|
||||||
|
local capmission = 0
|
||||||
|
local interceptmission = 0
|
||||||
for _,_wing in pairs(self.wings) do
|
for _,_wing in pairs(self.wings) do
|
||||||
local count = _wing[1]:CountAssetsOnMission(MissionTypes,Cohort)
|
local count = _wing[1]:CountAssetsOnMission(MissionTypes,Cohort)
|
||||||
local count2 = _wing[1]:CountAssets(true,MissionTypes,Attributes)
|
local count2 = _wing[1]:CountAssets(true,MissionTypes,Attributes)
|
||||||
|
capmission = capmission + _wing[1]:CountMissionsInQueue({AUFTRAG.Type.GCICAP})
|
||||||
|
interceptmission = interceptmission + _wing[1]:CountMissionsInQueue({AUFTRAG.Type.INTERCEPT})
|
||||||
assets = assets + count
|
assets = assets + count
|
||||||
instock = instock + count2
|
instock = instock + count2
|
||||||
end
|
end
|
||||||
if self.debug then
|
|
||||||
self:I(self.lid.."Wings: "..wings.." | Squads: "..squads.." | CapPoints: "..caps.." | Assets on Mission: "..assets.." | Assets in Stock: "..instock)
|
|
||||||
end
|
|
||||||
if self.Monitor then
|
if self.Monitor then
|
||||||
local threatcount = #self.Intel.Clusters or 0
|
local threatcount = #self.Intel.Clusters or 0
|
||||||
local text = "GCICAP "..self.alias
|
local text = "GCICAP "..self.alias
|
||||||
text = text.."\nWings: "..wings.."\nSquads: "..squads.."\nCapPoints: "..caps.."\nAssets on Mission: "..assets.."\nAssets in Stock: "..instock
|
text = text.."\nWings: "..wings.."\nSquads: "..squads.."\nCapPoints: "..caps.."\nAssets on Mission: "..assets.."\nAssets in Stock: "..instock
|
||||||
text = text.."\nThreats: "..threatcount
|
text = text.."\nThreats: "..threatcount
|
||||||
|
text = text.."\Missions: "..capmission+interceptmission
|
||||||
|
text = text.."\ - CAP: "..capmission
|
||||||
|
text = text.."\ - Intercept: "..interceptmission
|
||||||
MESSAGE:New(text,15,"GCICAP"):ToAll():ToLogIf(self.debug)
|
MESSAGE:New(text,15,"GCICAP"):ToAll():ToLogIf(self.debug)
|
||||||
end
|
end
|
||||||
self:__Status(30)
|
self:__Status(30)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user