unfail recoil directions (wtf)
This commit is contained in:
@@ -101,9 +101,7 @@ namespace OpenRA.Traits
|
|||||||
if (rut == null) return float2.Zero;
|
if (rut == null) return float2.Zero;
|
||||||
|
|
||||||
var facing = self.traits.Get<Turreted>().turretFacing;
|
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), facing, .7f);
|
||||||
|
|
||||||
return RotateVectorByFacing(new float2(0, recoil * self.Info.Traits.Get<AttackBaseInfo>().Recoil), quantizedFacing, .7f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static float2 CenterOfCell(int2 loc)
|
public static float2 CenterOfCell(int2 loc)
|
||||||
|
|||||||
@@ -66,11 +66,15 @@ namespace OpenRA.Mods.RA
|
|||||||
info = null;
|
info = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
pos += v;
|
|
||||||
v = .9f * v;
|
|
||||||
va -= gravity;
|
va -= gravity;
|
||||||
alt += va;
|
alt += va;
|
||||||
|
|
||||||
if (alt < 0) alt = 0;
|
if (alt < 0) alt = 0;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pos += v;
|
||||||
|
v = .9f * v;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user