diff --git a/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs b/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs index 6f11140164..f5f5141a26 100644 --- a/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs +++ b/OpenRA.Mods.Common/Traits/SupportPowers/ParatroopersPower.cs @@ -26,6 +26,9 @@ namespace OpenRA.Mods.Common.Traits public readonly int SquadSize = 1; public readonly WVec SquadOffset = new WVec(-1536, 1536, 0); + [Desc("Notification to play when entering the drop zone.")] + public readonly string ReinforcementsArrivedSpeechNotification = null; + [Desc("Number of facings that the delivery aircraft may approach from.")] public readonly int QuantizedFacings = 32; @@ -112,6 +115,10 @@ namespace OpenRA.Mods.Common.Traits }); } + if (!aircraftInRange.Any(kv => kv.Value)) + Game.Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", + info.ReinforcementsArrivedSpeechNotification, self.Owner.Faction.InternalName); + aircraftInRange[a] = true; }; diff --git a/mods/ra/rules/structures.yaml b/mods/ra/rules/structures.yaml index e6f4501edf..72f0d21092 100644 --- a/mods/ra/rules/structures.yaml +++ b/mods/ra/rules/structures.yaml @@ -1371,6 +1371,7 @@ AFLD: Description: Paratroopers LongDesc: A Badger drops a squad of infantry\nanywhere on the map. DropItems: E1R1,E1R1,E1R1,E3R1,E3R1 + ReinforcementsArrivedSpeechNotification: ReinforcementsArrived SelectTargetSpeechNotification: SelectTarget AllowImpassableCells: false QuantizedFacings: 8