diff --git a/mods/ts/maps/fields-of-green/fields-of-green.lua b/mods/ts/maps/fields-of-green/fields-of-green.lua index aece1e2cc1..cd044d33da 100644 --- a/mods/ts/maps/fields-of-green/fields-of-green.lua +++ b/mods/ts/maps/fields-of-green/fields-of-green.lua @@ -6,20 +6,21 @@ the License, or (at your option) any later version. For more information, see COPYING. ]] + NForce = { "e1", "e1", "e1", "e3", "cyborg", "cyborg" } -NForcePath = { NodW.Location, GDIBase.Location } +NForcePath = { NodW.Location } NForceInterval = 5 VNForce = { "bike", "bike", "bggy", "bggy", "e1", "e1", "e3" } -VNForcePath = { South.Location, GDIBase.Location } +VNForcePath = { South.Location } VNForceInterval = 15 GForce = { "e1", "e1", "e1", "e1", "e2", "e1", "e2" } -GForcePath = { GDIW.Location, NodBase.Location } +GForcePath = { GDIW.Location } GForceInterval = 5 VGForce = { "e2", "smech", "smech", "e1", "e1", "apc" } -VGForcePath = { North.Location, NodBase.Location } +VGForcePath = { North.Location } VGForceInterval = 15 ProducedUnitTypes = @@ -56,6 +57,12 @@ SendNodInfantry = function() local units = Reinforcements.Reinforce(nod, NForce, NForcePath, NForceInterval) Utils.Do(units, function(unit) BindActorTriggers(unit) + + if unit.HasProperty("AttackMove") then + unit.AttackMove(GDIBase.Location) + else + unit.Move(GDIBase.Location) + end end) Trigger.AfterDelay(DateTime.Seconds(60), SendNodInfantry) end @@ -64,6 +71,12 @@ SendNodVehicles = function() local units = Reinforcements.Reinforce(nod, VNForce, VNForcePath, VNForceInterval) Utils.Do(units, function(unit) BindActorTriggers(unit) + + if unit.HasProperty("AttackMove") then + unit.AttackMove(GDIBase.Location) + else + unit.Move(GDIBase.Location) + end end) Trigger.AfterDelay(DateTime.Seconds(110), SendNodVehicles) end @@ -72,6 +85,12 @@ SendGDIInfantry = function() local units = Reinforcements.Reinforce(gdi, GForce, GForcePath, GForceInterval) Utils.Do(units, function(unit) BindActorTriggers(unit) + + if unit.HasProperty("AttackMove") then + unit.AttackMove(NodBase.Location) + else + unit.Move(NodBase.Location) + end end) Trigger.AfterDelay(DateTime.Seconds(60), SendGDIInfantry) end @@ -80,6 +99,12 @@ SendGDIVehicles = function() local units = Reinforcements.Reinforce(gdi, VGForce, VGForcePath, VGForceInterval) Utils.Do(units, function(unit) BindActorTriggers(unit) + + if unit.HasProperty("AttackMove") then + unit.AttackMove(NodBase.Location) + else + unit.Move(NodBase.Location) + end end) Trigger.AfterDelay(DateTime.Seconds(110), SendGDIVehicles) end @@ -102,7 +127,7 @@ end WorldLoaded = function() nod = Player.GetPlayer("Nod") gdi = Player.GetPlayer("GDI") - + SetupFactories() SetupInvulnerability()