Add notification sound when paratroopers land
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user