diff --git a/Functional/Mantis/MTS-410 - MANTIS - Automode Zones/MTS-410 - MANTIS - Automode Zones.lua b/Functional/Mantis/MTS-410 - MANTIS - Automode Zones/MTS-410 - MANTIS - Automode Zones.lua index ae3c86f94a..36004db233 100644 --- a/Functional/Mantis/MTS-410 - MANTIS - Automode Zones/MTS-410 - MANTIS - Automode Zones.lua +++ b/Functional/Mantis/MTS-410 - MANTIS - Automode Zones/MTS-410 - MANTIS - Automode Zones.lua @@ -7,8 +7,9 @@ -- ------------------------------------------------------------------------- -- Observe a set of SAM sites being attacked by F16 SEAD. Red SAMs will --- go active once the F16s have passed the red border and the DMZ. +-- go active once the F16s have passed the red border AND the DMZ. -- The SAM network and the SHORAD are managed by MANTIS. +-- The SHORAD will scoot around between the zones on the map. ------------------------------------------------------------------------- -- Date: 13 Nov 2021 @@ -17,6 +18,10 @@ local blueborder = ZONE_POLYGON:New("BlueBorder",GROUP:FindByName("Blue Border") local redborder = ZONE_POLYGON:New("RedBorder",GROUP:FindByName("Red Border")) local dmz = ZONE:New("DMZ") +redborder:DrawZone(-1,{1,0,0},1,{1,0,0},.1,1,true) +blueborder:DrawZone(-1,{0,0,1},1,{0,0,1},.1,1,true) +dmz:DrawZone(-1,{0,1,0},1,{0,1,0},.1,1,true) + -- MANTIS local RedMantis = MANTIS:New("RedMantis","Red SAM","Red EWR",nil,"red",nil,nil,true) RedMantis:SetDetectInterval(30) @@ -24,16 +29,21 @@ RedMantis:AddZones({redborder},{blueborder,dmz}) --accept and reject zones RedMantis:SetSAMRange(90) RedMantis.verbose = false RedMantis:Debug(false) + +-- Scoot and Shoot +local ZoneSet = SET_ZONE:New():FilterPrefixes("Zone"):FilterOnce() +RedMantis:AddScootZones(ZoneSet,3) + RedMantis:__Start(5) function RedMantis:OnAfterSeadSuppressionPlanned(From, Event, To, Group, Name, SuppressionStartTime, SuppressionEndTime) -MESSAGE:New("SAM Suppression planned! "..Name.. " is planning to shut down.",10):ToAll() -env.info("SAM Suppression planned! "..Name.. " is planning to shut down.") + MESSAGE:New("SAM Suppression planned! "..Name.. " is planning to shut down.",10):ToAll() + env.info("SAM Suppression planned! "..Name.. " is planning to shut down.") end function RedMantis:OnAfterSeadSuppressionStart(From, Event, To, Group, Name) -MESSAGE:New("SAM Suppressed! "..Name.. " is suppressed.",10):ToAll() -env.info("SAM Suppressed! "..Name.. "is suppressed!" ) + MESSAGE:New("SAM Suppressed! "..Name.. " is suppressed.",10):ToAll() + env.info("SAM Suppressed! "..Name.. "is suppressed!" ) end function RedMantis:OnAfterRedState(From,Event,To,Group) diff --git a/Functional/Mantis/MTS-410 - MANTIS - Automode Zones/MTS-410 - MANTIS - Automode Zones.miz b/Functional/Mantis/MTS-410 - MANTIS - Automode Zones/MTS-410 - MANTIS - Automode Zones.miz index 0498093ac5..a3a939f9ad 100644 Binary files a/Functional/Mantis/MTS-410 - MANTIS - Automode Zones/MTS-410 - MANTIS - Automode Zones.miz and b/Functional/Mantis/MTS-410 - MANTIS - Automode Zones/MTS-410 - MANTIS - Automode Zones.miz differ