MOOSE demonstration missions [skip ci]

This commit is contained in:
FlightControl-User
2018-10-01 18:44:50 +00:00
parent b6bed564ce
commit 575bb2b11a
331 changed files with 104 additions and 5 deletions

View File

@@ -0,0 +1,36 @@
---
-- Name: TAD-CGO-011 - CSAR - Zone
-- Author: FlightControl
-- Date Created: 01 Oct 2018
--
-- # Situation:
--
-- This mission demonstrates the dynamic task dispatching for cargo CSAR operations.
-- It will only spawn pilots for rescue when the pilots eject in the zones indicated.
HQ = GROUP:FindByName( "HQ", "Bravo" )
CommandCenter = COMMANDCENTER
:New( HQ, "Lima" )
Mission = MISSION
:New( CommandCenter, "CSAR Missions", "Tactical", "Rescue downed pilots.", coalition.side.RED )
AttackGroups = SET_GROUP:New():FilterCoalitions( "red" ):FilterPrefixes( "Rescue" ):FilterStart()
TaskDispatcher = TASK_CARGO_DISPATCHER:New( Mission, AttackGroups )
TaskDispatcher:SetCSARZones( SET_ZONE:New():FilterPrefixes("CSAR"):FilterOnce() )
TaskDispatcher:StartCSARTasks(
"CSAR",
{ ZONE_UNIT:New( "Hospital", STATIC:FindByName( "Hospital" ), 100 ) },
"One of our pilots has ejected. Go out to Search and Rescue our pilot!\n" ..
"Use the radio menu to let the command center assist you with the CSAR tasking."
)
function TaskDispatcher:OnAfterCargoDeployed( From, Event, To, Task, TaskPrefix, TaskUnit, Cargo, DeployZone )
MESSAGE:NewType( "Unit " .. TaskUnit:GetName().. " has deployed cargo " .. Cargo:GetName() .. " at zone " .. DeployZone:GetName() .. " for task " .. Task:GetName() .. ".", MESSAGE.Type.Information ):ToAll()
end

View File

@@ -0,0 +1,36 @@
---
-- Name: TAD-CGO-012 - CSAR - Maximum
-- Author: FlightControl
-- Date Created: 01 Oct 2018
--
-- # Situation:
--
-- This mission demonstrates the dynamic task dispatching for cargo CSAR operations.
-- It will only spawn 5 pilots for rescue when the pilots eject.
HQ = GROUP:FindByName( "HQ", "Bravo" )
CommandCenter = COMMANDCENTER
:New( HQ, "Lima" )
Mission = MISSION
:New( CommandCenter, "CSAR Missions", "Tactical", "Rescue downed pilots.", coalition.side.RED )
AttackGroups = SET_GROUP:New():FilterCoalitions( "red" ):FilterPrefixes( "Rescue" ):FilterStart()
TaskDispatcher = TASK_CARGO_DISPATCHER:New( Mission, AttackGroups )
TaskDispatcher:SetMaxCSAR( 5 )
TaskDispatcher:StartCSARTasks(
"CSAR",
{ ZONE_UNIT:New( "Hospital", STATIC:FindByName( "Hospital" ), 100 ) },
"One of our pilots has ejected. Go out to Search and Rescue our pilot!\n" ..
"Use the radio menu to let the command center assist you with the CSAR tasking."
)
function TaskDispatcher:OnAfterCargoDeployed( From, Event, To, Task, TaskPrefix, TaskUnit, Cargo, DeployZone )
MESSAGE:NewType( "Unit " .. TaskUnit:GetName().. " has deployed cargo " .. Cargo:GetName() .. " at zone " .. DeployZone:GetName() .. " for task " .. Task:GetName() .. ".", MESSAGE.Type.Information ):ToAll()
end