From 13d1bcd26d4248ffd53c5ddef7099b0ddbd7bc53 Mon Sep 17 00:00:00 2001 From: Dg636 Date: Sun, 31 Mar 2024 22:37:17 -0400 Subject: [PATCH 1/2] Update HypixelVelocity.kt --- .../combat/velocitys/other/HypixelVelocity.kt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/velocitys/other/HypixelVelocity.kt b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/velocitys/other/HypixelVelocity.kt index 1361c1b54c..e26fefe2c7 100644 --- a/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/velocitys/other/HypixelVelocity.kt +++ b/src/main/java/net/ccbluex/liquidbounce/features/module/modules/combat/velocitys/other/HypixelVelocity.kt @@ -6,17 +6,28 @@ package net.ccbluex.liquidbounce.features.module.modules.combat.velocitys.other import net.ccbluex.liquidbounce.event.PacketEvent +import net.ccbluex.liquidbounce.event.UpdateEvent import net.ccbluex.liquidbounce.features.module.modules.combat.velocitys.VelocityMode import net.minecraft.network.play.server.S12PacketEntityVelocity import net.ccbluex.liquidbounce.utils.misc.RandomUtils class HypixelVelocity : VelocityMode("Hypixel") { + private var offGroundTicks = 0 + override fun onVelocityPacket(event: PacketEvent) { val packet = event.packet if(packet is S12PacketEntityVelocity) { - event.cancelEvent() - mc.thePlayer.motionY = packet.getMotionY().toDouble() / 8000.0 + event.cancelEvent() + if (offGroundTicks < 5) mc.thePlayer.motionY = packet.getMotionY().toDouble() / 8000.0 + } + } + + override fun onUpdate(event: UpdateEvent) { + if (mc.thePlayer.onGround) { + offGroundTicks = 0 + } else { + offGroundTicks ++ } } } From 6dc3c3790969a576968c3f4ad59fe59b8ba4013d Mon Sep 17 00:00:00 2001 From: Dg636 Date: Mon, 1 Apr 2024 13:35:40 -0400 Subject: [PATCH 2/2] ??? --- .../injection/forge/mixins/item/MixinItemRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/item/MixinItemRenderer.java b/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/item/MixinItemRenderer.java index d8dfb9df04..e3eb9364ee 100644 --- a/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/item/MixinItemRenderer.java +++ b/src/main/java/net/ccbluex/liquidbounce/injection/forge/mixins/item/MixinItemRenderer.java @@ -189,10 +189,11 @@ public void renderItemInFirstPerson(float partialTicks) { this.transformFirstPersonItem(f, f1); break; case BLOCK: + GL11.glTranslated(fDPClient$animations.getTranslateXValue().get(), fDPClient$animations.getTranslateYValue().get(), fDPClient$animations.getTranslateZValue().get()); GlStateManager.rotate(fDPClient$animations.getRotateXValue().get(), 1.0F, 0.0F, 0.0F); GlStateManager.rotate(fDPClient$animations.getRotateYValue().get(), 0.0F, 1.0F, 0.0F); GlStateManager.rotate(fDPClient$animations.getRotateZValue().get(), 0.0F, 0.0F, 1.0F); - GL11.glTranslated(fDPClient$animations.getTranslateXValue().get(), fDPClient$animations.getTranslateYValue().get(), fDPClient$animations.getTranslateZValue().get()); + switch (fDPClient$animations.getBlockingModeValue().get()) { case "1.7": { transformFirstPersonItem(f, f1);