Remove legacy turret/muzzle positioning code.

This commit is contained in:
Paul Chote
2013-03-29 21:54:27 +13:00
parent 491468b84f
commit 5e74d3c54e
15 changed files with 31 additions and 193 deletions

View File

@@ -19,7 +19,6 @@ namespace OpenRA.Mods.RA
public readonly int ProneTime = 100; /* ticks, =4s */
public readonly float ProneDamage = .5f;
public readonly decimal ProneSpeed = .5m;
public readonly int[] LegacyProneOffset = {0,-2,0,4};
public readonly WVec ProneOffset = new WVec(85, 0, -171);
public override object Create(ActorInitializer init) { return new TakeCover(init, this); }
@@ -44,10 +43,8 @@ namespace OpenRA.Mods.RA
if (e.Damage > 0 && (e.Warhead == null || !e.Warhead.PreventProne)) /* Don't go prone when healed */
{
if (!IsProne)
{
turret = new Turret(Info.LegacyProneOffset);
LocalOffset = Info.ProneOffset;
}
remainingProneTime = Info.ProneTime;
}
}
@@ -56,10 +53,7 @@ namespace OpenRA.Mods.RA
{
base.Tick(self);
if (IsProne && --remainingProneTime == 0)
{
turret = new Turret(Info.LegacyOffset);
LocalOffset = WVec.Zero;
}
}
public float GetDamageModifier(Actor attacker, WarheadInfo warhead )