mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
MOOSE demonstration missions [skip ci]
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,25 @@
|
||||
-------------------------------------------------------------------------
|
||||
-- SRD-100 - SHORAD - Basic Demo
|
||||
-------------------------------------------------------------------------
|
||||
-- Documentation
|
||||
--
|
||||
-- SHORAD: https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/tbd
|
||||
--
|
||||
-- Note: As of Feb/21, SHORAD is WIP. Needs a recent build of Moose.lua => 2.5.3
|
||||
--
|
||||
-------------------------------------------------------------------------
|
||||
-- Observe a set of Red SAM sites being attacked by Blue SEAD and Helicopters.
|
||||
-- Red SHORAD systems will be switched on for 10 minutes to defend against
|
||||
-- HARMSs and AGMs.
|
||||
-- Red SAMs will try to evade HARMs fired at them.
|
||||
-------------------------------------------------------------------------
|
||||
-- Date: 16 Feb 2021
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
local SamSet = SET_GROUP:New():FilterPrefixes("Blue SAM"):FilterCoalitions("blue"):FilterStart()
|
||||
-- usage: SHORAD:New(name, prefix, samset, radius, time, coalition)
|
||||
myshorad = SHORAD:New("BlueShorad", "Blue SHORAD", SamSet, 22000, 600, "blue")
|
||||
myshorad:SwitchDebug(true)
|
||||
|
||||
-- optional - make SAMs evasive (that is, if they can move)
|
||||
mysead = SEAD:New("Blue SAM")
|
||||
Binary file not shown.
@@ -0,0 +1,26 @@
|
||||
-------------------------------------------------------------------------
|
||||
-- SRD-110 - SHORAD - Integrate with Mantis
|
||||
-------------------------------------------------------------------------
|
||||
-- Documentation
|
||||
--
|
||||
-- SHORAD: https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/tbd
|
||||
--
|
||||
-- Note: As of Feb/21, SHORAD is WIP. Needs a recent build of Moose.lua => 2.5.3
|
||||
--
|
||||
-------------------------------------------------------------------------
|
||||
-- Observe a set of Red SAM sites being attacked by Blue SEAD and Helicopters.
|
||||
-- Red SHORAD systems will be switched on for 10 minutes to defend against
|
||||
-- HARMSs and AGMs.
|
||||
-- Red SAMs will try to evade HARMs fired at them.
|
||||
-------------------------------------------------------------------------
|
||||
-- Date: 16 Feb 2021
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
local SamSet = SET_GROUP:New():FilterPrefixes("Blue SAM"):FilterCoalitions("blue"):FilterStart()
|
||||
-- usage: SHORAD:New(name, prefix, samset, radius, time, coalition)
|
||||
myshorad = SHORAD:New("BlueShorad", "Blue SHORAD", SamSet, 22000, 600, "blue")
|
||||
myshorad:SwitchDebug(true)
|
||||
|
||||
mymantis = MANTIS:New("BlueMantis","Blue SAM","Blue EWR",nil,"blue",false,"Blue Awacs")
|
||||
mymantis:AddShorad(myshorad,720)
|
||||
mymantis:Start()
|
||||
Binary file not shown.
@@ -0,0 +1,36 @@
|
||||
-------------------------------------------------------------------------
|
||||
-- SRD-120 - SHORAD - Integrate with Detection
|
||||
-------------------------------------------------------------------------
|
||||
-- Documentation
|
||||
--
|
||||
-- SHORAD: https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/Functional.Shorad.html
|
||||
--
|
||||
-- Note: As of Feb/21, SHORAD is WIP. Needs a recent build of Moose.lua => 2.5.3
|
||||
--
|
||||
-------------------------------------------------------------------------
|
||||
-- Observe a set Red High-Value-Target (HVT) being attacked by Blue CAS.
|
||||
-- Red SHORAD systems will be switched on for 10 minutes to defend against
|
||||
-- HARMSs and AGMs.
|
||||
-------------------------------------------------------------------------
|
||||
-- Date: 17 Feb 2021
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
local SamSet = SET_GROUP:New():FilterPrefixes("Red HVT"):FilterCoalitions("red"):FilterStart()
|
||||
-- usage: SHORAD:New(name, prefix, samset, radius, time, coalition)
|
||||
myshorad = SHORAD:New("RedShorad", "Red SHORAD", SamSet, 22000, 600, "red")
|
||||
myshorad:SwitchDebug(true)
|
||||
|
||||
local dectset = SET_GROUP:New():FilterPrefixes("Red EWR"):FilterCoalitions("red"):FilterStart()
|
||||
local detection = DETECTION_AREAS:New(dectset,1000)
|
||||
detection:SetRefreshTimeInterval(15)
|
||||
detection:SetAcceptZones(ZONE:New("Red HVT Zone")) -- defense zone around our HVT
|
||||
detection:Start()
|
||||
|
||||
-- wake up SHORAD when we detect an attacker
|
||||
function detection:OnAfterDetected(From,Event,To,Units)
|
||||
for _,_unit in pairs (Units) do
|
||||
local text = string.format("Unit detected: %s",_unit:GetName())
|
||||
local m = MESSAGE:New(text,10,"Info"):ToAll()
|
||||
end
|
||||
myshorad:WakeUpShorad("Red SHORAD", 25000, 600)
|
||||
end
|
||||
Reference in New Issue
Block a user