Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brought back the Desert Shellmap MiGs #13909

Merged
merged 1 commit into from
Sep 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions mods/ra/maps/desert-shellmap/desert-shellmap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ HelicopterUnitTypes = { "e1", "e1", "e1", "e1", "e3", "e3" };

ParadropWaypoints = { Paradrop1, Paradrop2, Paradrop3, Paradrop4, Paradrop5, Paradrop6, Paradrop7, Paradrop8 }

Mig1Waypoints = { Mig11, Mig12, Mig13, Mig14 }
Mig2Waypoints = { Mig21, Mig22, Mig23, Mig24 }

BindActorTriggers = function(a)
if a.HasProperty("Hunt") then
if a.Owner == allies then
Expand Down Expand Up @@ -76,6 +79,18 @@ SendSovietUnits = function(entryCell, unitTypes, interval)
Trigger.OnAllKilled(units, function() SendSovietUnits(entryCell, unitTypes, interval) end)
end

SendMigs = function(waypoints)
local migEntryPath = { waypoints[1].Location, waypoints[2].Location }
local migs = Reinforcements.Reinforce(soviets, { "mig" }, migEntryPath, 4)
Utils.Do(migs, function(mig)
mig.Move(waypoints[3].Location)
mig.Move(waypoints[4].Location)
mig.Destroy()
end)

Trigger.AfterDelay(DateTime.Seconds(40), function() SendMigs(waypoints) end)
end

ShipAlliedUnits = function()
local units = Reinforcements.ReinforceWithTransport(allies, "lst",
ShipUnitTypes, { LstEntry.Location, LstUnload.Location }, { LstEntry.Location })[2]
Expand Down Expand Up @@ -171,6 +186,9 @@ WorldLoaded = function()
Trigger.AfterDelay(DateTime.Seconds(5), ChronoshiftAlliedUnits)
Utils.Do(ProducedUnitTypes, ProduceUnits)

Trigger.AfterDelay(DateTime.Seconds(30), function() SendMigs(Mig1Waypoints) end)
Trigger.AfterDelay(DateTime.Seconds(30), function() SendMigs(Mig2Waypoints) end)

SendSovietUnits(Entry1.Location, UnitTypes, 50)
SendSovietUnits(Entry2.Location, UnitTypes, 50)
SendSovietUnits(Entry3.Location, UnitTypes, 50)
Expand Down
24 changes: 24 additions & 0 deletions mods/ra/maps/desert-shellmap/map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,30 @@ Actors:
ChronoshiftLocation: waypoint
Location: 80,65
Owner: Neutral
Mig11: waypoint
Location: 94,1
Owner: Neutral
Mig12: waypoint
Location: 68,33
Owner: Neutral
Mig13: waypoint
Location: 41,38
Owner: Neutral
Mig14: waypoint
Location: 1,26
Owner: Neutral
Mig21: waypoint
Location: 96,3
Owner: Neutral
Mig22: waypoint
Location: 70,35
Owner: Neutral
Mig23: waypoint
Location: 41,40
Owner: Neutral
Mig24: waypoint
Location: 1,28
Owner: Neutral

Rules: rules.yaml

Expand Down