Bring back the MiGs to the desert shellmap.
This commit is contained in:
committed by
reaperrr
parent
6eb7a98cd2
commit
e9e3e9c22e
@@ -41,6 +41,9 @@ HelicopterUnitTypes = { "e1", "e1", "e1", "e1", "e3", "e3" };
|
|||||||
|
|
||||||
ParadropWaypoints = { Paradrop1, Paradrop2, Paradrop3, Paradrop4, Paradrop5, Paradrop6, Paradrop7, Paradrop8 }
|
ParadropWaypoints = { Paradrop1, Paradrop2, Paradrop3, Paradrop4, Paradrop5, Paradrop6, Paradrop7, Paradrop8 }
|
||||||
|
|
||||||
|
Mig1Waypoints = { Mig11, Mig12, Mig13, Mig14 }
|
||||||
|
Mig2Waypoints = { Mig21, Mig22, Mig23, Mig24 }
|
||||||
|
|
||||||
BindActorTriggers = function(a)
|
BindActorTriggers = function(a)
|
||||||
if a.HasProperty("Hunt") then
|
if a.HasProperty("Hunt") then
|
||||||
if a.Owner == allies then
|
if a.Owner == allies then
|
||||||
@@ -76,6 +79,18 @@ SendSovietUnits = function(entryCell, unitTypes, interval)
|
|||||||
Trigger.OnAllKilled(units, function() SendSovietUnits(entryCell, unitTypes, interval) end)
|
Trigger.OnAllKilled(units, function() SendSovietUnits(entryCell, unitTypes, interval) end)
|
||||||
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()
|
ShipAlliedUnits = function()
|
||||||
local units = Reinforcements.ReinforceWithTransport(allies, "lst",
|
local units = Reinforcements.ReinforceWithTransport(allies, "lst",
|
||||||
ShipUnitTypes, { LstEntry.Location, LstUnload.Location }, { LstEntry.Location })[2]
|
ShipUnitTypes, { LstEntry.Location, LstUnload.Location }, { LstEntry.Location })[2]
|
||||||
@@ -171,6 +186,9 @@ WorldLoaded = function()
|
|||||||
Trigger.AfterDelay(DateTime.Seconds(5), ChronoshiftAlliedUnits)
|
Trigger.AfterDelay(DateTime.Seconds(5), ChronoshiftAlliedUnits)
|
||||||
Utils.Do(ProducedUnitTypes, ProduceUnits)
|
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(Entry1.Location, UnitTypes, 50)
|
||||||
SendSovietUnits(Entry2.Location, UnitTypes, 50)
|
SendSovietUnits(Entry2.Location, UnitTypes, 50)
|
||||||
SendSovietUnits(Entry3.Location, UnitTypes, 50)
|
SendSovietUnits(Entry3.Location, UnitTypes, 50)
|
||||||
|
|||||||
@@ -1239,6 +1239,30 @@ Actors:
|
|||||||
ChronoshiftLocation: waypoint
|
ChronoshiftLocation: waypoint
|
||||||
Location: 80,65
|
Location: 80,65
|
||||||
Owner: Neutral
|
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
|
Rules: rules.yaml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user