unfail recoil directions (wtf)

This commit is contained in:
Chris Forbes
2010-05-16 15:05:01 +12:00
parent 99e7ee23fb
commit 67d741e671
2 changed files with 7 additions and 5 deletions

View File

@@ -101,9 +101,7 @@ namespace OpenRA.Traits
if (rut == null) return float2.Zero;
var facing = self.traits.Get<Turreted>().turretFacing;
var quantizedFacing = QuantizeFacing(facing, rut.anim.CurrentSequence.Facings) * (256 / rut.anim.CurrentSequence.Length);
return RotateVectorByFacing(new float2(0, recoil * self.Info.Traits.Get<AttackBaseInfo>().Recoil), quantizedFacing, .7f);
return RotateVectorByFacing(new float2(0, recoil * self.Info.Traits.Get<AttackBaseInfo>().Recoil), facing, .7f);
}
public static float2 CenterOfCell(int2 loc)

View File

@@ -66,11 +66,15 @@ namespace OpenRA.Mods.RA
info = null;
}
pos += v;
v = .9f * v;
va -= gravity;
alt += va;
if (alt < 0) alt = 0;
else
{
pos += v;
v = .9f * v;
}
}
}
}