Put e1 inside the soviet 01 classic pillboxes. Add check for mission complete

This commit is contained in:
Scott_NZ
2013-02-03 20:55:45 +13:00
parent 87190762d1
commit 6bbd54ab93
2 changed files with 5 additions and 3 deletions

View File

@@ -75,6 +75,8 @@ namespace OpenRA.Mods.RA.Missions
public void Tick(Actor self)
{
if (ussr.WinState != WinState.Undefined) return;
var unitsAndBuildings = world.Actors.Where(a => !a.IsDead() && a.IsInWorld && (a.HasTrait<Mobile>() || (a.HasTrait<Building>() && !a.HasTrait<Wall>())));
if (!unitsAndBuildings.Any(a => a.Owner == france))
{

View File

@@ -24,7 +24,7 @@ Players:
PlayerReference@GoodGuy:
Name: GoodGuy
Race: allies
ColorRamp: 161,134,236,30
ColorRamp: 161,134,200,30
Allies: France,Germany,Turkey
Enemies: USSR
PlayerReference@France:
@@ -555,12 +555,12 @@ Actors:
Owner: GoodGuy
Health: 1
Facing: 0
Actor118: pbox
Actor118: pbox.e1
Location: 46,55
Owner: France
Health: 1
Facing: 0
Actor119: pbox
Actor119: pbox.e1
Location: 48,54
Owner: France
Health: 1