Add notification sound when paratroopers land

This commit is contained in:
gkaretka
2017-10-11 21:25:21 +02:00
committed by reaperrr
parent a8c6d12c43
commit 97e0f17e15
2 changed files with 8 additions and 0 deletions

View File

@@ -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;
};

View File

@@ -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