Add VTOL landing exhaust animation.

This commit is contained in:
Matthias Mailänder
2022-08-03 19:12:36 +02:00
committed by Gustas
parent 1073a7124f
commit aa14c9c570
6 changed files with 115 additions and 0 deletions

View File

@@ -226,6 +226,9 @@ namespace OpenRA.Mods.Common.Activities
if (aircraft.Info.LandingSounds.Length > 0)
Game.Sound.Play(SoundType.World, aircraft.Info.LandingSounds, self.World, aircraft.CenterPosition);
foreach (var notify in self.TraitsImplementing<INotifyLanding>())
notify.Landing(self);
aircraft.AddInfluence(landingCell);
aircraft.EnteringCell(self);
landingInitiated = true;