Fix AFLD production eva (#494).
This commit is contained in:
@@ -21,6 +21,7 @@ namespace OpenRA.Mods.Cnc
|
|||||||
{
|
{
|
||||||
public class ProductionAirdropInfo : ProductionInfo
|
public class ProductionAirdropInfo : ProductionInfo
|
||||||
{
|
{
|
||||||
|
public readonly string ReadyAudio = "reinfor1.aud";
|
||||||
public override object Create(ActorInitializer init) { return new ProductionAirdrop(this); }
|
public override object Create(ActorInitializer init) { return new ProductionAirdrop(this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -60,6 +61,7 @@ namespace OpenRA.Mods.Cnc
|
|||||||
|
|
||||||
rb.PlayCustomAnimRepeating(self, "idle");
|
rb.PlayCustomAnimRepeating(self, "idle");
|
||||||
self.World.AddFrameEndTask(ww => DoProduction(self, producee, exit));
|
self.World.AddFrameEndTask(ww => DoProduction(self, producee, exit));
|
||||||
|
Sound.PlayToPlayer(self.Owner, (Info as ProductionAirdropInfo).ReadyAudio);
|
||||||
}));
|
}));
|
||||||
a.QueueActivity(Fly.ToCell(endPos));
|
a.QueueActivity(Fly.ToCell(endPos));
|
||||||
a.QueueActivity(new RemoveSelf());
|
a.QueueActivity(new RemoveSelf());
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ AFLD:
|
|||||||
BuildSpeed: .4
|
BuildSpeed: .4
|
||||||
LowPowerSlowdown: 3
|
LowPowerSlowdown: 3
|
||||||
QueuedAudio: bldging1.aud
|
QueuedAudio: bldging1.aud
|
||||||
ReadyAudio: unitredy.aud
|
ReadyAudio:
|
||||||
OnHoldAudio: onhold1.aud
|
OnHoldAudio: onhold1.aud
|
||||||
CancelledAudio: cancel1.aud
|
CancelledAudio: cancel1.aud
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user