diff --git a/OpenRA.Mods.Common/Traits/CapturableProgressBlink.cs b/OpenRA.Mods.Common/Traits/CapturableProgressBlink.cs index d7900d2855..84f278f54f 100644 --- a/OpenRA.Mods.Common/Traits/CapturableProgressBlink.cs +++ b/OpenRA.Mods.Common/Traits/CapturableProgressBlink.cs @@ -22,6 +22,9 @@ namespace OpenRA.Mods.Common.Traits [Desc("Number of ticks to wait between repeating blinks.")] public readonly int Interval = 50; + [Desc("Sound to play at the same time the actor blinks.")] + public readonly string Sound = null; + public override object Create(ActorInitializer init) { return new CapturableProgressBlink(this); } } @@ -68,6 +71,9 @@ namespace OpenRA.Mods.Common.Traits foreach (var captor in captors) if (captor.Owner == captorOwner) self.World.Add(new FlashTarget(captor, captorOwner.Color)); + + if (Info.Sound != null) + Game.Sound.Play(SoundType.World, Info.Sound, self.CenterPosition); } if (++tick >= Info.Interval)