Add SpeechNotifications for InsufficientPower and Launch on support powers

This commit is contained in:
abcdefg30
2016-07-02 15:41:49 +02:00
parent 7fd7d44e7f
commit 6de12fb0e9
6 changed files with 22 additions and 6 deletions

View File

@@ -94,7 +94,11 @@ namespace OpenRA.Mods.Common.Traits
base.Activate(self, order, manager);
if (self.Owner.IsAlliedWith(self.World.RenderPlayer))
{
Game.Sound.Play(Info.LaunchSound);
Game.Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech",
Info.LaunchSpeechNotification, self.Owner.Faction.InternalName);
}
else
{
Game.Sound.Play(Info.IncomingSound);