Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Handle
- public void onMoveHypixel(final EventMove event) {
- if (this.mode.getValue() == SpeedMode.Hypixel) {
- if (!Minecraft.thePlayer.isCollidedHorizontally) {
- if (round(Minecraft.thePlayer.posY - (int)Minecraft.thePlayer.posY, 3) == round(0.4, 3)) {
- EventMove.setY(Minecraft.thePlayer.motionY = 0.29);
- }
- else if (round(Minecraft.thePlayer.posY - (int)Minecraft.thePlayer.posY, 3) == round(0.71, 3)) {
- EventMove.setY(Minecraft.thePlayer.motionY = 0.04);
- }
- else if (round(Minecraft.thePlayer.posY - (int)Minecraft.thePlayer.posY, 3) == round(0.75, 3)) {
- EventMove.setY(Minecraft.thePlayer.motionY = 0.2);
- }
- else if (round(Minecraft.thePlayer.posY - (int)Minecraft.thePlayer.posY, 3) == round(0.55, 3)) {
- EventMove.setY(Minecraft.thePlayer.motionY = 0.14);
- }
- else if (round(Minecraft.thePlayer.posY - (int)Minecraft.thePlayer.posY, 3) == round(0.41, 3)) {
- EventMove.setY(Minecraft.thePlayer.motionY = 0.2);
- }
- }
- if (Minecraft.thePlayer.onGround && Speed.stage == 1 && (Minecraft.thePlayer.moveForward != 0.0f || Minecraft.thePlayer.moveStrafing != 0.0f)) {
- this.moveSpeed = 1.35 * this.getBaseMoveSpeed() - 0.01;
- }
- else if (Minecraft.thePlayer.onGround && Speed.stage == 2 && (Minecraft.thePlayer.moveForward != 0.0f || Minecraft.thePlayer.moveStrafing != 0.0f)) {
- EventMove.setY(Minecraft.thePlayer.motionY = 0.3999);
- this.moveSpeed *= 1.395;
- }
- else if (Speed.stage == 3) {
- final double difference = 0.66 * (this.lastDist - this.getBaseMoveSpeed());
- this.moveSpeed = this.lastDist - difference;
- }
- else {
- final List collidingList = Minecraft.theWorld.getCollidingBoundingBoxes(Minecraft.thePlayer, Minecraft.thePlayer.boundingBox.offset(0.0, Minecraft.thePlayer.motionY, 0.0));
- if ((collidingList.size() > 0 || Minecraft.thePlayer.isCollidedVertically) && Speed.stage > 0) {
- Speed.stage = ((Minecraft.thePlayer.moveForward != 0.0f || Minecraft.thePlayer.moveStrafing != 0.0f) ? 1 : 0);
- }
- this.moveSpeed = this.lastDist - this.lastDist / 159.0;
- }
- this.setMoveSpeed(event, this.moveSpeed = Math.max(this.moveSpeed, this.getBaseMoveSpeed()));
- if (Minecraft.thePlayer.moveForward != 0.0f || Minecraft.thePlayer.moveStrafing != 0.0f) {
- ++Speed.stage;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement