some Nod triggers

This commit is contained in:
alzeih
2010-08-22 00:54:28 +12:00
committed by Paul Chote
parent c433ca77c4
commit 3f08f16b9b
3 changed files with 26 additions and 7 deletions

View File

@@ -107,8 +107,26 @@ namespace OpenRA.Mods.RA
return; return;
if (ticks == 0) if (ticks == 0)
{
SetGunboatPath(); SetGunboatPath();
self.World.AddFrameEndTask(w =>
{
//Initial Nod reinforcements
foreach (var i in new[]{ "e1", "e1" })
{
var a = self.World.CreateActor(i.ToLowerInvariant(), new TypeDictionary
{
new OwnerInit( Players["BadGuy"] ),
new FacingInit( 0 ),
new LocationInit ( Map.Waypoints["nod0"] ),
});
a.QueueActivity( new Move( Map.Waypoints["nod1"], 2 ) );
a.QueueActivity( new Move( Map.Waypoints["nod2"], 2 ) );
a.QueueActivity( new Move( Map.Waypoints["nod3"], 2 ) );
// Todo: Queue hunt order
}
});
}
// GoodGuy win conditions // GoodGuy win conditions
// BadGuy is dead // BadGuy is dead
int badcount = self.World.Queries.OwnedBy[Players["BadGuy"]].Count(a => a.IsInWorld && !a.IsDead()); int badcount = self.World.Queries.OwnedBy[Players["BadGuy"]].Count(a => a.IsInWorld && !a.IsDead());

View File

@@ -1 +1 @@
8a67362f59ab8f4ecb9f92abd817304ab0692a52 15075d8a67acf81b884fa107850043b342db52b3

View File

@@ -8,7 +8,7 @@ Description: Describe your map here
Author: Westwood Studios Author: Westwood Studios
PlayerCount: 9 PlayerCount: 10
Tileset: TEMPERAT Tileset: TEMPERAT
@@ -434,10 +434,10 @@ Actors:
Waypoints: Waypoints:
spawn27: 51,47 spawn27: 51,47
spawn26: 48,52 nod0: 36,39
spawn3: 58,53 nod1: 37,46
spawn1: 38,55 nod2: 38,55
spawn0: 37,46 nod3: 52,52
gunboatRight: 61,59 gunboatRight: 61,59
gunboatLeft: 35,59 gunboatLeft: 35,59
lstStart: 54,61 lstStart: 54,61
@@ -455,3 +455,4 @@ Rules:
Gdi01Script: Gdi01Script:
Player: Player:
-ConquestVictoryConditions: -ConquestVictoryConditions: