mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
COMMANDCENTER class added, Event handlers added, HQs working with missions
- Handling menus - Reporting missions - ...
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
|
||||
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
|
||||
|
||||
local CommandCenter = COMMANDCENTER:New( HQ )
|
||||
|
||||
local Scoring = SCORING:New( "Detect Demo" )
|
||||
|
||||
local Mission = MISSION:New( "Attack Detect Mission", "High", "Attack Detect Mission Briefing", coalition.side.RED ):AddScoring( Scoring )
|
||||
local Mission = MISSION:New( CommandCenter, "Overlord", "High", "Attack Detect Mission Briefing", coalition.side.RED ):AddScoring( Scoring )
|
||||
|
||||
local FACSet = SET_GROUP:New():FilterPrefixes( "FAC" ):FilterCoalitions("red"):FilterStart()
|
||||
local FACDetection = DETECTION_AREAS:New( FACSet, 10000, 3000 )
|
||||
|
||||
local AttackGroups = SET_GROUP:New():FilterCoalitions( "red" ):FilterPrefixes( "Attack" ):FilterStart()
|
||||
local CommandCenter = GROUP:FindByName( "HQ" )
|
||||
local TaskAssign = DETECTION_DISPATCHER:New( Mission, CommandCenter, AttackGroups, FACDetection )
|
||||
local TaskAssign = DETECTION_DISPATCHER:New( Mission, HQ, AttackGroups, FACDetection )
|
||||
|
||||
|
||||
Binary file not shown.
@@ -8,7 +8,9 @@ end
|
||||
|
||||
collectgarbage()
|
||||
|
||||
local Mission = MISSION:New( 'SEAD Targets', "Strategic", "SEAD the enemy", coalition.side.RED )
|
||||
local HQ = COMMANDCENTER:New( GROUP:FindByName( "HQ" ) )
|
||||
|
||||
local Mission = MISSION:New( HQ, 'SEAD Targets', "Strategic", "SEAD the enemy", coalition.side.RED )
|
||||
local Scoring = SCORING:New( "SEAD" )
|
||||
|
||||
Mission:AddScoring( Scoring )
|
||||
@@ -43,7 +45,4 @@ function FsmSEAD:onenterUpdated( TaskUnit )
|
||||
self:Smoke()
|
||||
end
|
||||
|
||||
-- Needs to be checked, should not be necessary ...
|
||||
TaskSEAD:AssignToGroup( SEADSet:Get( "Test SEAD" ) )
|
||||
|
||||
Mission:AddTask( TaskSEAD )
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user