From b9fbe216fd499425138b6de5d327f59c5348b44f Mon Sep 17 00:00:00 2001 From: Sophie Date: Thu, 17 Sep 2026 21:20:49 +0200 Subject: [PATCH] smart pitch for bounce --- .../modules/movement/elytrafly/modes/BounceElytraFly.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/lambda/module/modules/movement/elytrafly/modes/BounceElytraFly.kt b/src/main/kotlin/com/lambda/module/modules/movement/elytrafly/modes/BounceElytraFly.kt index ebc48b599..e481ece3e 100644 --- a/src/main/kotlin/com/lambda/module/modules/movement/elytrafly/modes/BounceElytraFly.kt +++ b/src/main/kotlin/com/lambda/module/modules/movement/elytrafly/modes/BounceElytraFly.kt @@ -69,6 +69,7 @@ class BounceElytraFly( private val takeoff by c.setting("Takeoff", true, "Automatically jumps and initiates gliding") private val autoPitch by c.setting("Auto Pitch", true, "Automatically pitches the players rotation down to bounce at faster speeds") private val pitch by c.setting("Pitch", 72.0, -90.0..90.0, 0.000001) { autoPitch } + private val smartPitch by c.setting("Smart", false, "Calculates the best pitch for bounce") { autoPitch } private val jump by c.setting("Jump", true, "Automatically jumps") private val flagPause by c.setting("FlagPause Pause", 5, 0..100, 1, "How long to pause if the server flags you for a movement check", "ticks") private val minimizePackets by c.setting("Minimize Packets", true, "Shrinks the amount of start fly packets sent to the server as much as possible") @@ -122,7 +123,11 @@ class BounceElytraFly( listen { pauseTimer.tick() - if (autoPitch) rotationRequest { pitch(pitch) }.submit() + if (autoPitch) { + // straight down while rising ,shallow once falling, makes for faster bouncing + if (smartPitch) rotationRequest { pitch(if (player.velocity.y > -0.2) 90.0 else 4.0) }.submit() + else rotationRequest { pitch(pitch) }.submit() + } if (handlePassingObstacles()) return@listen @@ -260,4 +265,4 @@ class BounceElytraFly( original } } == true -} \ No newline at end of file +}