Welcome on MasterOf13FPS! MasterOf13FPS

Register today or sign up if you are already a member and never miss any cool content again :)

[AACFLY] Wieso fliegt der nur nach oben wenn man ihn aktiviert?

MasterOf13FPS

Administrator
Staff member
Administrator
MasterOf13FPS
Joined
Jul 11, 2020
Messages
0
Reaction score
25
Points
0
Hier der Code
Bitte hilfe :C

public class Test2 extends Module{

private TimeHelper timer = new TimeHelper();
private static ValueDouble aacYSet;
private HashMap<EntityLivingBase, Float> lastHealth = new HashMap();
private boolean hasBeenDamaged = false;
private TimeHelper nerd = new TimeHelper();
Float oldLife;

public Test2()
{
super(new String[] { "AACFly" }, Category.Movement);
aacYSet = new ValueDouble("Y", 0.85D, 0.0D, 2.0D);
}

public void onEnable()
{
this.hasBeenDamaged = false;
this.nerd.reset();
net.minecraft.util.Timer.timerSpeed = 1.0F;
this.oldLife = Float.valueOf(Minecraft.thePlayer.getHealth() + Minecraft.thePlayer.getAbsorptionAmount());
}

public void onDisable()
{

this.hasBeenDamaged = false;
net.minecraft.util.Timer.timerSpeed = 1.0F;
}

@EventTarget
public void onEvent(EventTick event)
{
if ((!Minecraft.thePlayer.onGround) && (!BlockHelper.isInLiquid())) {
setSpeed(0.25F);
}
if (((Minecraft.thePlayer.fallDistance <= 0.0F) || (Minecraft.thePlayer.fallDistance >= 0.1D)) ||
(Minecraft.thePlayer.getHealth() + Minecraft.thePlayer.getAbsorptionAmount() < this.oldLife.floatValue()))
{
this.oldLife = Float.valueOf(Minecraft.thePlayer.getHealth() + Minecraft.thePlayer.getAbsorptionAmount());
Minecraft.getMinecraft().thePlayer.motionY = 0.0F;
this.hasBeenDamaged = true;
setSpeed(0.66F);
net.minecraft.util.Timer.timerSpeed = 0.7F;
}
if ((this.nerd.hasReached(750L)) &&
(this.hasBeenDamaged)) {
setSpeed(0.66F);
}
if ((!Minecraft.thePlayer.onGround) &&
(!this.hasBeenDamaged)) {
mc.gameSettings.keyBindBack.isPressed();
}
this.oldLife = Float.valueOf(Minecraft.thePlayer.getHealth() + Minecraft.thePlayer.getAbsorptionAmount());
}

@EventTarget
public void onUpdate(EventUpdate event) {}

@EventTarget
public void onPacker(EventPacketSent event)
{
if ((Minecraft.thePlayer.fallDistance > 4.0F) && ((event.getPacket() instanceof C03PacketPlayer)))
{
((C03PacketPlayer)event.getPacket()).field_149474_g = true;
Minecraft.thePlayer.fallDistance = 0.0F;
}
}

public static void setSpeed(float speed)
{
EntityPlayerSP player = Minecraft.thePlayer;
double yaw = player.rotationYaw;
boolean isMoving = (player.moveForward != 0.0F) || (player.moveStrafing != 0.0F);
boolean isMovingForward = player.moveForward > 0.0F;
boolean isMovingBackward = player.moveForward < 0.0F;
boolean isMovingRight = player.moveStrafing > 0.0F;
boolean isMovingLeft = player.moveStrafing < 0.0F;
boolean isMovingSideways = (isMovingLeft) || (isMovingRight);
boolean isMovingStraight = (isMovingForward) || (isMovingBackward);
if (isMoving)
{
if ((isMovingForward) && (!isMovingSideways)) {
yaw += 0.0D;
} else if ((isMovingBackward) && (!isMovingSideways)) {
yaw += 180.0D;
} else if ((isMovingForward) && (isMovingLeft)) {
yaw += 45.0D;
} else if (isMovingForward) {
yaw -= 45.0D;
} else if ((!isMovingStraight) && (isMovingLeft)) {
yaw += 90.0D;
} else if ((!isMovingStraight) && (isMovingRight)) {
yaw -= 90.0D;
} else if ((isMovingBackward) && (isMovingLeft)) {
yaw += 135.0D;
} else if (isMovingBackward) {
yaw -= 135.0D;
}
yaw = Math.toRadians(yaw);
player.motionX = (-Math.sin(yaw) * speed);
player.motionZ = (Math.cos(yaw) * speed);
}
}
}
 
shape1
shape2
shape3
shape4
shape5
shape6
Back
Top