A working escort function for helicopters, first version

This commit is contained in:
FlightControl
2016-04-01 17:27:28 +02:00
parent 10fbaa07f5
commit b8c10c2f41
10 changed files with 881 additions and 402 deletions

View File

@@ -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 )

View File

@@ -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

View File

@@ -442,7 +442,7 @@ warehouses =
["suppliers"] =
{
}, -- end of ["suppliers"]
["coalition"] = "NEUTRAL",
["coalition"] = "BLUE",
["jet_fuel"] =
{
["InitFuel"] = 100,