Skip to content

Commit

Permalink
LEGACY: Added VulcanLowHop & ItemPhysics Tweak (CCBlueX#2773)
Browse files Browse the repository at this point in the history
Yes very cool :>
  • Loading branch information
EclipsesDev committed Apr 12, 2024
1 parent 020c969 commit d4380c5
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.veru
import net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.verus.VerusHop
import net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.verus.VerusLowHop
import net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.vulcan.VulcanHop
import net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.vulcan.VulcanLowHop
import net.ccbluex.liquidbounce.utils.MovementUtils.isMoving
import net.ccbluex.liquidbounce.value.BoolValue
import net.ccbluex.liquidbounce.value.FloatValue
Expand Down Expand Up @@ -60,6 +61,7 @@ object Speed : Module("Speed", ModuleCategory.MOVEMENT) {

// Vulcan
VulcanHop,
VulcanLowHop,

// Matrix
OldMatrixHop,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* LiquidBounce Hacked Client
* A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
* https://github.com/CCBlueX/LiquidBounce/
*/
package net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.vulcan

import net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.SpeedMode
import net.ccbluex.liquidbounce.utils.MovementUtils.isMoving
import net.ccbluex.liquidbounce.utils.MovementUtils.strafe
import net.ccbluex.liquidbounce.utils.extensions.tryJump

object VulcanLowHop : SpeedMode("VulcanLowHop") {
override fun onUpdate() {
val player = mc.thePlayer ?: return
if (player.isInWater || player.isInLava || player.isInWeb || player.isOnLadder) return

if (isMoving) {
if (!player.onGround && player.fallDistance > 1.1) {
mc.timer.timerSpeed = 1f
player.motionY = -0.25
return
}

if (player.onGround) {
player.tryJump()
strafe(0.4815f)
mc.timer.timerSpeed = 1.263f
} else if (player.ticksExisted % 4 == 0) {
if (player.ticksExisted % 3 == 0) {
player.motionY = -0.01 / player.motionY
} else {
player.motionY = -player.motionY / player.posY
}
mc.timer.timerSpeed = 0.8985f
}

} else {
mc.timer.timerSpeed = 1f
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ private int func_177077_a(EntityItem itemIn, double x, double y, double z, float
return 0;
}

glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);

boolean isGui3d = ibakedmodel.isGui3d();
int count = getItemCount(itemStack);
float yOffset = 0.25F;
Expand Down Expand Up @@ -132,6 +135,8 @@ private int func_177077_a(EntityItem itemIn, double x, double y, double z, float
translate(offsetX, offsetY, offsetZ);
}

glDisable(GL_CULL_FACE);

color(1.0F, 1.0F, 1.0F, 1.0F);
return count;
}
Expand Down

0 comments on commit d4380c5

Please sign in to comment.