added flare to paratroopers power

This commit is contained in:
Chris Forbes
2010-04-12 20:06:27 +12:00
parent 4d2c5ea83c
commit e1852cadd3
6 changed files with 44 additions and 4 deletions

View File

@@ -35,10 +35,12 @@ namespace OpenRA.Mods.RA
{
readonly List<int2> droppedAt = new List<int2>();
int2 lz;
Actor flare;
public void SetLZ( int2 lz )
public void SetLZ( int2 lz, Actor flare )
{
this.lz = lz;
this.flare = flare;
droppedAt.Clear();
}
@@ -76,6 +78,13 @@ namespace OpenRA.Mods.RA
self.CancelActivity();
self.QueueActivity(new FlyOffMap { Interruptible = false });
self.QueueActivity(new RemoveSelf());
if (flare != null)
{
flare.CancelActivity();
flare.QueueActivity(new Wait(300));
flare.QueueActivity(new RemoveSelf());
}
}
}
}