Исходник Target esp (Призрак) Expensive 3.1

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

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

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

Спасибо!

сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: 1716994030752.png

ой щас пойдёт поток паст

делали мы с: sverty
 

Вложения

Начинающий
Статус
Оффлайн
Регистрация
22 Авг 2022
Сообщения
331
Реакции[?]
3
Поинты[?]
3K
Ой бездари, с темы где чел вопрос задавал про таргет есп взяли спиздили и слили его же еспшки ну вы конечно....
 
Забаненный
Статус
Оффлайн
Регистрация
27 Май 2024
Сообщения
262
Реакции[?]
10
Поинты[?]
10K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
Ты делал) Максимум, что ты делал сам, это нервничал, что не мог спастить) А когда спастил радовался и думал получить славу от общества. Смешной.
 
Начинающий
Статус
Оффлайн
Регистрация
30 Июн 2023
Сообщения
98
Реакции[?]
1
Поинты[?]
3K
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
Жалко чела у которого спиздили код :(
 
Начинающий
Статус
Оффлайн
Регистрация
26 Фев 2024
Сообщения
395
Реакции[?]
0
Поинты[?]
0
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
ок

Пожалуйста, зарегистрируйтесь или авторизуйтесь, чтобы увидеть содержимое.

 
Последнее редактирование:
Начинающий
Статус
Оффлайн
Регистрация
3 Авг 2022
Сообщения
261
Реакции[?]
2
Поинты[?]
2K
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
Вы прикалываетесь я тока его сделал 2 недели назад и щас его сливают!!!
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
тока сделал через 2-3 недели уже кто-то на юг запостил..
 
Начинающий
Статус
Оффлайн
Регистрация
1 Май 2024
Сообщения
128
Реакции[?]
1
Поинты[?]
1K
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
not nix moment ладно молодец дороботал хоть ни пиздец какой-то
 
Начинающий
Статус
Оффлайн
Регистрация
25 Янв 2024
Сообщения
347
Реакции[?]
0
Поинты[?]
1K
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
Пиздец пастеры додумались - я это 3 дня назд уже сделал
 
Начинающий
Статус
Оффлайн
Регистрация
5 Апр 2023
Сообщения
389
Реакции[?]
1
Поинты[?]
2K
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
это совсем пиздец
 
Начинающий
Статус
Оффлайн
Регистрация
5 Май 2024
Сообщения
33
Реакции[?]
0
Поинты[?]
0
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
Чё делать у меня не так выглядит пойдем в дс anysauls
 
Начинающий
Статус
Оффлайн
Регистрация
29 Мар 2024
Сообщения
45
Реакции[?]
0
Поинты[?]
0
сливаю крутой таргет есп на 3.1
Java:
package im.expensive.functions.impl.render;

import com.google.common.eventbus.Subscribe;
import com.mojang.blaze3d.platform.GlStateManager;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.vector.Vector2f;
import net.minecraft.util.math.vector.Vector3d;
import im.expensive.events.EventDisplay;
import im.expensive.events.EventDisplay.Type;
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.Setting;
import im.expensive.functions.settings.impl.ModeSetting;
import im.expensive.functions.settings.impl.SliderSetting;
import im.expensive.utils.math.Vector4i;
import im.expensive.utils.projections.ProjectionUtil;
import im.expensive.utils.render.ColorUtils;
import im.expensive.utils.render.DisplayUtils;

@FunctionRegister(
        name = "TargetESP",
        type = Category.Render
)
public class TargetESP extends Function {
    private final KillAura killAura;
    public ModeSetting mod = new ModeSetting("Мод", "Client", new String[]{"Client", "Призраки"});
    public SliderSetting speed = new SliderSetting("Скорость", 3.0F, 0.7F, 9.0F, 1.0F);
    public SliderSetting size = new SliderSetting("Размер", 30.0F, 5.0F, 140.0F, 1.0F);
    public SliderSetting bright = new SliderSetting("Яркость", 255.0F, 1.0F, 255.0F, 1.0F);

    public TargetESP(KillAura killAura) {
        this.killAura = killAura;
        this.addSettings(new Setting[]{this.mod, this.speed, this.size, this.bright});
    }

    @Subscribe
    private void onDisplay(EventDisplay e) {
        if (this.mod.is("Nurik")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                double sin = Math.sin((double)System.currentTimeMillis() / 1000.0);
                float size = 70.0F;
                Vector3d interpolated = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector2f pos = ProjectionUtil.project(interpolated.x, interpolated.y + (double)(this.killAura.getTarget().getHeight() / 2.0F), interpolated.z);
                GlStateManager.pushMatrix();
                GlStateManager.translatef(pos.x, pos.y, 0.0F);
                GlStateManager.rotatef((float)sin * 360.0F, 0.0F, 0.0F, 1.0F);
                GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                DisplayUtils.drawImage(new ResourceLocation("expensive/images/target.png"), pos.x - size / 2.0F, pos.y - size / 2.0F, size, size, new Vector4i(ColorUtils.rgb(255, 255, 255), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), 220), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), 220)));
                GlStateManager.popMatrix();
            }
        }

        if (this.mod.is("Призраки")) {
            if (e.getType() != Type.PRE) {
                return;
            }

            if (this.killAura.isState() && this.killAura.getTarget() != null) {
                float speedi = (Float)this.speed.get();
                float sizik = (Float)this.size.get();
                int yarkost = ((Float)this.bright.get()).intValue();
                double speed = (double)speedi;
                double time = (double)System.currentTimeMillis() / (500.0 / speed);
                double sin = Math.sin(time);
                double cos = Math.cos(time);
                float size = sizik;
                int brightness = yarkost;
                Vector3d headPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)this.killAura.getTarget().getHeight(), 0.0);
                Vector3d bodyPos = this.killAura.getTarget().getPositon(e.getPartialTicks()).add(0.0, (double)(this.killAura.getTarget().getHeight() / 2.0F), 0.0);
                Vector3d legPos = this.killAura.getTarget().getPositon(e.getPartialTicks());
                Vector3d[] upperPositions = new Vector3d[]{bodyPos.add(0.0, 0.5, 0.0)};
                Vector3d[] lowerPositions = new Vector3d[]{legPos.add(0.0, 0.5, 0.0)};
                ResourceLocation image = new ResourceLocation("expensive/images/hud/glow.png");

                for(int j = 0; j < 40; ++j) {
                    float alpha = (float)(brightness - j * 5);
                    if (alpha < 0.0F) {
                        alpha = 0.0F;
                    }

                    float trailSize = size * (1.0F - (float)j * 0.02F);
                    double trailTime = time - (double)j * 0.1;
                    double trailSin = Math.sin(trailTime);
                    double trailCos = Math.cos(trailTime);
                    float angleOffset = (float)j * 7.2F;

                    int i;
                    Vector3d pos3d;
                    Vector2f pos;
                    for(i = 0; i < upperPositions.length; ++i) {
                        pos3d = upperPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x + trailCos * 0.5, pos3d.y, pos3d.z + trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }

                    for(i = 0; i < lowerPositions.length; ++i) {
                        pos3d = lowerPositions[i].add(0.0, Math.sin(trailTime) * 0.26, 0.0);
                        pos = ProjectionUtil.project(pos3d.x - trailCos * 0.5, pos3d.y, pos3d.z - trailSin * 0.5);
                        GlStateManager.pushMatrix();
                        GlStateManager.translatef(pos.x, pos.y, 0.0F);
                        GlStateManager.rotatef((float)(-trailSin * 360.0 + (double)(i * 180) + (double)angleOffset), 0.0F, 0.0F, 1.0F);
                        GlStateManager.translatef(-pos.x, -pos.y, 0.0F);
                        DisplayUtils.drawImage(image, pos.x - trailSize / 2.0F, pos.y - trailSize / 2.0F, trailSize, trailSize, new Vector4i(ColorUtils.setAlpha(HUD.getColor(0, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(90, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(180, 1.0F), (int)alpha), ColorUtils.setAlpha(HUD.getColor(270, 1.0F), (int)alpha)));
                        GlStateManager.popMatrix();
                    }
                }
            }
        }

    }
}
ss: Посмотреть вложение 277839

ой щас пойдёт поток паст

делали мы с: sverty
сделайте пж что б в режиме призраки было не 2 круга а 3 которые крутятся вокруг цели мой дс wa1zik1488
 
Сверху Снизу