cut11b: scale minDur by max speed and allow full arachnid rear-leg step stride
This commit is contained in:
parent
1b1c9c614f
commit
785e24e290
1 changed files with 2 additions and 2 deletions
|
|
@ -1455,7 +1455,7 @@ namespace RustToDust.Ymir
|
|||
{
|
||||
float hScale = MathF.Max(0.30f, rideHeight / 3.20f);
|
||||
float baseDur = Math.Clamp(0.48f * MathF.Sqrt(hScale), 0.24f, 0.58f);
|
||||
float speedDurRatio = Math.Clamp(30f / MathF.Max(8f, grid.Spec.MaxSpeed), 0.65f, 1.0f);
|
||||
float speedDurRatio = Math.Clamp(20f / MathF.Max(8f, grid.Spec.MaxSpeed), 0.72f, 1.0f);
|
||||
float minDur = Math.Clamp(0.245f * MathF.Pow(hScale, 0.55f) * speedDurRatio, 0.085f, 0.32f);
|
||||
float effectiveDur = baseDur * (1f - 0.28f * speedFrac);
|
||||
float crouchFrac = n == 2 ? Math.Clamp(horizSpeed / MathF.Max(5f, grid.Spec.MaxSpeed * 0.35f), 0f, 1f) : speedFrac;
|
||||
|
|
@ -1710,7 +1710,7 @@ namespace RustToDust.Ymir
|
|||
float restRadial = MathF.Sqrt(rdx * rdx + rdz * rdz) * scale;
|
||||
if (restRadial > 0.25f * scale)
|
||||
{
|
||||
maxStep = MathF.Min(maxStep, restRadial * 0.90f);
|
||||
maxStep = MathF.Min(maxStep, restRadial * 1.15f);
|
||||
}
|
||||
}
|
||||
if (stepOffset.Length() > maxStep)
|
||||
|
|
|
|||
Loading…
Reference in a new issue