mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
Next step of folder restructure
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories( { "plane", "ship" } ):FilterCoalitions( "red" ):FilterPrefixes( { "Escort", "Ship Defense" } ):FilterStart()
|
||||
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local Escort = AI_ESCORT:New( LeaderUnit, FollowGroupSet, "Escort Attack", "Briefing" )
|
||||
Escort:FormationTrail( 750, 750 , 0 )
|
||||
Escort:MenusAirplanes()
|
||||
Escort:__Start( 1 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories( { "plane", "ship" } ):FilterCoalitions( "red" ):FilterPrefixes( { "Escort", "Ship Defense" } ):FilterStart()
|
||||
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local Escort = AI_ESCORT:New( LeaderUnit, FollowGroupSet, "Escort Attack", "Briefing" )
|
||||
Escort:FormationTrail( 750, 750 , 0 )
|
||||
Escort:MenusAirplanes()
|
||||
Escort:__Start( 5 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories( { "plane" } ):FilterCoalitions( "blue" ):FilterPrefixes( { "Escort" } ):FilterStart()
|
||||
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local Escort = AI_ESCORT:New( LeaderUnit, FollowGroupSet, "Escort Attack", "Briefing" )
|
||||
Escort:FormationTrail( 100, 100 , 0 )
|
||||
Escort:MenusAirplanes()
|
||||
Escort:__Start( 5 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories( { "plane" } ):FilterCoalitions( "blue" ):FilterPrefixes( { "Escort" } ):FilterStart()
|
||||
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local Escort = AI_ESCORT:New( LeaderUnit, FollowGroupSet, "Escort Attack", "Briefing" )
|
||||
Escort:FormationTrail( 100, 100 , 0 )
|
||||
Escort:MenusAirplanes()
|
||||
Escort:__Start( 5 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories( { "helicopter" } ):FilterCoalitions( "blue" ):FilterPrefixes( { "Escort" } ):FilterStart()
|
||||
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local Escort = AI_ESCORT:New( LeaderUnit, FollowGroupSet, "Escort Attack", "Briefing" )
|
||||
Escort:FormationTrail( 100, 100 , 0 )
|
||||
Escort:MenusHelicopters()
|
||||
Escort:__Start( 5 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories( { "helicopter" } ):FilterCoalitions( "blue" ):FilterPrefixes( { "Escort" } ):FilterStart()
|
||||
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local Escort = AI_ESCORT:New( LeaderUnit, FollowGroupSet, "Escort Test", "Use the ROE and ROT menus to test if the behaviour is working." )
|
||||
|
||||
Escort:SetFlightModeMission()
|
||||
|
||||
Escort:MenusHelicopters()
|
||||
Escort:__Start( 5 )
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
-- At startup of the overall mission, we spawn 10 possible escort planes in "Uncontrolled" state.
|
||||
|
||||
EscortSpawn = SPAWN:NewWithAlias( "Red A2G Escort Template", "Red A2G Escort AI" ):InitLimit( 10, 10 )
|
||||
EscortSpawn:ParkAtAirbase( AIRBASE:FindByName( AIRBASE.Caucasus.Sochi_Adler ), AIRBASE.TerminalType.OpenBig )
|
||||
|
||||
|
||||
local EscortUnit = UNIT:FindByName( "Red A2G Pilot" )
|
||||
|
||||
Escort = AI_ESCORT_REQUEST:New( EscortUnit, EscortSpawn, AIRBASE:FindByName(AIRBASE.Caucasus.Sochi_Adler), "A2G", "Briefing" )
|
||||
Escort:FormationTrail( 50, 100, 100 )
|
||||
Escort:Menus( 50, 50, 0, 0, 50, 50, 6 )
|
||||
Escort:__Start( 5 )
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
-- At startup of the overall mission, we spawn 10 possible escort planes in "Uncontrolled" state.
|
||||
|
||||
EscortSpawn = SPAWN:NewWithAlias( "Red A2G Escort Template", "Red A2G Escort AI" ):InitLimit( 10, 10 )
|
||||
EscortSpawn:ParkAtAirbase( AIRBASE:FindByName( AIRBASE.Caucasus.Sochi_Adler ), AIRBASE.TerminalType.OpenBig )
|
||||
|
||||
|
||||
local EscortUnit = UNIT:FindByName( "Red A2G Pilot" )
|
||||
|
||||
Escort = AI_ESCORT_REQUEST:New( EscortUnit, EscortSpawn, AIRBASE:FindByName(AIRBASE.Caucasus.Sochi_Adler), "A2G", "Briefing" )
|
||||
Escort:FormationTrail( 50, 100, 100 )
|
||||
Escort:MenusAirplanes( 50, 50, 0, 0, 50, 50, 6 )
|
||||
Escort:__Start( 5 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,14 @@
|
||||
-- At startup of the overall mission, we spawn 10 possible escort planes in "Uncontrolled" state.
|
||||
|
||||
EscortSpawn = SPAWN:NewWithAlias( "Red A2G Escort Template", "Red A2G Escort AI" ):InitLimit( 10, 10 )
|
||||
EscortSpawn:ParkAtAirbase( AIRBASE:FindByName( AIRBASE.Caucasus.Sochi_Adler ), AIRBASE.TerminalType.OpenBig )
|
||||
|
||||
|
||||
local EscortUnit = UNIT:FindByName( "Red A2G Pilot" )
|
||||
|
||||
Escort = AI_ESCORT_REQUEST:New( EscortUnit, EscortSpawn, AIRBASE:FindByName(AIRBASE.Caucasus.Sochi_Adler), "A2G", "Briefing" )
|
||||
Escort:FormationTrail( 50, 100, 100 )
|
||||
Escort:MenusAirplanes( 50, 50, 0, 0, 50, 50, 6 )
|
||||
Escort:SetEscortSpawnMission()
|
||||
Escort:__Start( 5 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,51 @@
|
||||
-- At startup of the overall mission, we spawn 10 possible escort planes in "Uncontrolled" state.
|
||||
|
||||
HQ = GROUP:FindByName( "HQ", "Bravo" )
|
||||
|
||||
CommandCenter = COMMANDCENTER
|
||||
:New( HQ, "HQ" )
|
||||
|
||||
Mission = MISSION
|
||||
:New( CommandCenter, "Rescue Operation", "Tactical", "Transport General Mc. Connor!", coalition.side.BLUE )
|
||||
|
||||
TransportGroups = SET_GROUP:New():FilterCoalitions( "blue" ):FilterPrefixes( "Transport" ):FilterStart()
|
||||
TaskDispatcher = TASK_CARGO_DISPATCHER:New( Mission, TransportGroups )
|
||||
TaskDispatcher:SetDefaultDeployZone( ZONE:New( "HeadQuarter" ) )
|
||||
|
||||
local CargoSet = SET_CARGO:New():FilterTypes( "General" ):FilterStart()
|
||||
WorkplaceTask = TaskDispatcher:AddTransportTask( "Transport Team", CargoSet, "Rescue the general and transport him to the HeadQuarter (near the airbase Gudauta)." )
|
||||
|
||||
EscortSpawn = SPAWN:NewWithAlias( "Blue A2G Escort Template" ):InitLimit( 6, 6 )
|
||||
EscortSpawn:ParkAtAirbase( AIRBASE:FindByName( AIRBASE.Caucasus.Gudauta ), AIRBASE.TerminalType.OpenMedOrBig )
|
||||
|
||||
|
||||
|
||||
local EscortUnit = UNIT:FindByName( "Transport" )
|
||||
|
||||
Escort = AI_ESCORT_REQUEST:New( EscortUnit, EscortSpawn, AIRBASE:FindByName(AIRBASE.Caucasus.Gudauta), "A2G", "Rescue the engineer from the village Lesselide near the station. Beware of enemy air defenses. Use the escorts wisely." )
|
||||
Escort:FormationTrail( 50, 100, 100 )
|
||||
|
||||
Escort:SetEscortSpawnMission()
|
||||
|
||||
Escort:MenuJoinUp()
|
||||
|
||||
Escort:MenuFormationTrail( 50, 50, 0 )
|
||||
Escort:MenuFormationLeftLine( 0, 0, 50, 50 )
|
||||
Escort:MenuFormationRightLine( 0, 0, 50, 50 )
|
||||
|
||||
|
||||
Escort:MenuHoldAtEscortPosition( 30, 0 )
|
||||
Escort:MenuHoldAtEscortPosition( 100, 0 )
|
||||
Escort:MenuHoldAtLeaderPosition( 30, 0 )
|
||||
Escort:MenuHoldAtLeaderPosition( 100, 0 )
|
||||
|
||||
Escort:MenuFlare()
|
||||
Escort:MenuSmoke()
|
||||
|
||||
Escort:MenuTargets( 60 )
|
||||
Escort:MenuROE()
|
||||
Escort:MenuROT()
|
||||
|
||||
Escort:__Start( 5 )
|
||||
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories("plane"):FilterCoalitions("blue"):FilterPrefixes("Follow"):FilterStart()
|
||||
FollowGroupSet:Flush()
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local LargeFormation = AI_FORMATION:New( LeaderUnit, FollowGroupSet, "Left Line Formation", "Briefing" ):TestSmokeDirectionVector(true)
|
||||
LargeFormation:FormationLeftLine( 500, 0, 250, 0 )
|
||||
LargeFormation:__Start( 1 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories("plane"):FilterCoalitions("blue"):FilterPrefixes("Follow"):FilterStart()
|
||||
FollowGroupSet:Flush()
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local LargeFormation = AI_FORMATION:New( LeaderUnit, FollowGroupSet, "Left Line Formation", "Briefing" )
|
||||
LargeFormation:FormationLeftLine( 0, 0, 250, 250 )
|
||||
LargeFormation:__Start( 1 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories("plane"):FilterCoalitions("blue"):FilterPrefixes("Follow"):FilterStart()
|
||||
FollowGroupSet:Flush()
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local LargeFormation = AI_FORMATION:New( LeaderUnit, FollowGroupSet, "Right Line Formation", "Briefing" )
|
||||
LargeFormation:FormationRightLine(500,0,250,250)
|
||||
LargeFormation:__Start( 1 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories("plane"):FilterCoalitions("blue"):FilterPrefixes("Follow"):FilterStart()
|
||||
FollowGroupSet:Flush()
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local LargeFormation = AI_FORMATION:New( LeaderUnit, FollowGroupSet, "Left Wing Formation", "Briefing" )
|
||||
LargeFormation:FormationLeftWing( 500, 50, 0, 250, 250 )
|
||||
LargeFormation:__Start( 1 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories("plane"):FilterCoalitions("blue"):FilterPrefixes("Follow"):FilterStart()
|
||||
FollowGroupSet:Flush()
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local LargeFormation = AI_FORMATION:New( LeaderUnit, FollowGroupSet, "Right Wing Formation", "Briefing" )
|
||||
LargeFormation:FormationRightWing( 100, 50, 0, 500, 500 )
|
||||
LargeFormation:__Start( 1 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories("plane"):FilterCoalitions("blue"):FilterPrefixes("Follow"):FilterStart()
|
||||
FollowGroupSet:Flush()
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local LargeFormation = AI_FORMATION:New( LeaderUnit, FollowGroupSet, "Center Wing Formation", "Briefing" )
|
||||
LargeFormation:FormationCenterWing( 500, 50, 0, 0, 250, 250 )
|
||||
LargeFormation:__Start( 1 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories("plane"):FilterCoalitions("blue"):FilterPrefixes("Follow"):FilterStart()
|
||||
FollowGroupSet:Flush()
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local LargeFormation = AI_FORMATION:New( LeaderUnit, FollowGroupSet, "Trail Formation", "Briefing" )
|
||||
LargeFormation:FormationTrail( 250, 750 , 0 )
|
||||
LargeFormation:__Start( 1 )
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
|
||||
local FollowGroupSet = SET_GROUP:New():FilterCategories("plane"):FilterCoalitions("blue"):FilterPrefixes("Follow"):FilterStart()
|
||||
FollowGroupSet:Flush()
|
||||
local LeaderUnit = UNIT:FindByName( "Leader" )
|
||||
local LargeFormation = AI_FORMATION:New( LeaderUnit, FollowGroupSet, "Trail Formation", "Briefing" )
|
||||
LargeFormation:FormationBox(150,120,0,-5,0,60,8)
|
||||
LargeFormation:__Start( 1 )
|
||||
|
||||
collectgarbage()
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user