mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
A working escort function for helicopters, first version
This commit is contained in:
Binary file not shown.
@@ -1,18 +1,27 @@
|
||||
Include.File( "Mission" )
|
||||
Include.File( "Client" )
|
||||
Include.File( "Spawn" )
|
||||
Include.File( "Escort" )
|
||||
|
||||
|
||||
do
|
||||
|
||||
local function EventAliveHelicopter( Client )
|
||||
local EscortGroupHeli = GROUP:NewFromName( "Escort Helicopter" )
|
||||
local EscortHeli = ESCORT:New( Client, EscortGroupHeli, "Escort Test Helicopter" )
|
||||
local SpawnEscortHeli = SPAWN:New( "Escort Helicopter" )
|
||||
local EscortGroupHeli1 = SpawnEscortHeli:Spawn()
|
||||
local EscortGroupHeli2 = SpawnEscortHeli:Spawn()
|
||||
local EscortGroupHeli3 = SpawnEscortHeli:Spawn()
|
||||
local EscortGroupHeli4 = SpawnEscortHeli:Spawn()
|
||||
local EscortHeli1 = ESCORT:New( Client, EscortGroupHeli1, "Escort Alpha" )
|
||||
local EscortHeli2 = ESCORT:New( Client, EscortGroupHeli2, "Escort Bravo" )
|
||||
local EscortHeli3 = ESCORT:New( Client, EscortGroupHeli3, "Escort Delta" )
|
||||
local EscortHeli4 = ESCORT:New( Client, EscortGroupHeli4, "Escort Gamma" )
|
||||
end
|
||||
|
||||
local function EventAlivePlane( Client )
|
||||
local EscortGroupPlane = GROUP:NewFromName( "Escort Plane" )
|
||||
local EscortPlane = ESCORT:New( EscortClientPlane, EscortGroupPlane, "Escort Test Plane" )
|
||||
local SpawnEscortPlane = SPAWN:New( "Escort Plane" )
|
||||
local EscortGroupPlane = SpawnEscortPlane:Spawn()
|
||||
local EscortPlane = ESCORT:New( Client, EscortGroupPlane, "Escort Test Plane" )
|
||||
end
|
||||
|
||||
local EscortClientHeli = CLIENT:New( "Lead Helicopter", "Fly around and observe the behaviour of the escort helicopter" ):Alive( EventAliveHelicopter )
|
||||
|
||||
@@ -3,23 +3,31 @@ dictionary =
|
||||
["DictKey_GroupName_19"] = "Escort Plane",
|
||||
["DictKey_WptName_11"] = "",
|
||||
["DictKey_UnitName_20"] = "Escort Plane",
|
||||
["DictKey_GroupName_15"] = "Lead Plane",
|
||||
["DictKey_GroupName_12"] = "Escort Helicopter",
|
||||
["DictKey_WptName_30"] = "",
|
||||
["DictKey_sortie_4"] = "",
|
||||
["DictKey_WptName_28"] = "",
|
||||
["DictKey_WptName_14"] = "",
|
||||
["DictKey_WptName_29"] = "",
|
||||
["DictKey_WptName_23"] = "",
|
||||
["DictKey_GroupName_15"] = "Lead Plane",
|
||||
["DictKey_descriptionRedTask_2"] = "",
|
||||
["DictKey_descriptionBlueTask_3"] = "",
|
||||
["DictKey_GroupName_9"] = "Lead Helicopter",
|
||||
["DictKey_GroupName_31"] = "Test Attack",
|
||||
["DictKey_descriptionText_1"] = "",
|
||||
["DictKey_UnitName_10"] = "Lead Helicopter",
|
||||
["DictKey_UnitName_13"] = "Escort Helicopter",
|
||||
["DictKey_UnitName_32"] = "Unit #1",
|
||||
["DictKey_WptName_21"] = "",
|
||||
["DictKey_descriptionBlueTask_3"] = "",
|
||||
["DictKey_WptName_22"] = "",
|
||||
["DictKey_WptName_18"] = "",
|
||||
["DictKey_WptName_14"] = "",
|
||||
["DictKey_UnitName_10"] = "Lead Helicopter",
|
||||
["DictKey_WptName_17"] = "",
|
||||
["DictKey_UnitName_13"] = "Escort Helicopter",
|
||||
["DictKey_WptName_33"] = "",
|
||||
["DictKey_WptName_26"] = "",
|
||||
["DictKey_WptName_25"] = "",
|
||||
["DictKey_UnitName_16"] = "Lead Plane",
|
||||
["DictKey_WptName_21"] = "",
|
||||
["DictKey_WptName_24"] = "",
|
||||
["DictKey_GroupName_12"] = "Escort Helicopter",
|
||||
["DictKey_WptName_34"] = "",
|
||||
["DictKey_WptName_27"] = "",
|
||||
} -- end of dictionary
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -442,7 +442,7 @@ warehouses =
|
||||
["suppliers"] =
|
||||
{
|
||||
}, -- end of ["suppliers"]
|
||||
["coalition"] = "NEUTRAL",
|
||||
["coalition"] = "BLUE",
|
||||
["jet_fuel"] =
|
||||
{
|
||||
["InitFuel"] = 100,
|
||||
|
||||
Reference in New Issue
Block a user