//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
package nursultan;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.Random;
import nursultan.bgw.a;
import nursultan.cpe.1;
import org.lwjgl.opengl.GL11;
public class cpe extends cou {
private final ctl dSi = (ctl)this.b(new ctl("Mode", "Matrix", new String[]{"Matrix", "Sunrise"}));
private final ctl dSj = (ctl)this.b(new ctl("Sort", "Distance", new String[]{"Distance", "Health"}));
private final ctn dSk = (ctn)this.b(new ctn("Targets", new ctn.a[]{new ctn.a("Friends", true), new ctn.a("Naked", true), new ctn.a("Invisible", true), new ctn.a("Mobs", true), new ctn.a("Players", true)}));
private final ctj dSl = (ctj)this.b(new ctj("Smart", true));
public final ctm dSm = (ctm)this.b(new ctm("Distance", 3.5F, 1.0F, 8.0F, 0.1F));
public final ctm dSn = (ctm)this.b(new ctm("Rotation distance", 4.2F, 1.0F, 8.0F, 0.1F, () -> {
return !this.dSl.aCv();
}));
private final ctj dSo = (ctj)this.b(new ctj("Ray trace", true));
private final ctj dSp = (ctj)this.b(new ctj("Walls", true));
private final ctj dSq = (ctj)this.b(new ctj("Only weapon", false));
private final ctj dSr = (ctj)this.b(new ctj("Client rotation", false));
private final ctj dSs = (ctj)this.b(new ctj("Check obsidian", false));
public final ctm dSt;
private final ctj dSu;
private final ctj dSv;
private final ctj dSw;
private final ctj dSx;
private final ctj dSy;
private final ctj dSz;
public final ctj dSA;
public final ctj dSB;
private final ctj dSC;
private apj dSD;
public static boolean dSE;
private final bg dSF;
public final bg dSG;
private final double[] dSH;
public cpe() {
super(cot.dPp, "KillAura", "Автоматически аттакует существ");
ctj var10009 = this.dSs;
Objects.requireNonNull(var10009);
this.dSt = (ctm)this.b(new ctm("Distance to obsidian", 4.0F, 3.0F, 16.0F, 1.0F, var10009::aCv));
this.dSu = (ctj)this.b(new ctj("Snap", false));
this.dSv = (ctj)this.b(new ctj("Sync", true));
this.dSw = (ctj)this.b(new ctj("Auto crit", true));
ctj var10006 = this.dSw;
Objects.requireNonNull(var10006);
this.dSx = (ctj)this.b(new ctj("Adaptive crits", false, var10006::aCv));
this.dSy = (ctj)this.b(new ctj("No crit if trapdoor", false));
this.dSz = (ctj)this.b(new ctj("Target esp", true));
this.dSA = (ctj)this.b(new ctj("Shield desync", true));
this.dSB = (ctj)this.b(new ctj("Shield attack", true));
this.dSC = (ctj)this.b(new ctj("Break shield", true));
this.dSF = new bg();
this.dSG = new bg();
this.dSH = new double[3];
}
private double B(double var1, double var3) {
return Math.sqrt(Math.pow(var1, 2.0) + Math.pow(var3, 2.0));
}
private void S(apj var1) {
if (this.T(var1)) {
boolean var2 = false;
if (bgw.cig) {
ebQ.player.Gq.c(new bgw(ebQ.player, a.cio));
var2 = true;
}
dSE = true;
if (this.dSu.aCv()) {
ebQ.player.baV = this.dSF.n;
ebQ.player.baW = this.dSF.o;
}
ebQ.Cm.a(ebQ.player, var1);
ebQ.player.a(brd.cEr);
this.aH(var1);
if (var2) {
ebQ.player.Gq.c(new bgw(ebQ.player, a.cin));
}
}
}
private boolean d(axh var1, int var2) {
if (var1.lM() && !var1.bfe.isEmpty()) {
bac var3 = var1.bfe.ga();
return var3.aA(var1.bfe) == azy.caD && var3.aB(var1.bfe) - var1.bff >= var2;
} else {
return false;
}
}
private double f(double var1, double var3, double var5, double var7, double var9, double var11) {
double var13 = var1 - var7;
double var15 = var3 - var9;
double var17 = var5 - var11;
return (double)bux.aL(var13 * var13 + var15 * var15 + var17 * var17);
}
private boolean R(apj var1) {
double var2 = var1.y(ebQ.player);
return var2 < Math.max((double)this.dSm.aCz(), this.aBg());
}
private bvb i(apj var1, float var2) {
if (var1.z(var1) >= 36.0) {
return null;
} else {
bvb var3 = this.a(nursultan.cpe.a.dSJ, var1);
bvb var4 = this.a(nursultan.cpe.a.dSK, var1);
bvb var5 = this.a(nursultan.cpe.a.dSL, var1);
ArrayList var6 = new ArrayList(Arrays.asList(var3, var4, var5));
var6.removeIf((var3x) -> {
return cud.a(this.u(var3x), var2, var1) != var1;
});
if (var6.isEmpty()) {
return null;
} else {
var6.sort((var1x, var2x) -> {
bg var3 = this.a(this.dSF, var1x);
bg var4 = this.a(this.dSF, var2x);
float var5 = Math.abs(var3.o);
float var6 = Math.abs(var4.o);
return (int)((var5 - var6) * 500.0F);
});
return (bvb)var6.get(0);
}
}
}
private bvb a(a var1, apj var2) {
float var10000;
switch (1.dSI[var1.ordinal()]) {
case 1:
var10000 = var2.MA - 0.2F;
break;
case 2:
var10000 = var2.MA / 2.0F;
break;
case 3:
var10000 = 0.9F;
break;
default:
throw new IncompatibleClassChangeError();
}
float var3 = var10000;
return var2.dT().X(0.0, (double)var3, 0.0);
}
private List<buu> a(buu var1, float var2) {
ArrayList var3 = new ArrayList();
int var4 = var1.getX();
int var5 = var1.getY();
int var6 = var1.getZ();
for(int var7 = var4 - (int)var2; (float)var7 <= (float)var4 + var2; ++var7) {
for(int var8 = var6 - (int)var2; (float)var8 <= (float)var6 + var2; ++var8) {
for(int var9 = var5 - (int)var2; (float)var9 < (float)var5 + var2; ++var9) {
double var10 = (double)((var4 - var7) * (var4 - var7) + (var6 - var8) * (var6 - var8) + (var5 - var9) * (var5 - var9));
if (var10 < (double)(var2 * var2)) {
var3.add(new buu(var7, var9, var8));
}
}
}
}
return var3;
}
private bg a(bg var1, bvb var2) {
double var3 = var2.ac - ebQ.player.ahQ;
double var5 = var2.ad - ebQ.player.bL(1.0F).ad;
double var7 = var2.ae - ebQ.player.ahS;
double var9 = this.B(var3, var7);
float var11 = (float)bux.aO(Math.toDegrees(Math.atan2(var7, var3)) - 90.0);
float var12 = (float)(-Math.toDegrees(Math.atan2(var5, var9)));
float var13 = bux.cM(var11 - var1.n);
float var14 = var12 - var1.o;
return new bg(var13, var14);
}
private bvb a(bvb var1, apj var2) {
float var3 = var2.Fn() + 0.1F;
but var4 = var2.sW().P((double)var3, (double)var3, (double)var3);
bvb var5 = this.i(var2, this.dSn.aCz());
if (var5 == null) {
var5 = cuc.a(var1, var4, var2.bL(1.0F), false, (double)this.dSn.aCz(), -1);
}
return var5;
}
@cmm
public void a(cod var1) {
if (this.dSD != null) {
acu var2 = ebQ.kb();
cuf.a(this.dSD, this.dSH);
if (this.dSz.aCv()) {
double var3 = this.dSH[0];
double var5 = this.dSH[1] + Math.sin((double)System.currentTimeMillis() / 200.0) + 1.0;
double var7 = this.dSH[2];
xr.uM();
xr.b(-var2.za(), -var2.zb(), -var2.zc());
xr.uF();
xr.uu();
xr.ab(770, 771);
xr.N(false);
GL11.glShadeModel(7425);
xr.uz();
float var9 = 0.5F;
cpk var12 = ckb.dJI.dJL.dPY;
ebP.a(5, agu.aJS);
for(int var11 = 0; var11 <= 45; ++var11) {
int var10 = var12.dT((float)(var11 * 48));
float var13 = bux.l(bux.dg((float)(var11 * 16)));
float var14 = bux.k(bux.dg((float)(var11 * 16)));
double var15 = var3 + (double)(0.5F * var14);
double var17 = var7 + (double)(0.5F * var13);
ebP.i(var15, var5 - Math.cos((double)System.currentTimeMillis() / 200.0) / 3.0, var17).bB(cux.cq(var10, 0)).ty();
ebP.i(var15, var5, var17).bB(cux.cq(var10, 180)).ty();
}
ebO.wh();
GL11.glShadeModel(7424);
xr.N(true);
xr.us();
xr.uy();
xr.ut();
xr.uE();
xr.uO();
xr.uN();
}
}
}
@cmm
public void a(cnu var1) {
if (this.dSD != null) {
if (var1.getPacket() instanceof bhf) {
var1.cZ(true);
}
bfj var3 = var1.getPacket();
if (var3 instanceof bhn) {
bhn var2 = (bhn)var3;
if (var2.WS().equals(nursultan.bhn.a.cjs) || var2.WS().equals(nursultan.bhn.a.cju)) {
var1.cZ(true);
}
}
}
}
@cmm
public void a(cnz var1) {
boolean var2 = this.dSi.gL("Sunrise") || this.dSv.aCv() || this.aBh();
if (var2) {
ebQ.world.cOe.stream().filter((var0) -> {
return var0 instanceof mk;
}).map((var0) -> {
return (mk)var0;
}).forEach(mk::ls);
}
this.dSD = this.aBf();
if (this.dSD instanceof axh && this.dSA.aCv() && this.d(ebQ.player, 4 + (new Random()).nextInt(4)) && ebQ.player.lM()) {
ebQ.Cm.f(ebQ.player);
}
if (this.dSD != null) {
this.P(this.dSD);
this.S(this.dSD);
}
if (var2) {
ebQ.world.cOe.stream().filter((var0) -> {
return var0 instanceof mk;
}).map((var0) -> {
return (mk)var0;
}).forEach(mk::lt);
}
}
@cmm
private void a(cnn var1) {
crr var2 = ckb.dJI.dJL.dQh;
boolean var3 = var2.qS() && var2.aCa();
if (this.dSD != null) {
var1.q(this.dSF.n, var3 ? var1.getPitch() : this.dSF.o);
if (this.dSr.aCv()) {
ebQ.player.baV = this.dSG.n;
ebQ.player.baW = this.dSG.o;
}
} else {
this.aBl();
}
}
private void P(apj var1) {
bvb var2 = this.a(ebQ.player.bL(1.0F), var1);
double var3 = ebQ.player.ahQ;
double var5 = ebQ.player.ahR + (double)ebQ.player.FZ();
double var7 = ebQ.player.ahS;
double var9 = var1.ahQ - var3;
double var11 = var1.dT().X(0.0, (double)(var1.MA / 2.0F), 0.0).ad - var5;
double var13 = var1.ahS - var7;
double var15 = this.B(var9, var13);
float var17 = (float)(-Math.toDegrees(Math.atan2(var11, var15)));
double var18 = var2.ac - var3;
double var20 = var2.ad - var5;
double var22 = var2.ae - var7;
double var24 = this.B(var18, var22);
float[] var26 = new float[]{(float)bux.aY(Math.atan2(var22, var18)) - 90.0F, (float)(-bux.aY(Math.atan2(var20, var24)))};
this.dSG.n += bux.M(bux.cM(var26[0] - this.dSG.n), -45.0F, 45.0F);
this.dSG.o += bux.M(var17 - this.dSG.o, -90.0F, 90.0F);
float var27 = var26[0] - this.dSF.n;
float var28 = var26[1] - this.dSF.o;
float var29 = bux.cM(var27);
float var30 = cuf.L(-2.0F, 2.0F);
float var31 = cuf.L(-5.0F, 5.0F);
float var32 = bux.M(var29 + var30, -60.0F + var31, 60.0F + var31);
float var33 = bux.M(var28 + var30, (float)(-(this.dSi.gL("Sunrise") ? 13 : 45)), (float)(this.dSi.gL("Sunrise") ? 13 : 45));
var26[0] = this.dSF.n + var32;
var26[1] = bux.M(this.dSF.o + var33 / (this.dSi.gL("Sunrise") ? 4.0F : 2.0F), -90.0F, 90.0F);
float var34 = ebQ.CT.aNz * 0.6F + 0.2F;
double var35 = Math.pow((double)var34, 3.0) * 8.0;
double var37 = var35 * 0.15000000596046448;
var26[0] = (float)((double)var26[0] - (double)(var26[0] - this.dSF.n) % var37);
var26[1] = (float)((double)var26[1] - (double)(var26[1] - this.dSF.o) % var37);
this.dSF.n = var26[0];
this.dSF.o = var26[1];
}
private bg u(bvb var1) {
double var2 = var1.ac - ebQ.player.ahQ;
double var4 = var1.ad - ebQ.player.bL(1.0F).ad;
double var6 = var1.ae - ebQ.player.ahS;
double var8 = this.B(var2, var6);
float var10 = (float)bux.aO(Math.toDegrees(Math.atan2(var6, var2)) - 90.0);
float var11 = (float)(-Math.toDegrees(Math.atan2(var4, var8)));
return new bg(var10, var11);
}
private boolean T(apj var1) {
boolean var2 = this.dSy.aCv() && (ebQ.world.getBlockState(new buu(ebQ.player.ahQ, ebQ.player.ahR - 0.10000000149011612, ebQ.player.ahS)).getBlock() instanceof jt || ebQ.world.getBlockState(new buu(ebQ.player.ahQ, ebQ.player.ahR + (double)ebQ.player.MA + 0.10000000149011612, ebQ.player.ahS)).getBlock() instanceof jt);
boolean var3 = ebQ.player.Fb() || ebQ.player.EV() || ebQ.player.bbd || ebQ.player.lP() || ebQ.player.GK() || ebQ.player.b(this.dSD) && this.dSx.aCv() || ebQ.player.b(ayk.bMO) || ebQ.player.bys.bzX || var2;
bda var4 = ebQ.player.Ii();
boolean var5 = this.dSo.aCv() && !cud.a(this.dSF.n, this.dSF.o, 0.0F, var1, (double)this.dSm.aCz());
if (!var5 && !(ebQ.player.y(var1) > (double)this.dSm.aCz())) {
if (this.dSq.aCv() && !(var4.ga() instanceof bdb) && !(var4.ga() instanceof baj)) {
return false;
} else if (ebQ.player.cA(1.5F) < 0.93F) {
return false;
} else {
boolean var6 = this.dSs.aCv() && this.aBi();
if (!var6 && !var3 && this.dSw.aCv()) {
return !ebQ.player.baZ && ebQ.player.bbj > 0.0F;
} else {
return true;
}
}
} else {
return false;
}
}
private double bk(buu var1) {
return this.f(ebQ.player.ahQ, ebQ.player.ahR, ebQ.player.ahS, (double)var1.getX(), (double)var1.getY(), (double)var1.getZ());
}
private boolean Q(apj var1) {
if (var1 == null) {
return false;
} else if (!ebQ.world.cNY.contains(var1)) {
return false;
} else if (var1 == ebQ.player) {
return false;
} else if (!var1.Fj()) {
return false;
} else if (!this.R(var1)) {
return false;
} else if (var1.Ey() == -1236879299) {
return false;
} else if (!this.dSk.jA(4) && var1 instanceof axh) {
return false;
} else if (!this.dSk.jA(2) && var1.FA()) {
return false;
} else {
if (var1 instanceof axh) {
axh var2 = (axh)var1;
if (this.dSk.jA(0) || !ckb.dJI.dJM.gz(var2.sp().getName())) {
return true;
}
if (!var1.Z(ebQ.player) && !this.dSp.aCv()) {
return false;
}
}
return var1 instanceof axf && this.dSk.jA(3);
}
}
private void aH(aoz var1) {
int var2 = cud.aCO();
if (!this.dSC.aCv() || var2 != -1) {
if (var1 instanceof apj) {
apj var3 = (apj)var1;
if (var3.IE().ga() instanceof bco) {
ebQ.player.Gq.c(new bgx(var2));
ebQ.Cm.rD();
ebQ.Cm.a(ebQ.player, var1);
ebQ.player.a(brd.cEr);
ebQ.player.Gq.c(new bgx(ebQ.player.bxU.bzR));
}
}
}
}
private boolean bi(buu var1) {
ld var2 = ebQ.world.getBlockState(var1);
return var2.getBlock() instanceof hh;
}
public apj aBk() {
return this.dSD;
}
public void aAV() {
if (ebQ.player != null) {
this.aBl();
}
this.dSD = null;
super.aAV();
}
public void aAW() {
this.dSD = null;
super.aAW();
}
private apj aBf() {
ArrayList var1 = new ArrayList();
Iterator var2 = cud.ebT.iterator();
while(true) {
apj var4;
do {
do {
aoz var3;
do {
do {
do {
if (!var2.hasNext()) {
if (var1.isEmpty()) {
return null;
}
if (this.dSD != null && var1.contains(this.dSD)) {
return this.dSD;
}
if (var1.size() > 1) {
switch (this.dSj.aCw()) {
case "Distance":
ml var10001 = ebQ.player;
Objects.requireNonNull(var10001);
var1.sort(Comparator.comparingDouble(var10001::x));
break;
case "Health":
var1.sort((var0, var1x) -> {
return (int)(var0.HW() - var1x.HW());
});
}
}
return (apj)var1.get(0);
}
var3 = (aoz)var2.next();
} while(var3 == null);
} while(var3 == ebQ.player);
} while(!(var3 instanceof apj));
var4 = (apj)var3;
} while(!this.Q(var4));
} while(!this.dSk.jA(1) && var4.HZ() < 6.0F);
if (var4.HW() > 0.0F) {
var1.add(var4);
}
}
}
private boolean aBi() {
if (!this.dSs.aCv()) {
return false;
} else {
buu var1 = (buu)this.a(this.aBj(), this.dSt.aCz()).stream().filter(this::bi).min(Comparator.comparing(this::bk)).orElse((Object)null);
return var1 != null;
}
}
private double aBg() {
return this.aBh() ? (double)this.dSn.asN() : (this.dSl.aCv() ? (double)(this.dSm.aCz() + 0.5F) : (double)this.dSn.aCz());
}
private void aBl() {
this.dSF.n = ebQ.player.baV;
this.dSF.o = ebQ.player.baW;
this.dSG.n = ebQ.player.baV;
this.dSG.o = ebQ.player.baW;
}
private buu aBj() {
return ebQ.player == null ? buu.ORIGIN : new buu(Math.floor(ebQ.player.ahQ), Math.floor(ebQ.player.ahR), Math.floor(ebQ.player.ahS));
}
private boolean aBh() {
cqy var1 = ckb.dJI.dJL.dPI;
double var2 = ebQ.player.ahQ;
double var4 = ebQ.player.ahR - 0.009999999776482582;
double var6 = ebQ.player.ahS;
return var1.qS() && cud.af(var2, var4, var6) == ayg.bCM;
}
}