diff --git a/OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs b/OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs index 7be6f36375..678a696e11 100644 --- a/OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs +++ b/OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs @@ -42,6 +42,10 @@ namespace OpenRA.Mods.Common.Traits [Desc("A list of 0 or more offsets defining the initial rally point path.")] public readonly CVec[] Path = { }; + [NotificationReference("Speech")] + [Desc("The speech notification to play when setting a new rallypoint.")] + public readonly string Notification = null; + public object Create(ActorInitializer init) { return new RallyPoint(init.Self, this); } } @@ -96,6 +100,8 @@ namespace OpenRA.Mods.Common.Traits { if (order.OrderID == OrderID) { + Game.Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", Info.Notification, self.Owner.Faction.InternalName); + return new Order(order.OrderID, self, target, queued) { SuppressVisualFeedback = true,