From 4bb9073ce15782b4a379031cd4d9cbfa171faad0 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 20 Jul 2022 22:20:26 +0200 Subject: [PATCH] OPS - Increased selection score for GCICAP/INTERCEPT --- Moose Development/Moose/Ops/Chief.lua | 29 +++++++++++++++++++++++++- Moose Development/Moose/Ops/Legion.lua | 4 ++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/Ops/Chief.lua b/Moose Development/Moose/Ops/Chief.lua index e602a1831..53f54a891 100644 --- a/Moose Development/Moose/Ops/Chief.lua +++ b/Moose Development/Moose/Ops/Chief.lua @@ -120,6 +120,33 @@ -- -- 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 -- @@ -287,7 +314,7 @@ CHIEF.Strategy = { --- CHIEF class version. -- @field #string version -CHIEF.version="0.3.1" +CHIEF.version="0.4.0" ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -- TODO list diff --git a/Moose Development/Moose/Ops/Legion.lua b/Moose Development/Moose/Ops/Legion.lua index e5c0056e7..01e35dc3b 100644 --- a/Moose Development/Moose/Ops/Legion.lua +++ b/Moose Development/Moose/Ops/Legion.lua @@ -2806,8 +2806,8 @@ function LEGION.CalculateAssetMissionScore(asset, MissionType, TargetVec2, Inclu -- Prefer assets that are on ALERT5 for this mission type. score=score+25 elseif currmission.type==AUFTRAG.Type.GCICAP and MissionType==AUFTRAG.Type.INTERCEPT then - -- Prefer assets that are on GCICAP to perform INTERCEPTS - score=score+25 + -- 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+35 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 elseif currmission.type==AUFTRAG.Type.NOTHING then