Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.aristhena.client.module.modules.movement;
- import me.aristhena.client.module.*;
- import me.aristhena.event.events.*;
- import me.aristhena.utils.*;
- import net.minecraft.entity.*;
- import java.util.*;
- import java.io.*;
- import me.aristhena.event.*;
- import net.minecraft.client.*;
- import net.minecraft.util.*;
- @Mod(color = 8607114)
- public class VeltFly extends Module
- {
- @EventTarget
- private void onUpdate(final UpdateEvent event) {
- if (event.getState() == Event.State.PRE) {
- final int xd = 0;
- if (ClientUtils.mc().gameSettings.keyBindJump.pressed) {
- ClientUtils.mc().thePlayer.motionY = Fly.speed;
- }
- if (ClientUtils.mc().gameSettings.keyBindSneak.pressed) {
- ClientUtils.mc().thePlayer.motionY = -Fly.speed;
- }
- if (isMoving(ClientUtils.player()) && !ClientUtils.mc().gameSettings.keyBindJump.pressed && !ClientUtils.mc().gameSettings.keyBindSneak.pressed && (ClientUtils.mc().thePlayer.motionY <= -0.41 || ClientUtils.mc().thePlayer.onGround)) {
- setSpeed(0.2873 * Fly.speed * 10.0);
- ClientUtils.mc().thePlayer.motionY = -0.6;
- event.isOnground();
- final Timer timer = ClientUtils.mc().timer;
- Timer.timerSpeed = 0.8f;
- final Object dawd = new HashMap();
- final ArrayList<Object[]> edeffesesfsfe = new ArrayList<Object[]>();
- for (int j = 0; j < new String[] { "RDMSTRING" }.length && j == 1; ++j) {}
- final ByteArrayOutputStream adawadwadsdaw = new ByteArrayOutputStream();
- final String[] awsfddda = { null };
- final int[] dwsdfsfdadd = new int[3];
- final char[] array = new char[23];
- }
- if (!ClientUtils.mc().gameSettings.keyBindJump.pressed && !ClientUtils.mc().gameSettings.keyBindSneak.pressed && (ClientUtils.mc().thePlayer.motionY <= -0.42 || ClientUtils.mc().thePlayer.onGround)) {
- ClientUtils.mc().thePlayer.motionY = 0.4;
- }
- }
- }
- public static boolean isMoving(final Entity ent) {
- return Minecraft.getMinecraft().thePlayer.moveForward != 0.0f || Minecraft.getMinecraft().thePlayer.moveStrafing != 0.0f;
- }
- public static void setSpeed(final double speed) {
- ClientUtils.mc().thePlayer.motionX = -MathHelper.sin(getDirection()) * speed;
- ClientUtils.mc().thePlayer.motionZ = MathHelper.cos(getDirection()) * speed;
- }
- public static float getDirection() {
- float yaw = ClientUtils.mc().thePlayer.rotationYawHead;
- final float forward = ClientUtils.mc().thePlayer.moveForward;
- final float strafe = ClientUtils.mc().thePlayer.moveStrafing;
- yaw += ((forward < 0.0f) ? 180 : 0);
- if (strafe < 0.0f) {
- yaw += ((forward < 0.0f) ? -45 : ((forward == 0.0f) ? 90 : 45));
- }
- if (strafe > 0.0f) {
- yaw -= ((forward < 0.0f) ? -45 : ((forward == 0.0f) ? 90 : 45));
- }
- return yaw * 0.017453292f;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement