Add e1, dog, e1 soviet patrol
This commit is contained in:
@@ -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<Actor> UnitsNearActor(Actor self, Actor actor, int range)
|
||||
{
|
||||
return self.World.FindUnitsInCircle(actor.CenterLocation, Game.CellSize * range)
|
||||
|
||||
Reference in New Issue
Block a user