bullets, missiles are all altitude-aware
This commit is contained in:
@@ -14,9 +14,13 @@ namespace OpenRa.Game.Traits
|
||||
{
|
||||
if (self.IsDead)
|
||||
{
|
||||
var unit = self.traits.GetOrDefault<Unit>();
|
||||
var altitude = unit != null ? unit.Altitude : 0;
|
||||
|
||||
Game.world.AddFrameEndTask(
|
||||
w => w.Add(new Bullet("UnitExplode", e.Attacker.Owner, e.Attacker,
|
||||
self.CenterLocation.ToInt2(), self.CenterLocation.ToInt2())));
|
||||
self.CenterLocation.ToInt2(), self.CenterLocation.ToInt2(),
|
||||
altitude, altitude)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user