diff --git a/mods/ra/maps/desert-shellmap/desert-shellmap.lua b/mods/ra/maps/desert-shellmap/desert-shellmap.lua index 987f594846..83cba4477e 100644 --- a/mods/ra/maps/desert-shellmap/desert-shellmap.lua +++ b/mods/ra/maps/desert-shellmap/desert-shellmap.lua @@ -29,6 +29,7 @@ else end ShipUnitTypes = { "1tnk", "1tnk", "jeep", "2tnk", "2tnk" } +HelicopterUnitTypes = { "e1", "e1", "e1", "e1", "e3", "e3" }; ParadropWaypoints = { Paradrop1, Paradrop2, Paradrop3, Paradrop4, Paradrop5, Paradrop6, Paradrop7, Paradrop8 } @@ -70,6 +71,17 @@ ShipAlliedUnits = function() Trigger.AfterDelay(Utils.Seconds(60), ShipAlliedUnits) end +InsertAlliedChinookReinforcements = function(entry, hpad) + local units = Reinforcements.ReinforceWithTransport(allies, "tran", + HelicopterUnitTypes, { entry.Location, hpad.Location + CVec.New(1, 2) }, { entry.Location })[2] + + Utils.Do(units, function(unit) + BindActorTriggers(unit) + end) + + Trigger.AfterDelay(Utils.Seconds(60), function() InsertAlliedChinookReinforcements(entry, hpad) end) +end + ParadropSovietUnits = function() local lz = Utils.Random(ParadropWaypoints).Location local start = Utils.CenterOfCell(Map.RandomEdgeCell()) + WVec.New(0, 0, Actor.CruiseAltitude("badr")) @@ -140,6 +152,8 @@ WorldLoaded = function() SetupAlliedUnits() SetupFactories() ShipAlliedUnits() + InsertAlliedChinookReinforcements(Chinook1Entry, HeliPad1) + InsertAlliedChinookReinforcements(Chinook2Entry, HeliPad2) ParadropSovietUnits() Trigger.AfterDelay(Utils.Seconds(5), ChronoshiftAlliedUnits) Utils.Do(ProducedUnitTypes, ProduceUnits) diff --git a/mods/ra/maps/desert-shellmap/map.yaml b/mods/ra/maps/desert-shellmap/map.yaml index 9fc0a2cdfe..9410038d01 100644 --- a/mods/ra/maps/desert-shellmap/map.yaml +++ b/mods/ra/maps/desert-shellmap/map.yaml @@ -947,8 +947,8 @@ Actors: Actor329: mine Location: 90,21 Owner: Neutral - Actor195: hpad - Location: 70,75 + HeliPad1: hpad + Location: 70,76 Owner: Allies Actor341: dome Location: 63,73 @@ -1004,7 +1004,7 @@ Actors: Actor361: pbox Location: 71,96 Owner: Allies - Actor365: hpad + HeliPad2: hpad Location: 64,78 Owner: Allies Actor221: fenc @@ -1217,6 +1217,12 @@ Actors: LstUnload: waypoint Location: 60,93 Owner: Neutral + Chinook1Entry: waypoint + Location: 44,126 + Owner: Neutral + Chinook2Entry: waypoint + Location: 47,126 + Owner: Neutral Actor184: pbox Location: 96,79 Owner: Allies