From 6014f648f415a7e774ced7feb1d7952b77a62764 Mon Sep 17 00:00:00 2001 From: ScottNZ Date: Sun, 1 Jul 2012 03:29:05 +1200 Subject: [PATCH] Add e1, dog, e1 soviet patrol --- OpenRA.Mods.RA/Missions/Allies01Script.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenRA.Mods.RA/Missions/Allies01Script.cs b/OpenRA.Mods.RA/Missions/Allies01Script.cs index 9c56a647d5..90b8bd77ba 100644 --- a/OpenRA.Mods.RA/Missions/Allies01Script.cs +++ b/OpenRA.Mods.RA/Missions/Allies01Script.cs @@ -53,6 +53,7 @@ namespace OpenRA.Mods.RA.Missions static readonly string[] taunts = { "laugh1.aud", "lefty1.aud", "cmon1.aud", "gotit1.aud" }; static readonly string[] ships = { "ca", "ca", "ca", "ca" }; + static readonly string[] patrol = { "e1", "dog", "e1" }; static readonly string[] attackWave = { "e1", "e1", "e1", "e1", "e2", "e2", "e2", "e2", "dog" }; static readonly string[] lastAttackWaveAddition = { "3tnk", "e1", "e1", "e1", "e1", "e2", "e2", "e2", "e2" }; @@ -116,6 +117,7 @@ namespace OpenRA.Mods.RA.Missions if (self.World.FrameNumber == 1) { FlyTanyaToInsertionLZ(self); + SendPatrol(self); } // objectives if (currentObjective == 0) @@ -183,6 +185,15 @@ namespace OpenRA.Mods.RA.Missions } } + void SendPatrol(Actor self) + { + for (int i = 0; i < patrol.Length; i++) + { + var actor = self.World.CreateActor(patrol[i], new TypeDictionary { new OwnerInit(soviets), new LocationInit(insertionLZ.Location + new CVec(-1 + i, 6 + i * 2)) }); + actor.QueueActivity(new Move.Move(insertionLZ.Location)); + } + } + IEnumerable UnitsNearActor(Actor self, Actor actor, int range) { return self.World.FindUnitsInCircle(actor.CenterLocation, Game.CellSize * range)