Исходник TargetESP Upgrade | Expensive 3.1 / Ancient

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

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

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

Спасибо!

ss = (noad)

code =


package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.Expensive;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventUpdate;
import im.expensive.events.WorldEvent;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.impl.combat.KillAura;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.utils.EntityUtils;
import im.expensive.utils.animations.Animation;
import im.expensive.utils.animations.Direction;
import im.expensive.utils.animations.impl.DecelerateAnimation;
import im.expensive.utils.animations.impl.EaseBackIn;
import im.expensive.utils.animations.impl.EaseInOutCubic;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import static org.lwjgl.opengl.GL11.GL_ONE;
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;

@FunctionRegister(name = "TargetESP 2", type = Category.Render)
public class TargetESP2 extends Function {
private final Animation alpha = new DecelerateAnimation(1000, 225);

private LivingEntity currentTarget;

private double speed;
private long lastTime = System.currentTimeMillis();
private LivingEntity target;

public TargetESP2() {
}

@Subscribe
private void onUpdate(EventUpdate eventUpdate) {
KillAura killAura = Expensive.getInstance().getFunctionRegistry().getKillAura();

if (killAura.getTarget() != null) {
currentTarget = killAura.getTarget();
}

alpha.setDirection(!killAura.isState() || killAura.getTarget() == null ? Direction.BACKWARDS : Direction.FORWARDS);
}

@Subscribe
private void onDisplay(EventDisplay e) {

if (e.getType() != EventDisplay.Type.PRE) {
return;
}
if (this.currentTarget != null && this.currentTarget != mc.player) {
double sin = Math.sin(System.currentTimeMillis() / 800.0);
float size = 90.0F;

Vector3d interpolated = currentTarget.getPositon(e.getPartialTicks());
Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + currentTarget.getHeight() / 2f, interpolated.z);
GlStateManager.pushMatrix();
GlStateManager.translatef(pos.x, pos.y, 0);
GlStateManager.rotatef((float) sin * 200, 0, 0, 1);
GlStateManager.translatef(-pos.x, -pos.y, 0);
if (pos != null) {
DisplayUtils.drawImageAlpha(new ResourceLocation("expensive/images/target1.png"), pos.x - size / 2f, pos.y - size / 2f, size/1, size/1, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(10, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(120, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(255, 1), (int) this.alpha.getOutput())
));
GlStateManager.popMatrix();
}
}
}
}


UPD : жду в екслипсе
 
Последнее редактирование:
Начинающий
Статус
Оффлайн
Регистрация
12 Июн 2024
Сообщения
487
Реакции[?]
1
Поинты[?]
1K
ss = (noad)

code =


package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.Expensive;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventUpdate;
import im.expensive.events.WorldEvent;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.impl.combat.KillAura;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.utils.EntityUtils;
import im.expensive.utils.animations.Animation;
import im.expensive.utils.animations.Direction;
import im.expensive.utils.animations.impl.DecelerateAnimation;
import im.expensive.utils.animations.impl.EaseBackIn;
import im.expensive.utils.animations.impl.EaseInOutCubic;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import static org.lwjgl.opengl.GL11.GL_ONE;
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;

@FunctionRegister(name = "TargetESP 2", type = Category.Render)
public class TargetESP2 extends Function {
private final Animation alpha = new DecelerateAnimation(1000, 225);

private LivingEntity currentTarget;

private double speed;
private long lastTime = System.currentTimeMillis();
private LivingEntity target;

public TargetESP2() {
}

@Subscribe
private void onUpdate(EventUpdate eventUpdate) {
KillAura killAura = Expensive.getInstance().getFunctionRegistry().getKillAura();

if (killAura.getTarget() != null) {
currentTarget = killAura.getTarget();
}

alpha.setDirection(!killAura.isState() || killAura.getTarget() == null ? Direction.BACKWARDS : Direction.FORWARDS);
}

@Subscribe
private void onDisplay(EventDisplay e) {

if (e.getType() != EventDisplay.Type.PRE) {
return;
}
if (this.currentTarget != null && this.currentTarget != mc.player) {
double sin = Math.sin(System.currentTimeMillis() / 800.0);
float size = 90.0F;

Vector3d interpolated = currentTarget.getPositon(e.getPartialTicks());
Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + currentTarget.getHeight() / 2f, interpolated.z);
GlStateManager.pushMatrix();
GlStateManager.translatef(pos.x, pos.y, 0);
GlStateManager.rotatef((float) sin * 200, 0, 0, 1);
GlStateManager.translatef(-pos.x, -pos.y, 0);
if (pos != null) {
DisplayUtils.drawImageAlpha(new ResourceLocation("expensive/images/target1.png"), pos.x - size / 2f, pos.y - size / 2f, size/1, size/1, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(10, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(120, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(255, 1), (int) this.alpha.getOutput())
));
GlStateManager.popMatrix();
}
}
}
}


UPD : жду в екслипсе
в чем прикол этого? Если тут тупо только ромб
 
minced client
Read Only
Статус
Оффлайн
Регистрация
8 Май 2022
Сообщения
615
Реакции[?]
61
Поинты[?]
2K
ss = (noad)

code =


package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.Expensive;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventUpdate;
import im.expensive.events.WorldEvent;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.impl.combat.KillAura;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.utils.EntityUtils;
import im.expensive.utils.animations.Animation;
import im.expensive.utils.animations.Direction;
import im.expensive.utils.animations.impl.DecelerateAnimation;
import im.expensive.utils.animations.impl.EaseBackIn;
import im.expensive.utils.animations.impl.EaseInOutCubic;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import static org.lwjgl.opengl.GL11.GL_ONE;
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;

@FunctionRegister(name = "TargetESP 2", type = Category.Render)
public class TargetESP2 extends Function {
private final Animation alpha = new DecelerateAnimation(1000, 225);

private LivingEntity currentTarget;

private double speed;
private long lastTime = System.currentTimeMillis();
private LivingEntity target;

public TargetESP2() {
}

@Subscribe
private void onUpdate(EventUpdate eventUpdate) {
KillAura killAura = Expensive.getInstance().getFunctionRegistry().getKillAura();

if (killAura.getTarget() != null) {
currentTarget = killAura.getTarget();
}

alpha.setDirection(!killAura.isState() || killAura.getTarget() == null ? Direction.BACKWARDS : Direction.FORWARDS);
}

@Subscribe
private void onDisplay(EventDisplay e) {

if (e.getType() != EventDisplay.Type.PRE) {
return;
}
if (this.currentTarget != null && this.currentTarget != mc.player) {
double sin = Math.sin(System.currentTimeMillis() / 800.0);
float size = 90.0F;

Vector3d interpolated = currentTarget.getPositon(e.getPartialTicks());
Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + currentTarget.getHeight() / 2f, interpolated.z);
GlStateManager.pushMatrix();
GlStateManager.translatef(pos.x, pos.y, 0);
GlStateManager.rotatef((float) sin * 200, 0, 0, 1);
GlStateManager.translatef(-pos.x, -pos.y, 0);
if (pos != null) {
DisplayUtils.drawImageAlpha(new ResourceLocation("expensive/images/target1.png"), pos.x - size / 2f, pos.y - size / 2f, size/1, size/1, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(10, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(120, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(255, 1), (int) this.alpha.getOutput())
));
GlStateManager.popMatrix();
}
}
}
}


UPD : жду в екслипсе
Для кого придумали внесение кода в специальную хуйню, ну ты бля ваще атас, картинку изменил и ты ахуенный среди самых хуевых
 
Начинающий
Статус
Оффлайн
Регистрация
9 Июл 2024
Сообщения
93
Реакции[?]
0
Поинты[?]
0
Для кого придумали внесение кода в специальную хуйню, ну ты бля ваще атас, картинку изменил и ты ахуенный среди самых хуевых
tusky а зач ты на гит хаб выложил фришку минседа я уже фул спастил спс бро люблю тебя
 
Forge Api ;-;
Начинающий
Статус
Оффлайн
Регистрация
3 Май 2023
Сообщения
873
Реакции[?]
18
Поинты[?]
8K
Начинающий
Статус
Оффлайн
Регистрация
11 Апр 2024
Сообщения
53
Реакции[?]
0
Поинты[?]
0
ss = (noad)

code =


package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.Expensive;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventUpdate;
import im.expensive.events.WorldEvent;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.impl.combat.KillAura;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.utils.EntityUtils;
import im.expensive.utils.animations.Animation;
import im.expensive.utils.animations.Direction;
import im.expensive.utils.animations.impl.DecelerateAnimation;
import im.expensive.utils.animations.impl.EaseBackIn;
import im.expensive.utils.animations.impl.EaseInOutCubic;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import static org.lwjgl.opengl.GL11.GL_ONE;
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;

@FunctionRegister(name = "TargetESP 2", type = Category.Render)
public class TargetESP2 extends Function {
private final Animation alpha = new DecelerateAnimation(1000, 225);

private LivingEntity currentTarget;

private double speed;
private long lastTime = System.currentTimeMillis();
private LivingEntity target;

public TargetESP2() {
}

@Subscribe
private void onUpdate(EventUpdate eventUpdate) {
KillAura killAura = Expensive.getInstance().getFunctionRegistry().getKillAura();

if (killAura.getTarget() != null) {
currentTarget = killAura.getTarget();
}

alpha.setDirection(!killAura.isState() || killAura.getTarget() == null ? Direction.BACKWARDS : Direction.FORWARDS);
}

@Subscribe
private void onDisplay(EventDisplay e) {

if (e.getType() != EventDisplay.Type.PRE) {
return;
}
if (this.currentTarget != null && this.currentTarget != mc.player) {
double sin = Math.sin(System.currentTimeMillis() / 800.0);
float size = 90.0F;

Vector3d interpolated = currentTarget.getPositon(e.getPartialTicks());
Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + currentTarget.getHeight() / 2f, interpolated.z);
GlStateManager.pushMatrix();
GlStateManager.translatef(pos.x, pos.y, 0);
GlStateManager.rotatef((float) sin * 200, 0, 0, 1);
GlStateManager.translatef(-pos.x, -pos.y, 0);
if (pos != null) {
DisplayUtils.drawImageAlpha(new ResourceLocation("expensive/images/target1.png"), pos.x - size / 2f, pos.y - size / 2f, size/1, size/1, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(10, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(120, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(255, 1), (int) this.alpha.getOutput())
));
GlStateManager.popMatrix();
}
}
}
}


UPD : жду в екслипсе
dai drawImageAlpha
pls
 
Начинающий
Статус
Оффлайн
Регистрация
25 Фев 2024
Сообщения
488
Реакции[?]
0
Поинты[?]
0
drawimage просто напиши
ss = (noad)

code =


package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.Expensive;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventUpdate;
import im.expensive.events.WorldEvent;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.impl.combat.KillAura;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.utils.EntityUtils;
import im.expensive.utils.animations.Animation;
import im.expensive.utils.animations.Direction;
import im.expensive.utils.animations.impl.DecelerateAnimation;
import im.expensive.utils.animations.impl.EaseBackIn;
import im.expensive.utils.animations.impl.EaseInOutCubic;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import static org.lwjgl.opengl.GL11.GL_ONE;
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;

@FunctionRegister(name = "TargetESP 2", type = Category.Render)
public class TargetESP2 extends Function {
private final Animation alpha = new DecelerateAnimation(1000, 225);

private LivingEntity currentTarget;

private double speed;
private long lastTime = System.currentTimeMillis();
private LivingEntity target;

public TargetESP2() {
}

@Subscribe
private void onUpdate(EventUpdate eventUpdate) {
KillAura killAura = Expensive.getInstance().getFunctionRegistry().getKillAura();

if (killAura.getTarget() != null) {
currentTarget = killAura.getTarget();
}

alpha.setDirection(!killAura.isState() || killAura.getTarget() == null ? Direction.BACKWARDS : Direction.FORWARDS);
}

@Subscribe
private void onDisplay(EventDisplay e) {

if (e.getType() != EventDisplay.Type.PRE) {
return;
}
if (this.currentTarget != null && this.currentTarget != mc.player) {
double sin = Math.sin(System.currentTimeMillis() / 800.0);
float size = 90.0F;

Vector3d interpolated = currentTarget.getPositon(e.getPartialTicks());
Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + currentTarget.getHeight() / 2f, interpolated.z);
GlStateManager.pushMatrix();
GlStateManager.translatef(pos.x, pos.y, 0);
GlStateManager.rotatef((float) sin * 200, 0, 0, 1);
GlStateManager.translatef(-pos.x, -pos.y, 0);
if (pos != null) {
DisplayUtils.drawImageAlpha(new ResourceLocation("expensive/images/target1.png"), pos.x - size / 2f, pos.y - size / 2f, size/1, size/1, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(10, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(120, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(255, 1), (int) this.alpha.getOutput())
));
GlStateManager.popMatrix();
}
}
}
}


UPD : жду в екслипсе
можешь дать звук клиент саундсов? пожалуйста (:
в чем прикол этого? Если тут тупо только ромб
бро реально не может сделать ModeSetting
 
Начинающий
Статус
Оффлайн
Регистрация
11 Апр 2024
Сообщения
53
Реакции[?]
0
Поинты[?]
0
ss = (noad)

code =


package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.Expensive;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventUpdate;
import im.expensive.events.WorldEvent;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.impl.combat.KillAura;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.utils.EntityUtils;
import im.expensive.utils.animations.Animation;
import im.expensive.utils.animations.Direction;
import im.expensive.utils.animations.impl.DecelerateAnimation;
import im.expensive.utils.animations.impl.EaseBackIn;
import im.expensive.utils.animations.impl.EaseInOutCubic;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import static org.lwjgl.opengl.GL11.GL_ONE;
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;

@FunctionRegister(name = "TargetESP 2", type = Category.Render)
public class TargetESP2 extends Function {
private final Animation alpha = new DecelerateAnimation(1000, 225);

private LivingEntity currentTarget;

private double speed;
private long lastTime = System.currentTimeMillis();
private LivingEntity target;

public TargetESP2() {
}

@Subscribe
private void onUpdate(EventUpdate eventUpdate) {
KillAura killAura = Expensive.getInstance().getFunctionRegistry().getKillAura();

if (killAura.getTarget() != null) {
currentTarget = killAura.getTarget();
}

alpha.setDirection(!killAura.isState() || killAura.getTarget() == null ? Direction.BACKWARDS : Direction.FORWARDS);
}

@Subscribe
private void onDisplay(EventDisplay e) {

if (e.getType() != EventDisplay.Type.PRE) {
return;
}
if (this.currentTarget != null && this.currentTarget != mc.player) {
double sin = Math.sin(System.currentTimeMillis() / 800.0);
float size = 90.0F;

Vector3d interpolated = currentTarget.getPositon(e.getPartialTicks());
Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + currentTarget.getHeight() / 2f, interpolated.z);
GlStateManager.pushMatrix();
GlStateManager.translatef(pos.x, pos.y, 0);
GlStateManager.rotatef((float) sin * 200, 0, 0, 1);
GlStateManager.translatef(-pos.x, -pos.y, 0);
if (pos != null) {
DisplayUtils.drawImageAlpha(new ResourceLocation("expensive/images/target1.png"), pos.x - size / 2f, pos.y - size / 2f, size/1, size/1, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(10, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(120, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(255, 1), (int) this.alpha.getOutput())
));
GlStateManager.popMatrix();
}
}
}
}


UPD : жду в екслипсе
/del обычный квадрат
 
Начинающий
Статус
Оффлайн
Регистрация
22 Сен 2024
Сообщения
79
Реакции[?]
0
Поинты[?]
0
ss = (noad)

code =


package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.platform.GlStateManager;
import im.expensive.Expensive;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventUpdate;
import im.expensive.events.WorldEvent;
import im.expensive.functions.api.Category;
import im.expensive.functions.api.Function;
import im.expensive.functions.api.FunctionRegister;
import im.expensive.functions.impl.combat.KillAura;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.utils.EntityUtils;
import im.expensive.utils.animations.Animation;
import im.expensive.utils.animations.Direction;
import im.expensive.utils.animations.impl.DecelerateAnimation;
import im.expensive.utils.animations.impl.EaseBackIn;
import im.expensive.utils.animations.impl.EaseInOutCubic;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;

import static org.lwjgl.opengl.GL11.GL_ONE;
import static org.lwjgl.opengl.GL11.GL_SRC_ALPHA;

@FunctionRegister(name = "TargetESP 2", type = Category.Render)
public class TargetESP2 extends Function {
private final Animation alpha = new DecelerateAnimation(1000, 225);

private LivingEntity currentTarget;

private double speed;
private long lastTime = System.currentTimeMillis();
private LivingEntity target;

public TargetESP2() {
}

@Subscribe
private void onUpdate(EventUpdate eventUpdate) {
KillAura killAura = Expensive.getInstance().getFunctionRegistry().getKillAura();

if (killAura.getTarget() != null) {
currentTarget = killAura.getTarget();
}

alpha.setDirection(!killAura.isState() || killAura.getTarget() == null ? Direction.BACKWARDS : Direction.FORWARDS);
}

@Subscribe
private void onDisplay(EventDisplay e) {

if (e.getType() != EventDisplay.Type.PRE) {
return;
}
if (this.currentTarget != null && this.currentTarget != mc.player) {
double sin = Math.sin(System.currentTimeMillis() / 800.0);
float size = 90.0F;

Vector3d interpolated = currentTarget.getPositon(e.getPartialTicks());
Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + currentTarget.getHeight() / 2f, interpolated.z);
GlStateManager.pushMatrix();
GlStateManager.translatef(pos.x, pos.y, 0);
GlStateManager.rotatef((float) sin * 200, 0, 0, 1);
GlStateManager.translatef(-pos.x, -pos.y, 0);
if (pos != null) {
DisplayUtils.drawImageAlpha(new ResourceLocation("expensive/images/target1.png"), pos.x - size / 2f, pos.y - size / 2f, size/1, size/1, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(10, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(120, 1), (int) this.alpha.getOutput()),
ColorUtils.setAlpha(HUD.getColor(255, 1), (int) this.alpha.getOutput())
));
GlStateManager.popMatrix();
}
}
}
}


UPD : жду в екслипсе
dai drawImageAlpha
pls
 
Сверху Снизу