Add a new rallypoint established notification.
This commit is contained in:
committed by
reaperrr
parent
1dd1786469
commit
103cb61020
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user