diff --git a/OpenRA.sln b/OpenRA.sln index 4058bb1230..5ebc8ed7ec 100644 --- a/OpenRA.sln +++ b/OpenRA.sln @@ -57,6 +57,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Red Alert Lua scripts", "Re mods\ra\maps\allies-05a\AI.lua = mods\ra\maps\allies-05a\AI.lua mods\ra\maps\soviet-01\soviet01.lua = mods\ra\maps\soviet-01\soviet01.lua mods\ra\maps\soviet-02a\soviet02a.lua = mods\ra\maps\soviet-02a\soviet02a.lua + mods\ra\maps\soviet-07\soviet07.lua = mods\ra\maps\soviet-07\soviet07.lua mods\ra\maps\survival01\survival01.lua = mods\ra\maps\survival01\survival01.lua mods\ra\maps\survival02\survival02.lua = mods\ra\maps\survival02\survival02.lua mods\ra\maps\fort-lonestar\fort-lonestar.lua = mods\ra\maps\fort-lonestar\fort-lonestar.lua diff --git a/mods/ra/maps/soviet-07/map.yaml b/mods/ra/maps/soviet-07/map.yaml index 2e3e2dc064..6a9ef38732 100644 --- a/mods/ra/maps/soviet-07/map.yaml +++ b/mods/ra/maps/soviet-07/map.yaml @@ -463,6 +463,9 @@ Actors: Owner: Greece Facing: 224 SubCell: 2 + Actor214: healcrate + Owner: Neutral + Location: 88,69 Actor227: flare Owner: Spain Location: 75,49 diff --git a/mods/ra/maps/soviet-07/soviet07.lua b/mods/ra/maps/soviet-07/soviet07.lua index 3a07ea1c8b..b508806d98 100644 --- a/mods/ra/maps/soviet-07/soviet07.lua +++ b/mods/ra/maps/soviet-07/soviet07.lua @@ -238,8 +238,12 @@ IntroSequence = function() Media.PlaySpeechNotification(player, "TimerStarted") timerStarted = true end) + + -- Trigger a game over if the player lost all human units before the security system has been deactivated Trigger.OnAllKilled(StartingUnits, function() - enemy.MarkCompletedObjective(alliedObjective) + if not controlCenterTrigger then + enemy.MarkCompletedObjective(alliedObjective) + end end) end @@ -299,4 +303,4 @@ Tick = function() UserInterface.SetMissionText("") enemy.MarkCompletedObjective(alliedObjective) end -end \ No newline at end of file +end