-
-
Notifications
You must be signed in to change notification settings - Fork 533
Add ElytraFly Boost mode #6172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: nextgen
Are you sure you want to change the base?
Add ElytraFly Boost mode #6172
Conversation
…ng essential documentation
mc.options.jumpKey.isPressed -> { | ||
val upSpeed = (ModuleElytraFly.Speed.vertical.toDouble() * verticalControl) + pullUpBoost | ||
event.movement.withY(event.movement.y + upSpeed) | ||
} | ||
mc.options.sneakKey.isPressed -> { | ||
val downSpeed = ModuleElytraFly.Speed.vertical.toDouble() * verticalControl | ||
event.movement.withY(event.movement.y - downSpeed) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should check if both are pressed
.../ccbluex/liquidbounce/features/module/modules/movement/elytrafly/modes/ElytraFlyModeBoost.kt
Outdated
Show resolved
Hide resolved
*/ | ||
internal object ElytraFlyModeBoost : ElytraFlyMode("Boost") { | ||
|
||
private fun Vec3d.withY(y: Double): Vec3d = Vec3d(this.x, y, this.z) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put this in net.ccbluex.liquidbounce.utils.math.MinecraftVectorExtensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will implement all the suggestions and carry out a detailed revision. I am sure that much can be improved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put this in
net.ccbluex.liquidbounce.utils.math.MinecraftVectorExtensions
We already have Vec3d.copy(y=xxx)
…es/movement/elytrafly/modes/ElytraFlyModeBoost.kt Co-authored-by: ManInMyVan <[email protected]>
@@ -141,3 +141,5 @@ fun Vec3d.preferOver(other: Vec3d): Vec3d { | |||
val z = if (this.z == 0.0) other.z else this.z | |||
return Vec3d(x, y, z) | |||
} | |||
|
|||
fun Vec3d.withY(y: Double): Vec3d = Vec3d(this.x, y, this.z) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with Vec3d.copy(y=...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should have studied the code more closely. I probably missed something.
.../ccbluex/liquidbounce/features/module/modules/movement/elytrafly/modes/ElytraFlyModeBoost.kt
Show resolved
Hide resolved
private var currentAcceleration = 0.0f | ||
private var currentDiveSpeed = 0.0f | ||
|
||
private val diveAcceleration by float("DiveAcceleration", 0.05f, 0.01f..0.1f) | ||
private val diveEfficiency by float("DiveEfficiency", 0.8f, 0.4f..1.5f) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other variables settings should be above other variables
currentAcceleration = 0.0f | ||
currentDiveSpeed = 0.0f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currentAcceleration = 0.0f | |
currentDiveSpeed = 0.0f | |
currentAcceleration = 0f | |
currentDiveSpeed = 0f |
val diveFactor = min(player.pitch / 90f, 1f) | ||
currentDiveSpeed = min( | ||
currentDiveSpeed + diveAcceleration * diveFactor, | ||
1.2f // Maximum dive speed multiplier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use constants
I propose integrating a universal feature into the core cheat module, compatible with most servers. While the solution appears straightforward, it delivers flawless real-world performance.
I acknowledge that the current implementation has room for refinement, but it maintains production-ready stability.
Should you identify any imperfections, please notify me—I will implement immediate code corrections.
Key implementation highlights:
Codebase compliance: Seamless alignment with the repository structure and project file system
Full development lifecycle: Rigorous progression through development → testing → deployment
Combat-tested reliability: Verified functionality in live server environments