Paradrop Production
This commit is contained in:
committed by
Oliver Brakmann
parent
728bad9565
commit
a9ffe0a779
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System.Linq;
|
||||
using OpenRA.Mods.Common.Effects;
|
||||
using OpenRA.Traits;
|
||||
|
||||
@@ -54,7 +55,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
positionable = self.TraitOrDefault<IPositionable>();
|
||||
}
|
||||
|
||||
public void OnLanded()
|
||||
void INotifyParachuteLanded.OnLanded(Actor ignore)
|
||||
{
|
||||
if (!info.KilledOnImpassableTerrain)
|
||||
return;
|
||||
@@ -62,6 +63,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
if (positionable.CanEnterCell(self.Location, self))
|
||||
return;
|
||||
|
||||
if (ignore != null && self.World.ActorMap.GetActorsAt(self.Location).Any(a => a != ignore))
|
||||
return;
|
||||
|
||||
var terrain = self.World.Map.GetTerrainInfo(self.Location);
|
||||
|
||||
var sound = terrain.IsWater ? info.WaterImpactSound : info.GroundImpactSound;
|
||||
|
||||
Reference in New Issue
Block a user