Исходник Target Esp Призраки / exp 2.0

Начинающий
Статус
Оффлайн
Регистрация
18 Июл 2024
Сообщения
6
Реакции[?]
0
Поинты[?]
0

Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:

  • бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
  • маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
  • приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
  • обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.

Спасибо!

Код:
@FunctionAnnotation(
name = "TargetESP",
type = Type.Render
)
public class TargetESP extends Function {
private final Animation alpha = new DecelerateAnimation(600, 255.0);
ModeSetting Modes = new ModeSetting("Визуализация", "Нурсултан", new String[]{"Nursultan", "Wild", "Wild2", "Quad", "Triangle", "RoundTriangle", "Призраки"});
public static final long detime = System.currentTimeMillis();
private LivingEntity currentTarget;
private ResourceLocation glowCircle;
public SliderSetting scale = (new SliderSetting("Размер", 2.0F, 1.0F, 3.0F, 0.1F)).setVisible(() -> {
return this.Modes.is("Призраки");
});
public CompactAnimation markerA;
private final Animation alpha2 = new DecelerateAnimation(255, 255.0);
private long currentTime;
private float animation = 0.0F;
public float markerX = 0.0F;
public float markerY = 0.0F;
public float markerZ = 0.0F;
private boolean markerReached = false;
float size = 150.0F;
boolean markerRQ;
Animation markerAnimation = new EaseInOutQuad(200, 0.20000000298023224);

public TargetESP() {
this.addSettings(new Setting[]{this.Modes, this.scale});
this.markerA = new CompactAnimation(Easing.EASE_OUT_CUBIC, 600L);
this.glowCircle = new ResourceLocation("expensive/images/glow.png");
}

public void onEvent(Event event) {
boolean bl = Managment.FUNCTION_MANAGER.get("Aura").isState();
if (event instanceof EventUpdate) {
if (AuraFunction.target != null) {
this.currentTarget = AuraFunction.target;
}

this.alpha.setDirection(bl && AuraFunction.target != null ? Direction.FORWARDS : Direction.BACKWARDS);
}

if (event instanceof EventRender eventRender) {
if (this.alpha.finished(Direction.BACKWARDS)) {
return;
}

if (this.currentTarget != null) {
Minecraft var10001 = mc;
if (this.currentTarget != Minecraft.player) {
double d = this.currentTarget.lastTickPosX + (this.currentTarget.getPosX() - this.currentTarget.lastTickPosX) * (double)eventRender.partialTicks;
double d2 = this.currentTarget.lastTickPosY + (this.currentTarget.getPosY() - this.currentTarget.lastTickPosY) * (double)eventRender.partialTicks;
double d3 = this.currentTarget.lastTickPosZ + (this.currentTarget.getPosZ() - this.currentTarget.lastTickPosZ) * (double)eventRender.partialTicks;
Vector2d vector2d = ProjectionUtils.project(d, d2 + 1.0, d3);
int n = RenderUtil.reAlphaInt(ColorUtil.getColorStyle(0.0F), (int)this.alpha.getOutput());
if (this.Modes.is("Nursultan")) {
if (vector2d != null) {
GL11.glPushMatrix();
GL11.glTranslatef((float)vector2d.x, (float)vector2d.y, 0.0F);
GL11.glRotatef((float)(Math.sin((double)((float)(System.currentTimeMillis() - detime) / 1000.0F)) * 360.0), 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float)(-vector2d.x), (float)(-vector2d.y), 0.0F);
Render2D.drawImage(new ResourceLocation("expensive/images/target-esp2.png"), (float)(vector2d.x - 50.0), (float)(vector2d.y - 50.0), 100.0F, 100.0F, n);
GL11.glPopMatrix();
}
} else if (this.Modes.is("Призраки")) {
if (AuraFunction.target == null) {
this.markerReached = false;
this.markerRQ = false;
this.markerAnimation = new EaseInOutQuad(200, 0.20000000298023224);
this.markerAnimation.reset();
this.markerA.run(0.0);
} else {
this.markerA.run(1.0);
}

if (!this.markerReached) {
this.markerAnimation.setDirection(true);
if (this.markerAnimation.finished(Direction.FORWARDS)) {
this.markerReached = true;
}
} else {
this.markerAnimation.setDirection(false);
}

MatrixStack ms = new MatrixStack();
if (AuraFunction.target != null) {
double xv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosX, AuraFunction.target.getPosX());
double yv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosY, AuraFunction.target.getPosY()) + (double)(AuraFunction.target.getHeight() / 1.6F);
double zv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosZ, AuraFunction.target.getPosZ());
this.markerX = (float)xv;
this.markerY = (float)yv;
this.markerZ = (float)zv;
}

this.renderAlternativeMarker(ms);
} else {
String imageName;
if (this.Modes.is("Wild")) {
imageName = "expensive/images/cyber.png";
} else if (this.Modes.is("Wild2")) {
imageName = "expensive/images/cyber1.png";
} else if (this.Modes.is("Quad")) {
imageName = "expensive/images/quad.png";
} else if (this.Modes.is("Triangle1")) {
imageName = "expensive/images/triangle.png";
} else if (this.Modes.is("RoundTriangle")) {
imageName = "expensive/images/round_triangle.png";
} else {
imageName = "expensive/images/target-esp2.png";
}

if (vector2d != null) {
GL11.glPushMatrix();
GL11.glTranslatef((float)vector2d.x, (float)vector2d.y, 0.0F);
GL11.glRotatef((float)(Math.sin((double)((float)(System.currentTimeMillis() - detime) / 1000.0F)) * 360.0), 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float)(-vector2d.x), (float)(-vector2d.y), 0.0F);
Render2D.drawImage(new ResourceLocation(imageName), (float)(vector2d.x - 50.0), (float)(vector2d.y - 50.0), 100.0F, 100.0F, n);
GL11.glPopMatrix();
}
}
}
}
}

}

public void renderAlternativeMarker(MatrixStack stack) {
float c = (float)((double)((float)(System.currentTimeMillis() - Initilization.startTime) / 1500.0F) + Math.sin((double)((float)(System.currentTimeMillis() - Initilization.startTime) / 1500.0F)) / 10.0);
double ix = -mc.getRenderManager().info.getProjectedView().getX();
double iy = -mc.getRenderManager().info.getProjectedView().getY();
double iz = -mc.getRenderManager().info.getProjectedView().getZ();
double x = (double)this.markerX;
double y = (double)this.markerY;
double z = (double)this.markerZ;
float alpha = Shaders.shaderPackLoaded ? 1.0F : 0.5F;
alpha *= this.markerA.getNumberValue().floatValue();
boolean rb = false;
rb = true;
float pl = 0.0F;
boolean fa = true;

for(int b = 0; b < 3; ++b) {
for(float i = c * 360.0F; i < c * 360.0F + 90.0F; i += 2.0F) {
float max = c * 360.0F + 90.0F;
float dc = MathUtil.normalize(i, c * 360.0F - 45.0F, max);
Color color = ColorUtil.calculateColorA((int)i * 2 + b * 32);
Color color2 = ColorUtil.calculateColorB((int)i * 2 + b * 32 + 4);
float rf = 0.6F * this.markerA.getNumberValue().floatValue();
double radians = Math.toRadians((double)i);
double plY = (double)pl + Math.sin(radians * 1.2000000476837158) * 0.10000000149011612;
stack.push();
stack.translate(ix, iy, iz);
stack.translate(x, y, z);
stack.rotate(mc.getRenderManager().info.getRotation());
RenderSystem.depthMask(false);
float q = (!fa ? 0.25F : 0.15F) * (Math.max(fa ? 0.25F : 0.15F, fa ? dc : (1.0F - -(0.4F - dc)) / 2.0F) + 0.45F);
float w = q * (this.scale.getValue().floatValue() + (0.5F - alpha) * 2.0F);
Render2D.drawImage(stack, new ResourceLocation("expensive/images/glow.png"), Math.cos(radians) * (double)rf - (double)(w / 2.0F), plY - 0.7, Math.sin(radians) * (double)rf - (double)(w / 2.0F), (double)w, (double)w, NColor.fromColor(color).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color2).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color2).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color).withCustomAlpha(alpha).hashCode());
GL11.glEnable(2929);
RenderSystem.depthMask(true);
stack.pop();
}

c *= -1.25F;
fa = !fa;
pl += 0.45F;
}

}
}
 
Начинающий
Статус
Оффлайн
Регистрация
12 Июн 2024
Сообщения
486
Реакции[?]
1
Поинты[?]
1K
Код:
@FunctionAnnotation(
name = "TargetESP",
type = Type.Render
)
public class TargetESP extends Function {
private final Animation alpha = new DecelerateAnimation(600, 255.0);
ModeSetting Modes = new ModeSetting("Визуализация", "Нурсултан", new String[]{"Nursultan", "Wild", "Wild2", "Quad", "Triangle", "RoundTriangle", "Призраки"});
public static final long detime = System.currentTimeMillis();
private LivingEntity currentTarget;
private ResourceLocation glowCircle;
public SliderSetting scale = (new SliderSetting("Размер", 2.0F, 1.0F, 3.0F, 0.1F)).setVisible(() -> {
return this.Modes.is("Призраки");
});
public CompactAnimation markerA;
private final Animation alpha2 = new DecelerateAnimation(255, 255.0);
private long currentTime;
private float animation = 0.0F;
public float markerX = 0.0F;
public float markerY = 0.0F;
public float markerZ = 0.0F;
private boolean markerReached = false;
float size = 150.0F;
boolean markerRQ;
Animation markerAnimation = new EaseInOutQuad(200, 0.20000000298023224);

public TargetESP() {
this.addSettings(new Setting[]{this.Modes, this.scale});
this.markerA = new CompactAnimation(Easing.EASE_OUT_CUBIC, 600L);
this.glowCircle = new ResourceLocation("expensive/images/glow.png");
}

public void onEvent(Event event) {
boolean bl = Managment.FUNCTION_MANAGER.get("Aura").isState();
if (event instanceof EventUpdate) {
if (AuraFunction.target != null) {
this.currentTarget = AuraFunction.target;
}

this.alpha.setDirection(bl && AuraFunction.target != null ? Direction.FORWARDS : Direction.BACKWARDS);
}

if (event instanceof EventRender eventRender) {
if (this.alpha.finished(Direction.BACKWARDS)) {
return;
}

if (this.currentTarget != null) {
Minecraft var10001 = mc;
if (this.currentTarget != Minecraft.player) {
double d = this.currentTarget.lastTickPosX + (this.currentTarget.getPosX() - this.currentTarget.lastTickPosX) * (double)eventRender.partialTicks;
double d2 = this.currentTarget.lastTickPosY + (this.currentTarget.getPosY() - this.currentTarget.lastTickPosY) * (double)eventRender.partialTicks;
double d3 = this.currentTarget.lastTickPosZ + (this.currentTarget.getPosZ() - this.currentTarget.lastTickPosZ) * (double)eventRender.partialTicks;
Vector2d vector2d = ProjectionUtils.project(d, d2 + 1.0, d3);
int n = RenderUtil.reAlphaInt(ColorUtil.getColorStyle(0.0F), (int)this.alpha.getOutput());
if (this.Modes.is("Nursultan")) {
if (vector2d != null) {
GL11.glPushMatrix();
GL11.glTranslatef((float)vector2d.x, (float)vector2d.y, 0.0F);
GL11.glRotatef((float)(Math.sin((double)((float)(System.currentTimeMillis() - detime) / 1000.0F)) * 360.0), 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float)(-vector2d.x), (float)(-vector2d.y), 0.0F);
Render2D.drawImage(new ResourceLocation("expensive/images/target-esp2.png"), (float)(vector2d.x - 50.0), (float)(vector2d.y - 50.0), 100.0F, 100.0F, n);
GL11.glPopMatrix();
}
} else if (this.Modes.is("Призраки")) {
if (AuraFunction.target == null) {
this.markerReached = false;
this.markerRQ = false;
this.markerAnimation = new EaseInOutQuad(200, 0.20000000298023224);
this.markerAnimation.reset();
this.markerA.run(0.0);
} else {
this.markerA.run(1.0);
}

if (!this.markerReached) {
this.markerAnimation.setDirection(true);
if (this.markerAnimation.finished(Direction.FORWARDS)) {
this.markerReached = true;
}
} else {
this.markerAnimation.setDirection(false);
}

MatrixStack ms = new MatrixStack();
if (AuraFunction.target != null) {
double xv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosX, AuraFunction.target.getPosX());
double yv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosY, AuraFunction.target.getPosY()) + (double)(AuraFunction.target.getHeight() / 1.6F);
double zv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosZ, AuraFunction.target.getPosZ());
this.markerX = (float)xv;
this.markerY = (float)yv;
this.markerZ = (float)zv;
}

this.renderAlternativeMarker(ms);
} else {
String imageName;
if (this.Modes.is("Wild")) {
imageName = "expensive/images/cyber.png";
} else if (this.Modes.is("Wild2")) {
imageName = "expensive/images/cyber1.png";
} else if (this.Modes.is("Quad")) {
imageName = "expensive/images/quad.png";
} else if (this.Modes.is("Triangle1")) {
imageName = "expensive/images/triangle.png";
} else if (this.Modes.is("RoundTriangle")) {
imageName = "expensive/images/round_triangle.png";
} else {
imageName = "expensive/images/target-esp2.png";
}

if (vector2d != null) {
GL11.glPushMatrix();
GL11.glTranslatef((float)vector2d.x, (float)vector2d.y, 0.0F);
GL11.glRotatef((float)(Math.sin((double)((float)(System.currentTimeMillis() - detime) / 1000.0F)) * 360.0), 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float)(-vector2d.x), (float)(-vector2d.y), 0.0F);
Render2D.drawImage(new ResourceLocation(imageName), (float)(vector2d.x - 50.0), (float)(vector2d.y - 50.0), 100.0F, 100.0F, n);
GL11.glPopMatrix();
}
}
}
}
}

}

public void renderAlternativeMarker(MatrixStack stack) {
float c = (float)((double)((float)(System.currentTimeMillis() - Initilization.startTime) / 1500.0F) + Math.sin((double)((float)(System.currentTimeMillis() - Initilization.startTime) / 1500.0F)) / 10.0);
double ix = -mc.getRenderManager().info.getProjectedView().getX();
double iy = -mc.getRenderManager().info.getProjectedView().getY();
double iz = -mc.getRenderManager().info.getProjectedView().getZ();
double x = (double)this.markerX;
double y = (double)this.markerY;
double z = (double)this.markerZ;
float alpha = Shaders.shaderPackLoaded ? 1.0F : 0.5F;
alpha *= this.markerA.getNumberValue().floatValue();
boolean rb = false;
rb = true;
float pl = 0.0F;
boolean fa = true;

for(int b = 0; b < 3; ++b) {
for(float i = c * 360.0F; i < c * 360.0F + 90.0F; i += 2.0F) {
float max = c * 360.0F + 90.0F;
float dc = MathUtil.normalize(i, c * 360.0F - 45.0F, max);
Color color = ColorUtil.calculateColorA((int)i * 2 + b * 32);
Color color2 = ColorUtil.calculateColorB((int)i * 2 + b * 32 + 4);
float rf = 0.6F * this.markerA.getNumberValue().floatValue();
double radians = Math.toRadians((double)i);
double plY = (double)pl + Math.sin(radians * 1.2000000476837158) * 0.10000000149011612;
stack.push();
stack.translate(ix, iy, iz);
stack.translate(x, y, z);
stack.rotate(mc.getRenderManager().info.getRotation());
RenderSystem.depthMask(false);
float q = (!fa ? 0.25F : 0.15F) * (Math.max(fa ? 0.25F : 0.15F, fa ? dc : (1.0F - -(0.4F - dc)) / 2.0F) + 0.45F);
float w = q * (this.scale.getValue().floatValue() + (0.5F - alpha) * 2.0F);
Render2D.drawImage(stack, new ResourceLocation("expensive/images/glow.png"), Math.cos(radians) * (double)rf - (double)(w / 2.0F), plY - 0.7, Math.sin(radians) * (double)rf - (double)(w / 2.0F), (double)w, (double)w, NColor.fromColor(color).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color2).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color2).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color).withCustomAlpha(alpha).hashCode());
GL11.glEnable(2929);
RenderSystem.depthMask(true);
stack.pop();
}

c *= -1.25F;
fa = !fa;
pl += 0.45F;
}

}
}
/del перезалив
 
Начинающий
Статус
Оффлайн
Регистрация
6 Сен 2023
Сообщения
3
Реакции[?]
0
Поинты[?]
0
MathUtil.normalize ColorUtil.calculateColorA
ColorUtil.calculateColorB CompactAnimation где пастеры возьмут?
 
Начинающий
Статус
Оффлайн
Регистрация
3 Окт 2022
Сообщения
200
Реакции[?]
1
Поинты[?]
1K
Код:
@FunctionAnnotation(
name = "TargetESP",
type = Type.Render
)
public class TargetESP extends Function {
private final Animation alpha = new DecelerateAnimation(600, 255.0);
ModeSetting Modes = new ModeSetting("Визуализация", "Нурсултан", new String[]{"Nursultan", "Wild", "Wild2", "Quad", "Triangle", "RoundTriangle", "Призраки"});
public static final long detime = System.currentTimeMillis();
private LivingEntity currentTarget;
private ResourceLocation glowCircle;
public SliderSetting scale = (new SliderSetting("Размер", 2.0F, 1.0F, 3.0F, 0.1F)).setVisible(() -> {
return this.Modes.is("Призраки");
});
public CompactAnimation markerA;
private final Animation alpha2 = new DecelerateAnimation(255, 255.0);
private long currentTime;
private float animation = 0.0F;
public float markerX = 0.0F;
public float markerY = 0.0F;
public float markerZ = 0.0F;
private boolean markerReached = false;
float size = 150.0F;
boolean markerRQ;
Animation markerAnimation = new EaseInOutQuad(200, 0.20000000298023224);

public TargetESP() {
this.addSettings(new Setting[]{this.Modes, this.scale});
this.markerA = new CompactAnimation(Easing.EASE_OUT_CUBIC, 600L);
this.glowCircle = new ResourceLocation("expensive/images/glow.png");
}

public void onEvent(Event event) {
boolean bl = Managment.FUNCTION_MANAGER.get("Aura").isState();
if (event instanceof EventUpdate) {
if (AuraFunction.target != null) {
this.currentTarget = AuraFunction.target;
}

this.alpha.setDirection(bl && AuraFunction.target != null ? Direction.FORWARDS : Direction.BACKWARDS);
}

if (event instanceof EventRender eventRender) {
if (this.alpha.finished(Direction.BACKWARDS)) {
return;
}

if (this.currentTarget != null) {
Minecraft var10001 = mc;
if (this.currentTarget != Minecraft.player) {
double d = this.currentTarget.lastTickPosX + (this.currentTarget.getPosX() - this.currentTarget.lastTickPosX) * (double)eventRender.partialTicks;
double d2 = this.currentTarget.lastTickPosY + (this.currentTarget.getPosY() - this.currentTarget.lastTickPosY) * (double)eventRender.partialTicks;
double d3 = this.currentTarget.lastTickPosZ + (this.currentTarget.getPosZ() - this.currentTarget.lastTickPosZ) * (double)eventRender.partialTicks;
Vector2d vector2d = ProjectionUtils.project(d, d2 + 1.0, d3);
int n = RenderUtil.reAlphaInt(ColorUtil.getColorStyle(0.0F), (int)this.alpha.getOutput());
if (this.Modes.is("Nursultan")) {
if (vector2d != null) {
GL11.glPushMatrix();
GL11.glTranslatef((float)vector2d.x, (float)vector2d.y, 0.0F);
GL11.glRotatef((float)(Math.sin((double)((float)(System.currentTimeMillis() - detime) / 1000.0F)) * 360.0), 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float)(-vector2d.x), (float)(-vector2d.y), 0.0F);
Render2D.drawImage(new ResourceLocation("expensive/images/target-esp2.png"), (float)(vector2d.x - 50.0), (float)(vector2d.y - 50.0), 100.0F, 100.0F, n);
GL11.glPopMatrix();
}
} else if (this.Modes.is("Призраки")) {
if (AuraFunction.target == null) {
this.markerReached = false;
this.markerRQ = false;
this.markerAnimation = new EaseInOutQuad(200, 0.20000000298023224);
this.markerAnimation.reset();
this.markerA.run(0.0);
} else {
this.markerA.run(1.0);
}

if (!this.markerReached) {
this.markerAnimation.setDirection(true);
if (this.markerAnimation.finished(Direction.FORWARDS)) {
this.markerReached = true;
}
} else {
this.markerAnimation.setDirection(false);
}

MatrixStack ms = new MatrixStack();
if (AuraFunction.target != null) {
double xv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosX, AuraFunction.target.getPosX());
double yv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosY, AuraFunction.target.getPosY()) + (double)(AuraFunction.target.getHeight() / 1.6F);
double zv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosZ, AuraFunction.target.getPosZ());
this.markerX = (float)xv;
this.markerY = (float)yv;
this.markerZ = (float)zv;
}

this.renderAlternativeMarker(ms);
} else {
String imageName;
if (this.Modes.is("Wild")) {
imageName = "expensive/images/cyber.png";
} else if (this.Modes.is("Wild2")) {
imageName = "expensive/images/cyber1.png";
} else if (this.Modes.is("Quad")) {
imageName = "expensive/images/quad.png";
} else if (this.Modes.is("Triangle1")) {
imageName = "expensive/images/triangle.png";
} else if (this.Modes.is("RoundTriangle")) {
imageName = "expensive/images/round_triangle.png";
} else {
imageName = "expensive/images/target-esp2.png";
}

if (vector2d != null) {
GL11.glPushMatrix();
GL11.glTranslatef((float)vector2d.x, (float)vector2d.y, 0.0F);
GL11.glRotatef((float)(Math.sin((double)((float)(System.currentTimeMillis() - detime) / 1000.0F)) * 360.0), 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float)(-vector2d.x), (float)(-vector2d.y), 0.0F);
Render2D.drawImage(new ResourceLocation(imageName), (float)(vector2d.x - 50.0), (float)(vector2d.y - 50.0), 100.0F, 100.0F, n);
GL11.glPopMatrix();
}
}
}
}
}

}

public void renderAlternativeMarker(MatrixStack stack) {
float c = (float)((double)((float)(System.currentTimeMillis() - Initilization.startTime) / 1500.0F) + Math.sin((double)((float)(System.currentTimeMillis() - Initilization.startTime) / 1500.0F)) / 10.0);
double ix = -mc.getRenderManager().info.getProjectedView().getX();
double iy = -mc.getRenderManager().info.getProjectedView().getY();
double iz = -mc.getRenderManager().info.getProjectedView().getZ();
double x = (double)this.markerX;
double y = (double)this.markerY;
double z = (double)this.markerZ;
float alpha = Shaders.shaderPackLoaded ? 1.0F : 0.5F;
alpha *= this.markerA.getNumberValue().floatValue();
boolean rb = false;
rb = true;
float pl = 0.0F;
boolean fa = true;

for(int b = 0; b < 3; ++b) {
for(float i = c * 360.0F; i < c * 360.0F + 90.0F; i += 2.0F) {
float max = c * 360.0F + 90.0F;
float dc = MathUtil.normalize(i, c * 360.0F - 45.0F, max);
Color color = ColorUtil.calculateColorA((int)i * 2 + b * 32);
Color color2 = ColorUtil.calculateColorB((int)i * 2 + b * 32 + 4);
float rf = 0.6F * this.markerA.getNumberValue().floatValue();
double radians = Math.toRadians((double)i);
double plY = (double)pl + Math.sin(radians * 1.2000000476837158) * 0.10000000149011612;
stack.push();
stack.translate(ix, iy, iz);
stack.translate(x, y, z);
stack.rotate(mc.getRenderManager().info.getRotation());
RenderSystem.depthMask(false);
float q = (!fa ? 0.25F : 0.15F) * (Math.max(fa ? 0.25F : 0.15F, fa ? dc : (1.0F - -(0.4F - dc)) / 2.0F) + 0.45F);
float w = q * (this.scale.getValue().floatValue() + (0.5F - alpha) * 2.0F);
Render2D.drawImage(stack, new ResourceLocation("expensive/images/glow.png"), Math.cos(radians) * (double)rf - (double)(w / 2.0F), plY - 0.7, Math.sin(radians) * (double)rf - (double)(w / 2.0F), (double)w, (double)w, NColor.fromColor(color).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color2).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color2).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color).withCustomAlpha(alpha).hashCode());
GL11.glEnable(2929);
RenderSystem.depthMask(true);
stack.pop();
}

c *= -1.25F;
fa = !fa;
pl += 0.45F;
}

}
}
/del я еще давно слил
 
Начинающий
Статус
Оффлайн
Регистрация
12 Дек 2022
Сообщения
140
Реакции[?]
0
Поинты[?]
0
Код:
@FunctionAnnotation(
name = "TargetESP",
type = Type.Render
)
public class TargetESP extends Function {
private final Animation alpha = new DecelerateAnimation(600, 255.0);
ModeSetting Modes = new ModeSetting("Визуализация", "Нурсултан", new String[]{"Nursultan", "Wild", "Wild2", "Quad", "Triangle", "RoundTriangle", "Призраки"});
public static final long detime = System.currentTimeMillis();
private LivingEntity currentTarget;
private ResourceLocation glowCircle;
public SliderSetting scale = (new SliderSetting("Размер", 2.0F, 1.0F, 3.0F, 0.1F)).setVisible(() -> {
return this.Modes.is("Призраки");
});
public CompactAnimation markerA;
private final Animation alpha2 = new DecelerateAnimation(255, 255.0);
private long currentTime;
private float animation = 0.0F;
public float markerX = 0.0F;
public float markerY = 0.0F;
public float markerZ = 0.0F;
private boolean markerReached = false;
float size = 150.0F;
boolean markerRQ;
Animation markerAnimation = new EaseInOutQuad(200, 0.20000000298023224);

public TargetESP() {
this.addSettings(new Setting[]{this.Modes, this.scale});
this.markerA = new CompactAnimation(Easing.EASE_OUT_CUBIC, 600L);
this.glowCircle = new ResourceLocation("expensive/images/glow.png");
}

public void onEvent(Event event) {
boolean bl = Managment.FUNCTION_MANAGER.get("Aura").isState();
if (event instanceof EventUpdate) {
if (AuraFunction.target != null) {
this.currentTarget = AuraFunction.target;
}

this.alpha.setDirection(bl && AuraFunction.target != null ? Direction.FORWARDS : Direction.BACKWARDS);
}

if (event instanceof EventRender eventRender) {
if (this.alpha.finished(Direction.BACKWARDS)) {
return;
}

if (this.currentTarget != null) {
Minecraft var10001 = mc;
if (this.currentTarget != Minecraft.player) {
double d = this.currentTarget.lastTickPosX + (this.currentTarget.getPosX() - this.currentTarget.lastTickPosX) * (double)eventRender.partialTicks;
double d2 = this.currentTarget.lastTickPosY + (this.currentTarget.getPosY() - this.currentTarget.lastTickPosY) * (double)eventRender.partialTicks;
double d3 = this.currentTarget.lastTickPosZ + (this.currentTarget.getPosZ() - this.currentTarget.lastTickPosZ) * (double)eventRender.partialTicks;
Vector2d vector2d = ProjectionUtils.project(d, d2 + 1.0, d3);
int n = RenderUtil.reAlphaInt(ColorUtil.getColorStyle(0.0F), (int)this.alpha.getOutput());
if (this.Modes.is("Nursultan")) {
if (vector2d != null) {
GL11.glPushMatrix();
GL11.glTranslatef((float)vector2d.x, (float)vector2d.y, 0.0F);
GL11.glRotatef((float)(Math.sin((double)((float)(System.currentTimeMillis() - detime) / 1000.0F)) * 360.0), 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float)(-vector2d.x), (float)(-vector2d.y), 0.0F);
Render2D.drawImage(new ResourceLocation("expensive/images/target-esp2.png"), (float)(vector2d.x - 50.0), (float)(vector2d.y - 50.0), 100.0F, 100.0F, n);
GL11.glPopMatrix();
}
} else if (this.Modes.is("Призраки")) {
if (AuraFunction.target == null) {
this.markerReached = false;
this.markerRQ = false;
this.markerAnimation = new EaseInOutQuad(200, 0.20000000298023224);
this.markerAnimation.reset();
this.markerA.run(0.0);
} else {
this.markerA.run(1.0);
}

if (!this.markerReached) {
this.markerAnimation.setDirection(true);
if (this.markerAnimation.finished(Direction.FORWARDS)) {
this.markerReached = true;
}
} else {
this.markerAnimation.setDirection(false);
}

MatrixStack ms = new MatrixStack();
if (AuraFunction.target != null) {
double xv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosX, AuraFunction.target.getPosX());
double yv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosY, AuraFunction.target.getPosY()) + (double)(AuraFunction.target.getHeight() / 1.6F);
double zv = ColorUtil.interporate2((double)mc.getRenderPartialTicks(), AuraFunction.target.lastTickPosZ, AuraFunction.target.getPosZ());
this.markerX = (float)xv;
this.markerY = (float)yv;
this.markerZ = (float)zv;
}

this.renderAlternativeMarker(ms);
} else {
String imageName;
if (this.Modes.is("Wild")) {
imageName = "expensive/images/cyber.png";
} else if (this.Modes.is("Wild2")) {
imageName = "expensive/images/cyber1.png";
} else if (this.Modes.is("Quad")) {
imageName = "expensive/images/quad.png";
} else if (this.Modes.is("Triangle1")) {
imageName = "expensive/images/triangle.png";
} else if (this.Modes.is("RoundTriangle")) {
imageName = "expensive/images/round_triangle.png";
} else {
imageName = "expensive/images/target-esp2.png";
}

if (vector2d != null) {
GL11.glPushMatrix();
GL11.glTranslatef((float)vector2d.x, (float)vector2d.y, 0.0F);
GL11.glRotatef((float)(Math.sin((double)((float)(System.currentTimeMillis() - detime) / 1000.0F)) * 360.0), 0.0F, 0.0F, 1.0F);
GL11.glTranslatef((float)(-vector2d.x), (float)(-vector2d.y), 0.0F);
Render2D.drawImage(new ResourceLocation(imageName), (float)(vector2d.x - 50.0), (float)(vector2d.y - 50.0), 100.0F, 100.0F, n);
GL11.glPopMatrix();
}
}
}
}
}

}

public void renderAlternativeMarker(MatrixStack stack) {
float c = (float)((double)((float)(System.currentTimeMillis() - Initilization.startTime) / 1500.0F) + Math.sin((double)((float)(System.currentTimeMillis() - Initilization.startTime) / 1500.0F)) / 10.0);
double ix = -mc.getRenderManager().info.getProjectedView().getX();
double iy = -mc.getRenderManager().info.getProjectedView().getY();
double iz = -mc.getRenderManager().info.getProjectedView().getZ();
double x = (double)this.markerX;
double y = (double)this.markerY;
double z = (double)this.markerZ;
float alpha = Shaders.shaderPackLoaded ? 1.0F : 0.5F;
alpha *= this.markerA.getNumberValue().floatValue();
boolean rb = false;
rb = true;
float pl = 0.0F;
boolean fa = true;

for(int b = 0; b < 3; ++b) {
for(float i = c * 360.0F; i < c * 360.0F + 90.0F; i += 2.0F) {
float max = c * 360.0F + 90.0F;
float dc = MathUtil.normalize(i, c * 360.0F - 45.0F, max);
Color color = ColorUtil.calculateColorA((int)i * 2 + b * 32);
Color color2 = ColorUtil.calculateColorB((int)i * 2 + b * 32 + 4);
float rf = 0.6F * this.markerA.getNumberValue().floatValue();
double radians = Math.toRadians((double)i);
double plY = (double)pl + Math.sin(radians * 1.2000000476837158) * 0.10000000149011612;
stack.push();
stack.translate(ix, iy, iz);
stack.translate(x, y, z);
stack.rotate(mc.getRenderManager().info.getRotation());
RenderSystem.depthMask(false);
float q = (!fa ? 0.25F : 0.15F) * (Math.max(fa ? 0.25F : 0.15F, fa ? dc : (1.0F - -(0.4F - dc)) / 2.0F) + 0.45F);
float w = q * (this.scale.getValue().floatValue() + (0.5F - alpha) * 2.0F);
Render2D.drawImage(stack, new ResourceLocation("expensive/images/glow.png"), Math.cos(radians) * (double)rf - (double)(w / 2.0F), plY - 0.7, Math.sin(radians) * (double)rf - (double)(w / 2.0F), (double)w, (double)w, NColor.fromColor(color).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color2).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color2).withCustomAlpha(alpha).hashCode(), NColor.fromColor(color).withCustomAlpha(alpha).hashCode());
GL11.glEnable(2929);
RenderSystem.depthMask(true);
stack.pop();
}

c *= -1.25F;
fa = !fa;
pl += 0.45F;
}

}
}
/del no ss
 
Сверху Снизу