Подписывайтесь на наш Telegram и не пропускайте важные новости! Перейти

Визуальная часть TargetESP exp 3.1

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
15 Апр 2026
Сообщения
4
Реакции
0
Выберите загрузчик игры
  1. Forge
Вроде ESP красивые ну чуть поправить надо, а так 1 тема ооцените пж
TargetESP:
Expand Collapse Copy
package expensive.modules.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.systems.RenderSystem;
import expensive.events.EventDisplay;
import expensive.events.WorldEvent;
import expensive.modules.api.Category;
import expensive.modules.api.Function;
import expensive.modules.api.FunctionRegister;
import expensive.modules.api.impl.ModeSetting;
import expensive.modules.api.impl.SliderSetting;
import expensive.modules.impl.combat.KillAura;
import expensive.util.math.main.Vector4i;
import expensive.util.math.prjections.ProjectionUtil;
import expensive.util.visual.main.color.ColorUtils;
import expensive.util.visual.main.display.DisplayUtils;
import lombok.Getter;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.WorldVertexBufferUploader;
import net.minecraft.client.renderer.entity.EntityRendererManager;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.entity.LivingEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import org.lwjgl.opengl.GL11;

@FunctionRegister(name = "TargetESP", type = Category.Render)
public class TargetESP extends Function {
    private final ModeSetting type = new ModeSetting(
            "Отображение цели",
            "Ромб",
            "Ромб",
            "Кольцо",
            "Души"
    );
    private final SliderSetting soulSpeed = new SliderSetting(
            "Soul Speed",
            1.2f,
            0.2f,
            6.0f,
            0.1f
    );
    private final ResourceLocation SOUL =
            new ResourceLocation("Dtekt/images/glow.png");
    @Getter
    public static LivingEntity target = null;
    private final KillAura killAura;

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        addSettings(type, soulSpeed);
    }

    @Subscribe
    private void onWorldEvent(WorldEvent e) {
        if (this.type.is("Кольцо")) {
            EntityRendererManager rm = mc.getRenderManager();
            if (killAura.isState() && killAura.getTarget() != null) {
                double x = killAura.getTarget().lastTickPosX + (killAura.getTarget().getPosX() - killAura.getTarget().lastTickPosX) * (double) e.getPartialTicks() - rm.info.getProjectedView().getX();
                double y = killAura.getTarget().lastTickPosY + (killAura.getTarget().getPosY() - killAura.getTarget().lastTickPosY) * (double) e.getPartialTicks() - rm.info.getProjectedView().getY();
                double z = killAura.getTarget().lastTickPosZ + (killAura.getTarget().getPosZ() - killAura.getTarget().lastTickPosZ) * (double) e.getPartialTicks() - rm.info.getProjectedView().getZ();
                float height = killAura.getTarget().getHeight();
                double duration = 1900.0;
                double elapsed = (double) System.currentTimeMillis() % duration;
                boolean side = elapsed > duration / 2.0;
                double progress = elapsed / (duration / 2.0);
                progress = side ? --progress : 1.0 - progress;
                progress = progress < 0.5 ? 2.0 * progress * progress : 1.0 - Math.pow(-2.0 * progress + 2.0, 2.0) / 2.0;
                double eased = (double) (height / 2.0F) * (progress > 0.5 ? 1.0 - progress : progress) * (double) (side ? -1 : 1);
                RenderSystem.pushMatrix();
                GL11.glDepthMask(false);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                RenderSystem.disableTexture();
                RenderSystem.enableBlend();
                RenderSystem.disableAlphaTest();
                RenderSystem.shadeModel(7425);
                RenderSystem.disableCull();
                RenderSystem.lineWidth(3.5F);
                RenderSystem.color4f(-1.0F, -1.0F, -1.0F, -1.0F);

                BufferBuilder buffer = Tessellator.getInstance().getBuffer();
                buffer.begin(8, DefaultVertexFormats.POSITION_COLOR);
                float[] colors = null;

                int i;
                for (i = 0; i <= 360; ++i) {
                    float r = ((HUD.getColor(0) >> 16) & 0xFF) / 255f;
                    float g = ((HUD.getColor(0) >> 8) & 0xFF) / 255f;
                    float b = (HUD.getColor(0) & 0xFF) / 255f;
                    colors = new float[]{r, g, b, 0.5f};
                    buffer.pos(x + Math.cos(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85, y + (double) height * progress, z + Math.sin(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85).color(colors[0], colors[1], colors[2], 0.5F).endVertex();
                    buffer.pos(x + Math.cos(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85, y + (double) height * progress + eased * 1.5, z + Math.sin(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85).color(colors[0], colors[1], colors[2], 4.2F).endVertex();
                }
                buffer.finishDrawing();
                WorldVertexBufferUploader.draw(buffer);

                RenderSystem.color4f(-4.0F, -1.0F, -1.0F, -1.0F);
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                for (i = 0; i <= 360; ++i) {
                    buffer.pos(x + Math.cos(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85, y + (double) height * progress, z + Math.sin(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85).color(colors[0], colors[1], colors[2], 0.2F).endVertex();
                }
                buffer.finishDrawing();
                WorldVertexBufferUploader.draw(buffer);

                RenderSystem.enableCull();
                RenderSystem.disableBlend();
                RenderSystem.enableTexture();
                RenderSystem.enableAlphaTest();
                GL11.glDepthMask(true);
                GL11.glDisable(2848);
                GL11.glHint(3154, 4354);
                RenderSystem.shadeModel(7424);
                RenderSystem.popMatrix();
            }
        }

        if (type.is("Души")) {
            renderSouls(e);
        }
    }

    private void renderSouls(WorldEvent e) {

        if (!killAura.isState() || killAura.getTarget() == null)
            return;

        LivingEntity target = killAura.getTarget();

        EntityRendererManager rm = mc.getRenderManager();

        double x = target.lastTickPosX +
                (target.getPosX() - target.lastTickPosX) * e.getPartialTicks()
                - rm.info.getProjectedView().x;

        double y = target.lastTickPosY +
                (target.getPosY() - target.lastTickPosY) * e.getPartialTicks()
                - rm.info.getProjectedView().y;

        double z = target.lastTickPosZ +
                (target.getPosZ() - target.lastTickPosZ) * e.getPartialTicks()
                - rm.info.getProjectedView().z;

        RenderSystem.pushMatrix();

        RenderSystem.enableBlend();
        RenderSystem.disableCull();
        RenderSystem.depthMask(false);

        RenderSystem.blendFunc(
                GL11.GL_SRC_ALPHA,
                GL11.GL_ONE
        );

        RenderSystem.enableTexture();

        mc.getTextureManager().bindTexture(SOUL);

        long time = System.currentTimeMillis();

        boolean hurt = target.hurtTime > 0;

        float speedMultiplier = soulSpeed.get();
        
        for (int s = 0; s < 5; s++) {

            boolean mirrored = s >= 3;
            int soulIndex = s % 3;

            double speed = 0.2 * speedMultiplier;

            double angle =
                    (time * speed)
                            + (soulIndex * 72);
            
            if (mirrored) {
                angle = -angle;
            }

            double rad = Math.toRadians(angle);

            double radius = 0.52;

            double orbitX =
                    Math.cos(rad) * radius;

            double orbitZ =
                    Math.sin(rad) * radius;

            double orbitY =
                    Math.sin(rad * 1.3) * 0.23;

            orbitX += Math.sin(rad * 0.5) * 0.01;

            if (mirrored) {
                orbitY = Math.sin((rad + Math.PI) * 1.5) * 0.23;
            }

            for (int t = 0; t < 80; t++) {

                double back = t * 1.1;

                double ta =
                        Math.toRadians(angle - back);

                double tx =
                        x +
                                Math.cos(ta) * radius +
                                Math.sin(ta * 0.5) * 0.08;

                if (mirrored) {
                    tx = x - (Math.cos(ta) * radius + Math.sin(ta * 0.5) * 0.08);
                }

                double tz =
                        z +
                                Math.sin(ta) * radius;

                double ty =
                        y +
                                1.0 +
                                Math.sin(ta * 1.3) * 0.53;

                if (mirrored) {
                    ty = y + 1.0 + Math.sin((ta + Math.PI) * 1.3) * 0.53;
                }

                GL11.glPushMatrix();

                GL11.glTranslated(tx, ty, tz);

                GL11.glRotatef(
                        -mc.getRenderManager().info.getYaw(),
                        0, 1, 0
                );

                GL11.glRotatef(
                        mc.getRenderManager().info.getPitch(),
                        1, 0, 0
                );

                float size =
                        0.23f - (t * 0.00225f);

                if (size < 0.005f)
                    size = 0.045f;

                int color;

                if (hurt) {
                    color = 0xFF0000;
                } else {
                    color = HUD.getColor(
                            soulIndex * 72 + t * 3
                    );
                }

                float alpha =
                        1.0f - (t * 0.015f);

                if (alpha < 0.08f)
                    alpha = 0.08f;

                drawSoulQuad(
                        size,
                        color,
                        alpha
                );

                GL11.glPopMatrix();
            }
        }

        RenderSystem.defaultBlendFunc();

        RenderSystem.enableCull();
        RenderSystem.depthMask(true);
        RenderSystem.disableBlend();

        RenderSystem.popMatrix();
    }

    private void drawSoulQuad(
            float size,
            int color,
            float alpha
    ) {

        float r = ((color >> 16) & 255) / 255f;
        float g = ((color >> 8) & 255) / 255f;
        float b = (color & 255) / 255f;

        RenderSystem.enableTexture();

        GL11.glColor4f(
                Math.min(r * 2f, 1f),
                Math.min(g * 2f, 1f),
                Math.min(b * 2f, 1f),
                alpha
        );

        GL11.glBegin(GL11.GL_QUADS);

        GL11.glTexCoord2f(0, 0);
        GL11.glVertex3f(-size, -size, 0);

        GL11.glTexCoord2f(0, 1);
        GL11.glVertex3f(-size, size, 0);

        GL11.glTexCoord2f(1, 1);
        GL11.glVertex3f(size, size, 0);

        GL11.glTexCoord2f(1, 0);
        GL11.glVertex3f(size, -size, 0);

        GL11.glEnd();
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (e.getType() != EventDisplay.Type.PRE) {
            return;
        }
        if (killAura.isState() && killAura.getTarget() != null) {
            double sin = Math.sin(System.currentTimeMillis() / 1000.0);
            float size = 115.0F;

            Vector3d interpolated = killAura.getTarget().getPositon(e.getPartialTicks());
            Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + killAura.getTarget().getHeight() / 2f, interpolated.z);
            GlStateManager.pushMatrix();
            GlStateManager.translatef(pos.x, pos.y, 0);
            GlStateManager.rotatef((float) sin * 360, 0, 0, 1);
            GlStateManager.translatef(-pos.x, -pos.y, 0);
            if (type.is("Ромб")) {
                DisplayUtils.drawImage(new ResourceLocation("Dtekt/images/target.png"), pos.x - size / 2f, pos.y - size / 2f, size, size, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), 220), ColorUtils.setAlpha(HUD.getColor(90, 1), 220), ColorUtils.setAlpha(HUD.getColor(180, 1), 220), ColorUtils.setAlpha(HUD.getColor(270, 1), 220)));
            }
            GlStateManager.popMatrix();
        }
    }
}
ss1-
1779020505344.png

cc2-
1779020561654.png


Надеюсь понравиться <3

Вот забыл glow:
1779020899638.png

Вот забыл glow:
1779020899638.png
 
Вроде ESP красивые ну чуть поправить надо, а так 1 тема ооцените пж
TargetESP:
Expand Collapse Copy
package expensive.modules.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.systems.RenderSystem;
import expensive.events.EventDisplay;
import expensive.events.WorldEvent;
import expensive.modules.api.Category;
import expensive.modules.api.Function;
import expensive.modules.api.FunctionRegister;
import expensive.modules.api.impl.ModeSetting;
import expensive.modules.api.impl.SliderSetting;
import expensive.modules.impl.combat.KillAura;
import expensive.util.math.main.Vector4i;
import expensive.util.math.prjections.ProjectionUtil;
import expensive.util.visual.main.color.ColorUtils;
import expensive.util.visual.main.display.DisplayUtils;
import lombok.Getter;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.WorldVertexBufferUploader;
import net.minecraft.client.renderer.entity.EntityRendererManager;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.entity.LivingEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import org.lwjgl.opengl.GL11;

@FunctionRegister(name = "TargetESP", type = Category.Render)
public class TargetESP extends Function {
    private final ModeSetting type = new ModeSetting(
            "Отображение цели",
            "Ромб",
            "Ромб",
            "Кольцо",
            "Души"
    );
    private final SliderSetting soulSpeed = new SliderSetting(
            "Soul Speed",
            1.2f,
            0.2f,
            6.0f,
            0.1f
    );
    private final ResourceLocation SOUL =
            new ResourceLocation("Dtekt/images/glow.png");
    @Getter
    public static LivingEntity target = null;
    private final KillAura killAura;

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        addSettings(type, soulSpeed);
    }

    @Subscribe
    private void onWorldEvent(WorldEvent e) {
        if (this.type.is("Кольцо")) {
            EntityRendererManager rm = mc.getRenderManager();
            if (killAura.isState() && killAura.getTarget() != null) {
                double x = killAura.getTarget().lastTickPosX + (killAura.getTarget().getPosX() - killAura.getTarget().lastTickPosX) * (double) e.getPartialTicks() - rm.info.getProjectedView().getX();
                double y = killAura.getTarget().lastTickPosY + (killAura.getTarget().getPosY() - killAura.getTarget().lastTickPosY) * (double) e.getPartialTicks() - rm.info.getProjectedView().getY();
                double z = killAura.getTarget().lastTickPosZ + (killAura.getTarget().getPosZ() - killAura.getTarget().lastTickPosZ) * (double) e.getPartialTicks() - rm.info.getProjectedView().getZ();
                float height = killAura.getTarget().getHeight();
                double duration = 1900.0;
                double elapsed = (double) System.currentTimeMillis() % duration;
                boolean side = elapsed > duration / 2.0;
                double progress = elapsed / (duration / 2.0);
                progress = side ? --progress : 1.0 - progress;
                progress = progress < 0.5 ? 2.0 * progress * progress : 1.0 - Math.pow(-2.0 * progress + 2.0, 2.0) / 2.0;
                double eased = (double) (height / 2.0F) * (progress > 0.5 ? 1.0 - progress : progress) * (double) (side ? -1 : 1);
                RenderSystem.pushMatrix();
                GL11.glDepthMask(false);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                RenderSystem.disableTexture();
                RenderSystem.enableBlend();
                RenderSystem.disableAlphaTest();
                RenderSystem.shadeModel(7425);
                RenderSystem.disableCull();
                RenderSystem.lineWidth(3.5F);
                RenderSystem.color4f(-1.0F, -1.0F, -1.0F, -1.0F);

                BufferBuilder buffer = Tessellator.getInstance().getBuffer();
                buffer.begin(8, DefaultVertexFormats.POSITION_COLOR);
                float[] colors = null;

                int i;
                for (i = 0; i <= 360; ++i) {
                    float r = ((HUD.getColor(0) >> 16) & 0xFF) / 255f;
                    float g = ((HUD.getColor(0) >> 8) & 0xFF) / 255f;
                    float b = (HUD.getColor(0) & 0xFF) / 255f;
                    colors = new float[]{r, g, b, 0.5f};
                    buffer.pos(x + Math.cos(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85, y + (double) height * progress, z + Math.sin(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85).color(colors[0], colors[1], colors[2], 0.5F).endVertex();
                    buffer.pos(x + Math.cos(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85, y + (double) height * progress + eased * 1.5, z + Math.sin(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85).color(colors[0], colors[1], colors[2], 4.2F).endVertex();
                }
                buffer.finishDrawing();
                WorldVertexBufferUploader.draw(buffer);

                RenderSystem.color4f(-4.0F, -1.0F, -1.0F, -1.0F);
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                for (i = 0; i <= 360; ++i) {
                    buffer.pos(x + Math.cos(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85, y + (double) height * progress, z + Math.sin(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85).color(colors[0], colors[1], colors[2], 0.2F).endVertex();
                }
                buffer.finishDrawing();
                WorldVertexBufferUploader.draw(buffer);

                RenderSystem.enableCull();
                RenderSystem.disableBlend();
                RenderSystem.enableTexture();
                RenderSystem.enableAlphaTest();
                GL11.glDepthMask(true);
                GL11.glDisable(2848);
                GL11.glHint(3154, 4354);
                RenderSystem.shadeModel(7424);
                RenderSystem.popMatrix();
            }
        }

        if (type.is("Души")) {
            renderSouls(e);
        }
    }

    private void renderSouls(WorldEvent e) {

        if (!killAura.isState() || killAura.getTarget() == null)
            return;

        LivingEntity target = killAura.getTarget();

        EntityRendererManager rm = mc.getRenderManager();

        double x = target.lastTickPosX +
                (target.getPosX() - target.lastTickPosX) * e.getPartialTicks()
                - rm.info.getProjectedView().x;

        double y = target.lastTickPosY +
                (target.getPosY() - target.lastTickPosY) * e.getPartialTicks()
                - rm.info.getProjectedView().y;

        double z = target.lastTickPosZ +
                (target.getPosZ() - target.lastTickPosZ) * e.getPartialTicks()
                - rm.info.getProjectedView().z;

        RenderSystem.pushMatrix();

        RenderSystem.enableBlend();
        RenderSystem.disableCull();
        RenderSystem.depthMask(false);

        RenderSystem.blendFunc(
                GL11.GL_SRC_ALPHA,
                GL11.GL_ONE
        );

        RenderSystem.enableTexture();

        mc.getTextureManager().bindTexture(SOUL);

        long time = System.currentTimeMillis();

        boolean hurt = target.hurtTime > 0;

        float speedMultiplier = soulSpeed.get();
       
        for (int s = 0; s < 5; s++) {

            boolean mirrored = s >= 3;
            int soulIndex = s % 3;

            double speed = 0.2 * speedMultiplier;

            double angle =
                    (time * speed)
                            + (soulIndex * 72);
           
            if (mirrored) {
                angle = -angle;
            }

            double rad = Math.toRadians(angle);

            double radius = 0.52;

            double orbitX =
                    Math.cos(rad) * radius;

            double orbitZ =
                    Math.sin(rad) * radius;

            double orbitY =
                    Math.sin(rad * 1.3) * 0.23;

            orbitX += Math.sin(rad * 0.5) * 0.01;

            if (mirrored) {
                orbitY = Math.sin((rad + Math.PI) * 1.5) * 0.23;
            }

            for (int t = 0; t < 80; t++) {

                double back = t * 1.1;

                double ta =
                        Math.toRadians(angle - back);

                double tx =
                        x +
                                Math.cos(ta) * radius +
                                Math.sin(ta * 0.5) * 0.08;

                if (mirrored) {
                    tx = x - (Math.cos(ta) * radius + Math.sin(ta * 0.5) * 0.08);
                }

                double tz =
                        z +
                                Math.sin(ta) * radius;

                double ty =
                        y +
                                1.0 +
                                Math.sin(ta * 1.3) * 0.53;

                if (mirrored) {
                    ty = y + 1.0 + Math.sin((ta + Math.PI) * 1.3) * 0.53;
                }

                GL11.glPushMatrix();

                GL11.glTranslated(tx, ty, tz);

                GL11.glRotatef(
                        -mc.getRenderManager().info.getYaw(),
                        0, 1, 0
                );

                GL11.glRotatef(
                        mc.getRenderManager().info.getPitch(),
                        1, 0, 0
                );

                float size =
                        0.23f - (t * 0.00225f);

                if (size < 0.005f)
                    size = 0.045f;

                int color;

                if (hurt) {
                    color = 0xFF0000;
                } else {
                    color = HUD.getColor(
                            soulIndex * 72 + t * 3
                    );
                }

                float alpha =
                        1.0f - (t * 0.015f);

                if (alpha < 0.08f)
                    alpha = 0.08f;

                drawSoulQuad(
                        size,
                        color,
                        alpha
                );

                GL11.glPopMatrix();
            }
        }

        RenderSystem.defaultBlendFunc();

        RenderSystem.enableCull();
        RenderSystem.depthMask(true);
        RenderSystem.disableBlend();

        RenderSystem.popMatrix();
    }

    private void drawSoulQuad(
            float size,
            int color,
            float alpha
    ) {

        float r = ((color >> 16) & 255) / 255f;
        float g = ((color >> 8) & 255) / 255f;
        float b = (color & 255) / 255f;

        RenderSystem.enableTexture();

        GL11.glColor4f(
                Math.min(r * 2f, 1f),
                Math.min(g * 2f, 1f),
                Math.min(b * 2f, 1f),
                alpha
        );

        GL11.glBegin(GL11.GL_QUADS);

        GL11.glTexCoord2f(0, 0);
        GL11.glVertex3f(-size, -size, 0);

        GL11.glTexCoord2f(0, 1);
        GL11.glVertex3f(-size, size, 0);

        GL11.glTexCoord2f(1, 1);
        GL11.glVertex3f(size, size, 0);

        GL11.glTexCoord2f(1, 0);
        GL11.glVertex3f(size, -size, 0);

        GL11.glEnd();
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (e.getType() != EventDisplay.Type.PRE) {
            return;
        }
        if (killAura.isState() && killAura.getTarget() != null) {
            double sin = Math.sin(System.currentTimeMillis() / 1000.0);
            float size = 115.0F;

            Vector3d interpolated = killAura.getTarget().getPositon(e.getPartialTicks());
            Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + killAura.getTarget().getHeight() / 2f, interpolated.z);
            GlStateManager.pushMatrix();
            GlStateManager.translatef(pos.x, pos.y, 0);
            GlStateManager.rotatef((float) sin * 360, 0, 0, 1);
            GlStateManager.translatef(-pos.x, -pos.y, 0);
            if (type.is("Ромб")) {
                DisplayUtils.drawImage(new ResourceLocation("Dtekt/images/target.png"), pos.x - size / 2f, pos.y - size / 2f, size, size, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), 220), ColorUtils.setAlpha(HUD.getColor(90, 1), 220), ColorUtils.setAlpha(HUD.getColor(180, 1), 220), ColorUtils.setAlpha(HUD.getColor(270, 1), 220)));
            }
            GlStateManager.popMatrix();
        }
    }
}
ss1-
Посмотреть вложение 336168
cc2-
Посмотреть вложение 336169

Надеюсь понравиться <3
Вот забыл glow: Посмотреть вложение 336170
Вот забыл glow: Посмотреть вложение 336170
в 340 строчек нормально такое вышло, молодец! Но, смени базу
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Вроде ESP красивые ну чуть поправить надо, а так 1 тема ооцените пж
TargetESP:
Expand Collapse Copy
package expensive.modules.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.systems.RenderSystem;
import expensive.events.EventDisplay;
import expensive.events.WorldEvent;
import expensive.modules.api.Category;
import expensive.modules.api.Function;
import expensive.modules.api.FunctionRegister;
import expensive.modules.api.impl.ModeSetting;
import expensive.modules.api.impl.SliderSetting;
import expensive.modules.impl.combat.KillAura;
import expensive.util.math.main.Vector4i;
import expensive.util.math.prjections.ProjectionUtil;
import expensive.util.visual.main.color.ColorUtils;
import expensive.util.visual.main.display.DisplayUtils;
import lombok.Getter;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.WorldVertexBufferUploader;
import net.minecraft.client.renderer.entity.EntityRendererManager;
import net.minecraft.client.renderer.vertex.DefaultVertexFormats;
import net.minecraft.entity.LivingEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import org.lwjgl.opengl.GL11;

@FunctionRegister(name = "TargetESP", type = Category.Render)
public class TargetESP extends Function {
    private final ModeSetting type = new ModeSetting(
            "Отображение цели",
            "Ромб",
            "Ромб",
            "Кольцо",
            "Души"
    );
    private final SliderSetting soulSpeed = new SliderSetting(
            "Soul Speed",
            1.2f,
            0.2f,
            6.0f,
            0.1f
    );
    private final ResourceLocation SOUL =
            new ResourceLocation("Dtekt/images/glow.png");
    @Getter
    public static LivingEntity target = null;
    private final KillAura killAura;

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        addSettings(type, soulSpeed);
    }

    @Subscribe
    private void onWorldEvent(WorldEvent e) {
        if (this.type.is("Кольцо")) {
            EntityRendererManager rm = mc.getRenderManager();
            if (killAura.isState() && killAura.getTarget() != null) {
                double x = killAura.getTarget().lastTickPosX + (killAura.getTarget().getPosX() - killAura.getTarget().lastTickPosX) * (double) e.getPartialTicks() - rm.info.getProjectedView().getX();
                double y = killAura.getTarget().lastTickPosY + (killAura.getTarget().getPosY() - killAura.getTarget().lastTickPosY) * (double) e.getPartialTicks() - rm.info.getProjectedView().getY();
                double z = killAura.getTarget().lastTickPosZ + (killAura.getTarget().getPosZ() - killAura.getTarget().lastTickPosZ) * (double) e.getPartialTicks() - rm.info.getProjectedView().getZ();
                float height = killAura.getTarget().getHeight();
                double duration = 1900.0;
                double elapsed = (double) System.currentTimeMillis() % duration;
                boolean side = elapsed > duration / 2.0;
                double progress = elapsed / (duration / 2.0);
                progress = side ? --progress : 1.0 - progress;
                progress = progress < 0.5 ? 2.0 * progress * progress : 1.0 - Math.pow(-2.0 * progress + 2.0, 2.0) / 2.0;
                double eased = (double) (height / 2.0F) * (progress > 0.5 ? 1.0 - progress : progress) * (double) (side ? -1 : 1);
                RenderSystem.pushMatrix();
                GL11.glDepthMask(false);
                GL11.glEnable(2848);
                GL11.glHint(3154, 4354);
                RenderSystem.disableTexture();
                RenderSystem.enableBlend();
                RenderSystem.disableAlphaTest();
                RenderSystem.shadeModel(7425);
                RenderSystem.disableCull();
                RenderSystem.lineWidth(3.5F);
                RenderSystem.color4f(-1.0F, -1.0F, -1.0F, -1.0F);

                BufferBuilder buffer = Tessellator.getInstance().getBuffer();
                buffer.begin(8, DefaultVertexFormats.POSITION_COLOR);
                float[] colors = null;

                int i;
                for (i = 0; i <= 360; ++i) {
                    float r = ((HUD.getColor(0) >> 16) & 0xFF) / 255f;
                    float g = ((HUD.getColor(0) >> 8) & 0xFF) / 255f;
                    float b = (HUD.getColor(0) & 0xFF) / 255f;
                    colors = new float[]{r, g, b, 0.5f};
                    buffer.pos(x + Math.cos(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85, y + (double) height * progress, z + Math.sin(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85).color(colors[0], colors[1], colors[2], 0.5F).endVertex();
                    buffer.pos(x + Math.cos(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85, y + (double) height * progress + eased * 1.5, z + Math.sin(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85).color(colors[0], colors[1], colors[2], 4.2F).endVertex();
                }
                buffer.finishDrawing();
                WorldVertexBufferUploader.draw(buffer);

                RenderSystem.color4f(-4.0F, -1.0F, -1.0F, -1.0F);
                buffer.begin(2, DefaultVertexFormats.POSITION_COLOR);
                for (i = 0; i <= 360; ++i) {
                    buffer.pos(x + Math.cos(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85, y + (double) height * progress, z + Math.sin(Math.toRadians((double) i)) * (double) this.killAura.getTarget().getWidth() * 0.85).color(colors[0], colors[1], colors[2], 0.2F).endVertex();
                }
                buffer.finishDrawing();
                WorldVertexBufferUploader.draw(buffer);

                RenderSystem.enableCull();
                RenderSystem.disableBlend();
                RenderSystem.enableTexture();
                RenderSystem.enableAlphaTest();
                GL11.glDepthMask(true);
                GL11.glDisable(2848);
                GL11.glHint(3154, 4354);
                RenderSystem.shadeModel(7424);
                RenderSystem.popMatrix();
            }
        }

        if (type.is("Души")) {
            renderSouls(e);
        }
    }

    private void renderSouls(WorldEvent e) {

        if (!killAura.isState() || killAura.getTarget() == null)
            return;

        LivingEntity target = killAura.getTarget();

        EntityRendererManager rm = mc.getRenderManager();

        double x = target.lastTickPosX +
                (target.getPosX() - target.lastTickPosX) * e.getPartialTicks()
                - rm.info.getProjectedView().x;

        double y = target.lastTickPosY +
                (target.getPosY() - target.lastTickPosY) * e.getPartialTicks()
                - rm.info.getProjectedView().y;

        double z = target.lastTickPosZ +
                (target.getPosZ() - target.lastTickPosZ) * e.getPartialTicks()
                - rm.info.getProjectedView().z;

        RenderSystem.pushMatrix();

        RenderSystem.enableBlend();
        RenderSystem.disableCull();
        RenderSystem.depthMask(false);

        RenderSystem.blendFunc(
                GL11.GL_SRC_ALPHA,
                GL11.GL_ONE
        );

        RenderSystem.enableTexture();

        mc.getTextureManager().bindTexture(SOUL);

        long time = System.currentTimeMillis();

        boolean hurt = target.hurtTime > 0;

        float speedMultiplier = soulSpeed.get();
       
        for (int s = 0; s < 5; s++) {

            boolean mirrored = s >= 3;
            int soulIndex = s % 3;

            double speed = 0.2 * speedMultiplier;

            double angle =
                    (time * speed)
                            + (soulIndex * 72);
           
            if (mirrored) {
                angle = -angle;
            }

            double rad = Math.toRadians(angle);

            double radius = 0.52;

            double orbitX =
                    Math.cos(rad) * radius;

            double orbitZ =
                    Math.sin(rad) * radius;

            double orbitY =
                    Math.sin(rad * 1.3) * 0.23;

            orbitX += Math.sin(rad * 0.5) * 0.01;

            if (mirrored) {
                orbitY = Math.sin((rad + Math.PI) * 1.5) * 0.23;
            }

            for (int t = 0; t < 80; t++) {

                double back = t * 1.1;

                double ta =
                        Math.toRadians(angle - back);

                double tx =
                        x +
                                Math.cos(ta) * radius +
                                Math.sin(ta * 0.5) * 0.08;

                if (mirrored) {
                    tx = x - (Math.cos(ta) * radius + Math.sin(ta * 0.5) * 0.08);
                }

                double tz =
                        z +
                                Math.sin(ta) * radius;

                double ty =
                        y +
                                1.0 +
                                Math.sin(ta * 1.3) * 0.53;

                if (mirrored) {
                    ty = y + 1.0 + Math.sin((ta + Math.PI) * 1.3) * 0.53;
                }

                GL11.glPushMatrix();

                GL11.glTranslated(tx, ty, tz);

                GL11.glRotatef(
                        -mc.getRenderManager().info.getYaw(),
                        0, 1, 0
                );

                GL11.glRotatef(
                        mc.getRenderManager().info.getPitch(),
                        1, 0, 0
                );

                float size =
                        0.23f - (t * 0.00225f);

                if (size < 0.005f)
                    size = 0.045f;

                int color;

                if (hurt) {
                    color = 0xFF0000;
                } else {
                    color = HUD.getColor(
                            soulIndex * 72 + t * 3
                    );
                }

                float alpha =
                        1.0f - (t * 0.015f);

                if (alpha < 0.08f)
                    alpha = 0.08f;

                drawSoulQuad(
                        size,
                        color,
                        alpha
                );

                GL11.glPopMatrix();
            }
        }

        RenderSystem.defaultBlendFunc();

        RenderSystem.enableCull();
        RenderSystem.depthMask(true);
        RenderSystem.disableBlend();

        RenderSystem.popMatrix();
    }

    private void drawSoulQuad(
            float size,
            int color,
            float alpha
    ) {

        float r = ((color >> 16) & 255) / 255f;
        float g = ((color >> 8) & 255) / 255f;
        float b = (color & 255) / 255f;

        RenderSystem.enableTexture();

        GL11.glColor4f(
                Math.min(r * 2f, 1f),
                Math.min(g * 2f, 1f),
                Math.min(b * 2f, 1f),
                alpha
        );

        GL11.glBegin(GL11.GL_QUADS);

        GL11.glTexCoord2f(0, 0);
        GL11.glVertex3f(-size, -size, 0);

        GL11.glTexCoord2f(0, 1);
        GL11.glVertex3f(-size, size, 0);

        GL11.glTexCoord2f(1, 1);
        GL11.glVertex3f(size, size, 0);

        GL11.glTexCoord2f(1, 0);
        GL11.glVertex3f(size, -size, 0);

        GL11.glEnd();
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (e.getType() != EventDisplay.Type.PRE) {
            return;
        }
        if (killAura.isState() && killAura.getTarget() != null) {
            double sin = Math.sin(System.currentTimeMillis() / 1000.0);
            float size = 115.0F;

            Vector3d interpolated = killAura.getTarget().getPositon(e.getPartialTicks());
            Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + killAura.getTarget().getHeight() / 2f, interpolated.z);
            GlStateManager.pushMatrix();
            GlStateManager.translatef(pos.x, pos.y, 0);
            GlStateManager.rotatef((float) sin * 360, 0, 0, 1);
            GlStateManager.translatef(-pos.x, -pos.y, 0);
            if (type.is("Ромб")) {
                DisplayUtils.drawImage(new ResourceLocation("Dtekt/images/target.png"), pos.x - size / 2f, pos.y - size / 2f, size, size, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1), 220), ColorUtils.setAlpha(HUD.getColor(90, 1), 220), ColorUtils.setAlpha(HUD.getColor(180, 1), 220), ColorUtils.setAlpha(HUD.getColor(270, 1), 220)));
            }
            GlStateManager.popMatrix();
        }
    }
}
ss1-
Посмотреть вложение 336168
cc2-
Посмотреть вложение 336169

Надеюсь понравиться <3
Вот забыл glow: Посмотреть вложение 336170
Вот забыл glow: Посмотреть вложение 336170
нормас так еще на экспе
 
идет 26год типы еще експу 3.1 ебут
я уже на другой базе. exp 3.1 просто пофаниться
в 340 строчек нормально такое вышло, молодец! Но, смени базу
сменил уже
Экспа в 26 году епт
сменил давно MCP 1 21 11 пишу
 
Назад
Сверху Снизу