Add speech notification equivalents to support power sounds.

This commit is contained in:
Matthias Mailänder
2016-06-19 18:44:53 +02:00
parent 4c3ff461d4
commit 409fe9067a
3 changed files with 16 additions and 0 deletions

View File

@@ -96,7 +96,11 @@ namespace OpenRA.Mods.Common.Traits
if (self.Owner.IsAlliedWith(self.World.RenderPlayer))
Game.Sound.Play(Info.LaunchSound);
else
{
Game.Sound.Play(Info.IncomingSound);
Game.Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech",
Info.IncomingSpeechNotification, self.Owner.Faction.InternalName);
}
if (!string.IsNullOrEmpty(info.ActivationSequence))
{