Skip to content

Commit

Permalink
Update HypixelHopSpeed.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
C00LC0D35 authored Apr 18, 2023
1 parent 7e40a41 commit a3a496a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ class HypixelHopSpeed : SpeedMode("HypixelHop") {
if (mc.thePlayer.onGround) {
mc.thePlayer.jump()

val minSpeed = 0.43f + 0.07f * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1).toFloat()
MovementUtils.strafe(MovementUtils.getSpeed() * (1.005 + 0.008 * customSpeedBoost.get().toDouble() * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1)).toFloat())
val minSpeed = 0.43f + 0.04f * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1).toFloat()
MovementUtils.strafe(MovementUtils.getSpeed() * (1.005 + 0.008 * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1)).toFloat())
if (MovementUtils.getSpeed() < minSpeed) {
MovementUtils.strafe(minSpeed)
}
Expand All @@ -125,8 +125,8 @@ class HypixelHopSpeed : SpeedMode("HypixelHop") {
} else {

if (mc.thePlayer.isPotionActive(Potion.moveSpeed)) {
mc.thePlayer.motionX *= (1.0003 + 0.0018 * customSpeedBoost.get().toDouble() * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1))
mc.thePlayer.motionZ *= (1.0003 + 0.0018 * customSpeedBoost.get().toDouble() * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1))
mc.thePlayer.motionX *= (1.0003 + 0.0008 * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1))
mc.thePlayer.motionZ *= (1.0003 + 0.0008 * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1))
}

mc.thePlayer.speedInAir = 0.02f + 0.001f * (mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).amplifier + 1).toFloat()
Expand Down

0 comments on commit a3a496a

Please sign in to comment.