From 3f08f16b9b1828f7998d9bafc04e0c2b0dc41c20 Mon Sep 17 00:00:00 2001 From: alzeih Date: Sun, 22 Aug 2010 00:54:28 +1200 Subject: [PATCH] some Nod triggers --- OpenRA.Mods.Cnc/Missions/Gdi01Script.cs | 20 +++++++++++++++++++- mods/cnc/maps/gdi01/map.uid | 2 +- mods/cnc/maps/gdi01/map.yaml | 11 ++++++----- 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/OpenRA.Mods.Cnc/Missions/Gdi01Script.cs b/OpenRA.Mods.Cnc/Missions/Gdi01Script.cs index f118e7e069..4e5b73c2d7 100644 --- a/OpenRA.Mods.Cnc/Missions/Gdi01Script.cs +++ b/OpenRA.Mods.Cnc/Missions/Gdi01Script.cs @@ -107,8 +107,26 @@ namespace OpenRA.Mods.RA return; if (ticks == 0) + { 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 // BadGuy is dead int badcount = self.World.Queries.OwnedBy[Players["BadGuy"]].Count(a => a.IsInWorld && !a.IsDead()); diff --git a/mods/cnc/maps/gdi01/map.uid b/mods/cnc/maps/gdi01/map.uid index 58b5d7a60c..a73fa5447e 100644 --- a/mods/cnc/maps/gdi01/map.uid +++ b/mods/cnc/maps/gdi01/map.uid @@ -1 +1 @@ -8a67362f59ab8f4ecb9f92abd817304ab0692a52 \ No newline at end of file +15075d8a67acf81b884fa107850043b342db52b3 \ No newline at end of file diff --git a/mods/cnc/maps/gdi01/map.yaml b/mods/cnc/maps/gdi01/map.yaml index 107d1d9b6a..6bce6f3155 100644 --- a/mods/cnc/maps/gdi01/map.yaml +++ b/mods/cnc/maps/gdi01/map.yaml @@ -8,7 +8,7 @@ Description: Describe your map here Author: Westwood Studios -PlayerCount: 9 +PlayerCount: 10 Tileset: TEMPERAT @@ -434,10 +434,10 @@ Actors: Waypoints: spawn27: 51,47 - spawn26: 48,52 - spawn3: 58,53 - spawn1: 38,55 - spawn0: 37,46 + nod0: 36,39 + nod1: 37,46 + nod2: 38,55 + nod3: 52,52 gunboatRight: 61,59 gunboatLeft: 35,59 lstStart: 54,61 @@ -455,3 +455,4 @@ Rules: Gdi01Script: Player: -ConquestVictoryConditions: +