Revert "aimbot settings"

This reverts commit 0eb230e2c0.
This commit is contained in:
Dewy REDACTED 2020-04-16 08:56:42 +01:00
parent 0eb230e2c0
commit 34053297b6
No known key found for this signature in database
GPG Key ID: 0CAA84A783228505
1 changed files with 3 additions and 21 deletions

View File

@ -2,21 +2,15 @@ package me.zeroeightsix.kami.module.modules.combat;
import me.zeroeightsix.kami.KamiMod; import me.zeroeightsix.kami.KamiMod;
import me.zeroeightsix.kami.module.Module; import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.setting.Setting;
import me.zeroeightsix.kami.setting.Settings;
import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.MathHelper;
/** // poop aimbot gonna finish tomorrow
* Created by Dewy on the 16th of April, 2020
*/
@Module.Info(name = "AimBot", description = "Automatically aims at entities for you.", category = Module.Category.COMBAT) @Module.Info(name = "AimBot", description = "Automatically aims at entities for you.", category = Module.Category.COMBAT)
public class AimBot extends Module { public class AimBot extends Module {
private Setting<Integer> fov = register(Settings.integerBuilder("FOV").withMinimum(90).withMaximum(360).withValue(360));
@Override @Override
public void onUpdate() { public void onUpdate() {
if (KamiMod.MODULE_MANAGER.getModuleT(Aura.class).isEnabled()) { if (KamiMod.MODULE_MANAGER.getModuleT(Aura.class).isEnabled()) {
@ -41,21 +35,9 @@ public class AimBot extends Module {
double diffY = mc.player.posY + (double) mc.player.getEyeHeight() - (entity.posY + (double) entity.getEyeHeight()); double diffY = mc.player.posY + (double) mc.player.getEyeHeight() - (entity.posY + (double) entity.getEyeHeight());
double xz = MathHelper.sqrt(diffX * diffX + diffZ * diffZ); double xz = MathHelper.sqrt(diffX * diffX + diffZ * diffZ);
float yaw = (float) normalizeAngle((Math.atan2(diffZ, diffX) * 180.0 / Math.PI) - 90.0f); float yaw = (float) (Math.atan2(diffZ, diffX) * 180.0 / Math.PI) - 90.0f;
float pitch = (float) normalizeAngle((-Math.atan2(diffY, xz) * 180.0 / Math.PI)); float pitch = (float) (-Math.atan2(diffY, xz) * 180.0 / Math.PI);
mc.player.setPositionAndRotation(mc.player.posX, mc.player.posY, mc.player.posZ, yaw, -pitch); mc.player.setPositionAndRotation(mc.player.posX, mc.player.posY, mc.player.posZ, yaw, -pitch);
} }
private static double normalizeAngle(double angle) {
while (angle <= -180.0) {
angle += 360.0;
}
while (angle > 180.0) {
angle -= 360.0;
}
return angle;
}
} }