From 103cb610205256d9022c4d764c20efae5bd11369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 16 Feb 2020 23:17:15 +0100 Subject: [PATCH] Add a new rallypoint established notification. --- OpenRA.Mods.Common/Traits/Buildings/RallyPoint.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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,