- Increased selection score for GCICAP/INTERCEPT
This commit is contained in:
Frank 2022-07-20 22:20:26 +02:00
parent e551212516
commit 4bb9073ce1
2 changed files with 30 additions and 3 deletions

View File

@ -120,6 +120,33 @@
-- --
-- Fleets can be added via the @{#CHIEF.AddFleet}() function. -- Fleets can be added via the @{#CHIEF.AddFleet}() function.
-- --
-- ## Response on Target
--
-- When the chief detects a valid target, he will launch a certain number of selected assets. Only whole groups from SQUADRONs, PLATOONs or FLOTILLAs can be selected.
-- In other words, it is not possible to specify the abount of individual *units*.
--
-- By default, one group is selected for any detected target. This can, however, be customized with the @{CHIEF.SetResponseOnTarget}() function. The number of min and max
-- asset groups can be specified depending on threatlevel, category, mission type, number of units, defcon and strategy.
--
-- For example:
--
-- -- One group for aircraft targets of threat level 0 or higher.
-- myChief:SetResponseOnTarget(1, 1, 0, TARGET.Category.AIRCRAFT)
-- -- At least one and up to two groups for aircraft targets of threat level 8 or higher. This will overrule the previous response!
-- myChief:SetResponseOnTarget(1, 2, 8, TARGET.Category.AIRCRAFT)
--
-- -- At least one and up to three groups for ground targets of threat level 0 or higher if current strategy is aggressive.
-- myChief:SetResponseOnTarget(1, 1, 0, TARGET.Category.GROUND, nil ,nil, nil, CHIEF.Strategy.DEFENSIVE)
--
-- -- One group for BAI missions if current defcon is green.
-- myChief:SetResponseOnTarget(1, 1, 0, nil, AUFTRAG.Type.BAI, nil, CHIEF.DEFCON.GREEN)
--
-- -- At least one and up to four groups for BAI missions if current defcon is red.
-- myChief:SetResponseOnTarget(1, 2, 0, nil, AUFTRAG.Type.BAI, nil, CHIEF.DEFCON.YELLOW)
--
-- -- At least one and up to four groups for BAI missions if current defcon is red.
-- myChief:SetResponseOnTarget(1, 3, 0, nil, AUFTRAG.Type.BAI, nil, CHIEF.DEFCON.RED)
--
-- --
-- # Strategic (Capture) Zones -- # Strategic (Capture) Zones
-- --
@ -287,7 +314,7 @@ CHIEF.Strategy = {
--- CHIEF class version. --- CHIEF class version.
-- @field #string version -- @field #string version
CHIEF.version="0.3.1" CHIEF.version="0.4.0"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- TODO list -- TODO list

View File

@ -2806,8 +2806,8 @@ function LEGION.CalculateAssetMissionScore(asset, MissionType, TargetVec2, Inclu
-- Prefer assets that are on ALERT5 for this mission type. -- Prefer assets that are on ALERT5 for this mission type.
score=score+25 score=score+25
elseif currmission.type==AUFTRAG.Type.GCICAP and MissionType==AUFTRAG.Type.INTERCEPT then elseif currmission.type==AUFTRAG.Type.GCICAP and MissionType==AUFTRAG.Type.INTERCEPT then
-- Prefer assets that are on GCICAP to perform INTERCEPTS -- Prefer assets that are on GCICAP to perform INTERCEPTS. We set this even higher than alert5 because they are already in the air.
score=score+25 score=score+35
elseif (currmission.type==AUFTRAG.Type.ONGUARD or currmission.type==AUFTRAG.Type.PATROLZONE) and (MissionType==AUFTRAG.Type.ARTY or MissionType==AUFTRAG.Type.GROUNDATTACK) then elseif (currmission.type==AUFTRAG.Type.ONGUARD or currmission.type==AUFTRAG.Type.PATROLZONE) and (MissionType==AUFTRAG.Type.ARTY or MissionType==AUFTRAG.Type.GROUNDATTACK) then
score=score+25 score=score+25
elseif currmission.type==AUFTRAG.Type.NOTHING then elseif currmission.type==AUFTRAG.Type.NOTHING then