Open gabrielvicenteYT opened 4 years ago
hypixelhop is good
hypixelhop is good
hypixelhop is slow and it looks like i lag in movement when i use it
`package net.ccbluex.liquidbounce.features.module.modules.movement.speeds;
import net.ccbluex.liquidbounce.LiquidBounce; import net.ccbluex.liquidbounce.event.MoveEvent; import net.ccbluex.liquidbounce.features.module.modules.movement.Speed; import net.ccbluex.liquidbounce.utils.MovementUtils; import net.minecraft.block.BlockStairs; import net.minecraft.entity.Entity; import net.minecraft.potion.Potion; import net.minecraft.util.BlockPos;
import java.util.List;
public class Hypixel extends SpeedMode { private int stage; private int hops; private double movementSpeed; private double distance; final Speed speeValue = (Speed) LiquidBounce.moduleManager.get(Speed.class);
public Hypixel() {
super("Hypixel");
}
@Override
public void onEnable() {
mc.thePlayer.motionZ *= 0.0D;
mc.thePlayer.motionX *= 0.0D;
mc.timer.timerSpeed = 1.0F;
this.distance = 0.0D;
this.stage = 0;
this.hops = 1;
}
@Override
public void onDisable() {
mc.thePlayer.stepHeight = 0.625F;
mc.timer.timerSpeed = 1.0F;
}
@Override
public void onMotion() {
double xDist = mc.thePlayer.posX - mc.thePlayer.prevPosX;
double zDist = mc.thePlayer.posZ - mc.thePlayer.prevPosZ;
distance = Math.sqrt(xDist * xDist + zDist * zDist);
}
@Override
public void onUpdate() {
}
public boolean canZoom() {
return (mc.thePlayer.moveForward != 0.0f || mc.thePlayer.moveStrafing != 0.0f) && mc.thePlayer.onGround;
}
private double defaultSpeed() {
double baseSpeed = 0.2873D;
if (mc.thePlayer.isPotionActive(Potion.moveSpeed)) {
int amplifier = mc.thePlayer.getActivePotionEffect(Potion.moveSpeed).getAmplifier();
baseSpeed *= 1.0D + 0.2D * (double) (amplifier + 1);
}
return baseSpeed;
}
private void setMotion(MoveEvent em, double speed) {
double forward = mc.thePlayer.movementInput.moveForward;
double strafe = mc.thePlayer.movementInput.moveStrafe;
float yaw = mc.thePlayer.rotationYaw;
if (forward == 0.0 && strafe == 0.0) {
em.setX(0.0);
em.setZ(0.0);
} else {
if (forward != 0.0) {
if (strafe > 0.0) {
yaw += (float) (forward > 0.0 ? -45 : 45);
} else if (strafe < 0.0) {
yaw += (float) (forward > 0.0 ? 45 : -45);
}
strafe = 0.0;
if (forward > 0.0) {
forward = 1.0;
} else if (forward < 0.0) {
forward = -1.0;
}
}
em.setX(forward * speed * Math.cos(Math.toRadians(yaw + 90))
+ strafe * speed * Math.sin(Math.toRadians(yaw + 90)));
em.setZ(forward * speed * Math.sin(Math.toRadians(yaw + 90))
- strafe * speed * Math.cos(Math.toRadians(yaw + 90)));
if (forward == 0.0F && strafe == 0.0F) {
em.setX(0.0);
em.setZ(0.0);
}
}
}
@Override
public void onMove(MoveEvent e) {
double lnk = 0.4048888688697815D;
if (mc.thePlayer.isPotionActive(Potion.jump)) {
lnk += ((float) (mc.thePlayer.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1f);
}
if (this.canZoom() && this.stage == 2
&& (mc.thePlayer.moveForward != 0.0f || mc.thePlayer.moveStrafing != 0.0f)) {
this.mc.thePlayer.motionY = lnk;
e.setY(mc.thePlayer.motionY);
final Speed speed = (Speed) LiquidBounce.moduleManager.getModule(Speed.class);
BlockPos pos = new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ);
boolean needslow = mc.theWorld.getBlockState(pos).getBlock() instanceof BlockStairs;
if (this.mc.thePlayer.isInWater()){
this.movementSpeed *= 1.08D;
} else if (this.mc.thePlayer.isInLava()){
this.movementSpeed *= 0.4D;
} else this.movementSpeed *= (needslow && speed.stiarcheckValue.get()) ? 1.0D : 1.7D;
} else if (this.stage == 3) {
double diff = (0.66 + movementSpeed * 0.066) * (this.distance - this.defaultSpeed());
this.movementSpeed = this.distance - diff;
} else {
if (getCollidingList(e.getY()).size() > 0 || this.mc.thePlayer.isCollidedVertically && this.stage > 0) {
this.stage = MovementUtils.isMoving() ? 1 : 0;
}
this.movementSpeed = this.distance - this.distance / 159.0;
}
this.movementSpeed = Math.max(this.movementSpeed, this.defaultSpeed());
this.setMotion(e, movementSpeed);
stage++;
}
}`
Add "Hypixel<" Speed Mode (like sigma 5.0)