@@ -43,9 +43,9 @@ object Speed : Module(
4343 private val strafeDecay by setting(" Strafe Decay" , 0.9937 , 0.9 .. 1.0 , 0.0001 , { mode == Mode .STRAFE })
4444 private val strafeJumpSpeed by setting(" Jump Speed" , 0.3 , 0.0 .. 1.0 , 0.0001 , { mode == Mode .STRAFE })
4545 private val strafeJumpHeight by setting(" Jump Height" , 0.42 , 0.1 .. 0.5 , 0.0001 , { mode == Mode .STRAFE })
46- private val strafeJumpDecay by setting(" Jump Decay" , 0.589 , 0.1 .. 1.0 , 0.0001 , { mode == Mode .STRAFE })
46+ private val strafeJumpDecay by setting(" Jump Decay" , 0.59 , 0.1 .. 1.0 , 0.0001 , { mode == Mode .STRAFE })
4747 private val strafeResetOnJump by setting(" Reset On Jump" , true , { mode == Mode .STRAFE })
48- private val strafeTimer by setting(" Strafe Timer" , 1.07f , 1.0f .. 1.1f , 0.01f , { mode == Mode .STRAFE })
48+ private val strafeTimer by setting(" Strafe Timer" , 1.09f , 1.0f .. 1.1f , 0.01f , { mode == Mode .STRAFE })
4949 private val strafeAutoJump by setting(" Auto Jump" , false , { mode == Mode .STRAFE })
5050
5151 // YPort settings
@@ -254,12 +254,10 @@ object Speed : Module(
254254
255255 modifyTimer(50f / strafeTimer)
256256
257- if (player.onGround) {
258- val shouldJump = player.movementInput.jump || (inputting && strafeAutoJump)
257+ val shouldJump = player.movementInput.jump || (inputting && strafeAutoJump)
259258
260- if (shouldJump) strafePhase = StrafePhase .JUMP
261- else currentSpeed = strafeBaseSpeed
262- }
259+ if (player.onGround && shouldJump)
260+ strafePhase = StrafePhase .JUMP
263261
264262 strafePhase = when (strafePhase) {
265263 StrafePhase .JUMP -> {
@@ -284,6 +282,9 @@ object Speed : Module(
284282 }
285283 }
286284
285+ if (player.onGround && ! shouldJump)
286+ currentSpeed = strafeBaseSpeed
287+
287288 currentSpeed = currentSpeed.coerceAtLeast(strafeBaseSpeed).coerceAtMost(strafeMaxSpeed)
288289
289290 val moveSpeed = if (! inputting) {
@@ -299,5 +300,6 @@ object Speed : Module(
299300 }
300301
301302 // For HoleSnap & Surround
302- fun isStrafing () = mode == Mode .STRAFE
303+ fun isStrafing () =
304+ mode == Mode .STRAFE
303305}
0 commit comments