Let the remaing enemy troops in Allies02 attack the player
once the base is destroyed. Does not include unit guarding the convoy path.
This commit is contained in:
@@ -17,6 +17,8 @@ TruckPath = { TruckEntryPoint.Location, TruckRallyPoint.Location }
|
|||||||
|
|
||||||
PathGuards = { PathGuard1, PathGuard2, PathGuard3, PathGuard4, PathGuard5, PathGuard6, PathGuard7, PathGuard8, PathGuard9, PathGuard10, PathGuard11, PathGuard12, PathGuard13, PathGuard14, PathGuard15 }
|
PathGuards = { PathGuard1, PathGuard2, PathGuard3, PathGuard4, PathGuard5, PathGuard6, PathGuard7, PathGuard8, PathGuard9, PathGuard10, PathGuard11, PathGuard12, PathGuard13, PathGuard14, PathGuard15 }
|
||||||
|
|
||||||
|
SovietBase = { SovietConyard, SovietRefinery, SovietPower1, SovietPower2, SovietSilo, SovietKennel, SovietBarracks, SovietWarfactory }
|
||||||
|
|
||||||
IdlingUnits = { }
|
IdlingUnits = { }
|
||||||
|
|
||||||
if Map.LobbyOption("difficulty") == "easy" then
|
if Map.LobbyOption("difficulty") == "easy" then
|
||||||
@@ -87,6 +89,14 @@ RunInitialActivities = function()
|
|||||||
SendTrucks()
|
SendTrucks()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Trigger.OnAllKilled(SovietBase, function()
|
||||||
|
Utils.Do(ussr.GetGroundAttackers(), function(unit)
|
||||||
|
if not Utils.Any(PathGuards, function(pg) return pg == unit end) then
|
||||||
|
Trigger.OnIdle(unit, unit.Hunt)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
if InfantryTypes then
|
if InfantryTypes then
|
||||||
Trigger.AfterDelay(InfantryDelay, InfantryProduction)
|
Trigger.AfterDelay(InfantryDelay, InfantryProduction)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -207,19 +207,6 @@ Actors:
|
|||||||
Actor56: tc03
|
Actor56: tc03
|
||||||
Location: 43,70
|
Location: 43,70
|
||||||
Owner: Neutral
|
Owner: Neutral
|
||||||
Actor58: fact
|
|
||||||
Location: 62,61
|
|
||||||
Owner: USSR
|
|
||||||
Actor59: proc
|
|
||||||
Location: 53,62
|
|
||||||
Owner: USSR
|
|
||||||
FreeActor: False
|
|
||||||
Actor60: powr
|
|
||||||
Location: 57,62
|
|
||||||
Owner: USSR
|
|
||||||
Actor62: powr
|
|
||||||
Location: 59,62
|
|
||||||
Owner: USSR
|
|
||||||
Actor64: brl3
|
Actor64: brl3
|
||||||
Location: 65,59
|
Location: 65,59
|
||||||
Owner: USSR
|
Owner: USSR
|
||||||
@@ -244,9 +231,6 @@ Actors:
|
|||||||
Actor71: barl
|
Actor71: barl
|
||||||
Location: 65,62
|
Location: 65,62
|
||||||
Owner: USSR
|
Owner: USSR
|
||||||
Actor72: silo
|
|
||||||
Location: 54,68
|
|
||||||
Owner: USSR
|
|
||||||
Actor73: brl3
|
Actor73: brl3
|
||||||
Location: 55,70
|
Location: 55,70
|
||||||
Owner: USSR
|
Owner: USSR
|
||||||
@@ -548,6 +532,22 @@ Actors:
|
|||||||
Actor170: fenc
|
Actor170: fenc
|
||||||
Location: 50,51
|
Location: 50,51
|
||||||
Owner: USSR
|
Owner: USSR
|
||||||
|
SovietConyard: fact
|
||||||
|
Location: 62,61
|
||||||
|
Owner: USSR
|
||||||
|
SovietRefinery: proc
|
||||||
|
Location: 53,62
|
||||||
|
Owner: USSR
|
||||||
|
FreeActor: False
|
||||||
|
SovietPower1: powr
|
||||||
|
Location: 57,62
|
||||||
|
Owner: USSR
|
||||||
|
SovietPower2: powr
|
||||||
|
Location: 59,62
|
||||||
|
Owner: USSR
|
||||||
|
SovietSilo: silo
|
||||||
|
Location: 54,68
|
||||||
|
Owner: USSR
|
||||||
SovietKennel: kenn
|
SovietKennel: kenn
|
||||||
Location: 58,68
|
Location: 58,68
|
||||||
Owner: USSR
|
Owner: USSR
|
||||||
|
|||||||
Reference in New Issue
Block a user