This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port AACHop3.3.10 Speed From LiquidBouncePlusReborn
- Loading branch information
1 parent
2f3b54f
commit eb1b1bc
Showing
3 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...va/net/ccbluex/liquidbounce/features/module/modules/movement/speedmodes/aac/AACHop3310.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* LiquidBounce+ Hacked Client | ||
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge. | ||
* https://github.com/WYSI-Foundation/LiquidBouncePlus/ | ||
*/ | ||
package net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.aac | ||
|
||
import net.ccbluex.liquidbounce.LiquidBounce | ||
import net.ccbluex.liquidbounce.event.MoveEvent | ||
import net.ccbluex.liquidbounce.event.PacketEvent | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.Speed | ||
import net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.SpeedMode | ||
import net.ccbluex.liquidbounce.utils.MovementUtils | ||
import net.minecraft.client.settings.GameSettings | ||
import net.minecraft.network.play.server.S12PacketEntityVelocity | ||
|
||
object AACHop3310 : SpeedMode("AACHop3.3.10") { | ||
override fun onMove(event: MoveEvent) { | ||
val player = mc.thePlayer | ||
mc.gameSettings.keyBindJump.pressed = false | ||
MovementUtils.strafe((MovementUtils.getBaseMoveSpeed() * 1.0164f).toFloat()) | ||
if (mc.thePlayer.onGround && mc.thePlayer.isCollidedVertically && GameSettings.isKeyDown(mc.gameSettings.keyBindSneak)) { | ||
player.motionY = MovementUtils.getJumpBoostModifier(0.41999998688697815) | ||
event.y = player.motionY | ||
} | ||
if (mc.thePlayer.onGround && mc.thePlayer.isCollidedVertically && !GameSettings.isKeyDown(mc.gameSettings.keyBindSneak)) { | ||
player.motionY = MovementUtils.getJumpBoostModifier(0.41999998688697815) | ||
event.y = player.motionY | ||
} | ||
} | ||
|
||
fun onPacket(event: PacketEvent) { | ||
if (event.packet is S12PacketEntityVelocity) { | ||
if (mc.thePlayer.onGround && mc.thePlayer.isSneaking && MovementUtils.isMoving) return | ||
event.cancelEvent() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters