Match Jimmy controller arithmetic and facing to original probes

This commit is contained in:
UnixNight committed 2026-11-05 09:47:28 -05:00
1 parent 42ea2b8cd5
commit 0e2f426d42
60 files changed
+6027 -48

No files matched your search

+6 -3
View File
@@ -66,7 +66,7 @@ public static class JetpackBurst
}
if (state.JumpState < 3)
extra = input.GravityY * 1.33f - input.GravityY;
extra = (float)((double)input.GravityY * 1.33f - input.GravityY);
else
{
if (input.EffectAvailable && state.EffectRemaining <= 0 && state.JumpState is 3 or 4)
@@ -109,8 +109,11 @@ public static class JetpackBurst
EffectRemaining = input.EffectAvailable ? 0 : state.EffectRemaining };
return Result(impulse: JumpImpulse, pose: JetpackPose.Jump);
case 1:
state = state with { HoldSeconds = state.HoldSeconds + input.DeltaSeconds };
if (state.HoldSeconds <= HoldThreshold) return Result();
//438407 storesfloat but keeps the unrounded sum on x87 for
//43840D's comparison. Different sums can store the samefloat.
double hold=(double)state.HoldSeconds+input.DeltaSeconds;
state = state with { HoldSeconds = (float)hold };
if (hold <= HoldThreshold) return Result();
break;
case 2:
break;