From 9b17bfe697812fbc6c9244f9c08c33c2dc03d1af Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 29 Jan 2011 13:04:26 +1300 Subject: [PATCH] Fix AFLD production eva (#494). --- OpenRA.Mods.Cnc/ProductionAirdrop.cs | 2 ++ mods/cnc/rules/structures.yaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/ProductionAirdrop.cs b/OpenRA.Mods.Cnc/ProductionAirdrop.cs index 77a92cef57..9c501cca9a 100644 --- a/OpenRA.Mods.Cnc/ProductionAirdrop.cs +++ b/OpenRA.Mods.Cnc/ProductionAirdrop.cs @@ -21,6 +21,7 @@ namespace OpenRA.Mods.Cnc { public class ProductionAirdropInfo : ProductionInfo { + public readonly string ReadyAudio = "reinfor1.aud"; public override object Create(ActorInitializer init) { return new ProductionAirdrop(this); } } @@ -60,6 +61,7 @@ namespace OpenRA.Mods.Cnc rb.PlayCustomAnimRepeating(self, "idle"); self.World.AddFrameEndTask(ww => DoProduction(self, producee, exit)); + Sound.PlayToPlayer(self.Owner, (Info as ProductionAirdropInfo).ReadyAudio); })); a.QueueActivity(Fly.ToCell(endPos)); a.QueueActivity(new RemoveSelf()); diff --git a/mods/cnc/rules/structures.yaml b/mods/cnc/rules/structures.yaml index 0b6adb705f..929426fad5 100644 --- a/mods/cnc/rules/structures.yaml +++ b/mods/cnc/rules/structures.yaml @@ -246,7 +246,7 @@ AFLD: BuildSpeed: .4 LowPowerSlowdown: 3 QueuedAudio: bldging1.aud - ReadyAudio: unitredy.aud + ReadyAudio: OnHoldAudio: onhold1.aud CancelledAudio: cancel1.aud