Исходник Слив таргет esp (призрак) 3.1

Начинающий
Статус
Оффлайн
Регистрация
25 Янв 2024
Сообщения
348
Реакции[?]
0
Поинты[?]
1K
Начинающий
Статус
Оффлайн
Регистрация
30 Июл 2023
Сообщения
420
Реакции[?]
2
Поинты[?]
1K
By: ctrax123, lasiiiiiggg , еще кто то
Код:
@Subscribe
private void onWorldEvent(WorldEvent e) {
if (mode.is("Призраки")){
            MatrixStack stack = new MatrixStack();
            EntityRendererManager rm = mc.getRenderManager();
            float c = (float) ((((System.currentTimeMillis() - startTime) / 1500F)) + (Math.sin((((System.currentTimeMillis() - startTime) / 1500F))) / 10f));

            double x = target.lastTickPosX + (this.target.getPosX() - this.target.lastTickPosX) * (double) e.getPartialTicks() - rm.info.getProjectedView().getX();
            double y = target.lastTickPosY + (this.target.getPosY() - this.target.lastTickPosY) * (double) e.getPartialTicks() - rm.info.getProjectedView().getY();
            double z = target.lastTickPosZ + (this.target.getPosZ() - this.target.lastTickPosZ) * (double) e.getPartialTicks() - rm.info.getProjectedView().getZ();
            float alpha = Shaders.shaderPackLoaded ? 1f : 0.5f;
            alpha *= 0.2F;

            float pl = 0;

            boolean fa = true;
            for (int b = 0; b < 3; b++) {
                for (float i = c * 360; i < c * 360 + 70; i += 2) {
                    float cur = i;
                    float min = c * 360;
                    float max = c * 360 + 70;
                    float dc = MathHelper.normalize(cur, c * 360 - 45, max);
                    float degrees = i;
                    int color = HUD.getColor(0);
                    int color2 = HUD.getColor(90);

                    float rf = 0.7f;
                    double radians = Math.toRadians(degrees);
                    double plY = pl + Math.sin(radians * 1.2f) * 0.1f;

                    stack.push();
                    stack.translate(x, y, z);
                    //stack.rotate(rm.info.getRotation());
                    //stack.rotate(mc.getRenderManager().info.getRotation());
                    stack.rotate(Vector3f.YP.rotationDegrees(-rm.info.getYaw()));
                    depthMask(false);

                    float q = (!fa ? 0.15f : 0.15f) * (Math.max(fa ? 0.15f : 0.15f, fa ? dc : (1f - -(0.4f - dc)) / 2f) + 0.45f);
                    float w = q * (2f + ((0.5f - alpha) * 2));
                    //GL11.glDisable(GL11.GL_DEPTH_TEST);
                    RenderHelper.drawImage1(stack,
                            new ResourceLocation("hvh/images/glow.png"),
                            Math.cos(radians) * rf - w / 2f,
                            plY + 1 - 0.7,
                            Math.sin(radians) * rf - w / 2f, w, w,
                            color,
                            color2,
                            color2,
                            color);
                    GL11.glEnable(GL11.GL_DEPTH_TEST);
                    depthMask(true);
                    stack.pop();
                }
                c *= -1.25f;
                fa = !fa;
                pl += 0.45f;
            }
        }
    }
Код:
public static void drawImage1(MatrixStack stack, ResourceLocation image, double x, double y, double z, double width, double height, int color1, int color2, int color3, int color4) {
        Minecraft minecraft = Minecraft.getInstance();
        GlStateManager.enableBlend();
        GlStateManager.blendFunc(GL_SRC_ALPHA, GL_ONE);
        GL11.glShadeModel(GL11.GL_SMOOTH);
        GL11.glAlphaFunc(GL11.GL_GREATER, 0);
        minecraft.getTextureManager().bindTexture(image);
        RenderSystem.color4f(1.0f, 1.0f, 1.0f, 1.0f);
        Tessellator tessellator = Tessellator.getInstance();
        BufferBuilder bufferBuilder = tessellator.getBuffer();
        bufferBuilder.begin(GL_QUADS, DefaultVertexFormats.POSITION_COLOR_TEX_LIGHTMAP);
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) x, (float) (y + height), (float) (z)).color((color1 >> 16) & 0xFF, (color1 >> 8) & 0xFF, color1 & 0xFF, color1 >>> 24).tex(0, 1 - 0.01f).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) (x + width), (float) (y + height), (float) (z)).color((color2 >> 16) & 0xFF, (color2 >> 8) & 0xFF, color2 & 0xFF, color2 >>> 24).tex(1, 1 - 0.01f).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) (x + width), (float) y, (float) z).color((color3 >> 16) & 0xFF, (color3 >> 8) & 0xFF, color3 & 0xFF, color3 >>> 24).tex(1, 0).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) x, (float) y, (float) z).color((color4 >> 16) & 0xFF, (color4 >> 8) & 0xFF, color4 & 0xFF, color4 >>> 24).tex(0, 0).lightmap(0, 240).endVertex();

        tessellator.draw();
        disableBlend();
    }
Код:
public static float normalize(float value, float min, float max) {
        return (value - min) / (max - min);
    }
ss: Посмотреть вложение 281506
При вкл функции спам в консоли
 
Начинающий
Статус
Оффлайн
Регистрация
21 Дек 2022
Сообщения
68
Реакции[?]
0
Поинты[?]
0
By: ctrax123, lasiiiiiggg , еще кто то
Код:
@Subscribe
private void onWorldEvent(WorldEvent e) {
if (mode.is("Призраки")){
            MatrixStack stack = new MatrixStack();
            EntityRendererManager rm = mc.getRenderManager();
            float c = (float) ((((System.currentTimeMillis() - startTime) / 1500F)) + (Math.sin((((System.currentTimeMillis() - startTime) / 1500F))) / 10f));

            double x = target.lastTickPosX + (this.target.getPosX() - this.target.lastTickPosX) * (double) e.getPartialTicks() - rm.info.getProjectedView().getX();
            double y = target.lastTickPosY + (this.target.getPosY() - this.target.lastTickPosY) * (double) e.getPartialTicks() - rm.info.getProjectedView().getY();
            double z = target.lastTickPosZ + (this.target.getPosZ() - this.target.lastTickPosZ) * (double) e.getPartialTicks() - rm.info.getProjectedView().getZ();
            float alpha = Shaders.shaderPackLoaded ? 1f : 0.5f;
            alpha *= 0.2F;

            float pl = 0;

            boolean fa = true;
            for (int b = 0; b < 3; b++) {
                for (float i = c * 360; i < c * 360 + 70; i += 2) {
                    float cur = i;
                    float min = c * 360;
                    float max = c * 360 + 70;
                    float dc = MathHelper.normalize(cur, c * 360 - 45, max);
                    float degrees = i;
                    int color = HUD.getColor(0);
                    int color2 = HUD.getColor(90);

                    float rf = 0.7f;
                    double radians = Math.toRadians(degrees);
                    double plY = pl + Math.sin(radians * 1.2f) * 0.1f;

                    stack.push();
                    stack.translate(x, y, z);
                    //stack.rotate(rm.info.getRotation());
                    //stack.rotate(mc.getRenderManager().info.getRotation());
                    stack.rotate(Vector3f.YP.rotationDegrees(-rm.info.getYaw()));
                    depthMask(false);

                    float q = (!fa ? 0.15f : 0.15f) * (Math.max(fa ? 0.15f : 0.15f, fa ? dc : (1f - -(0.4f - dc)) / 2f) + 0.45f);
                    float w = q * (2f + ((0.5f - alpha) * 2));
                    //GL11.glDisable(GL11.GL_DEPTH_TEST);
                    RenderHelper.drawImage1(stack,
                            new ResourceLocation("hvh/images/glow.png"),
                            Math.cos(radians) * rf - w / 2f,
                            plY + 1 - 0.7,
                            Math.sin(radians) * rf - w / 2f, w, w,
                            color,
                            color2,
                            color2,
                            color);
                    GL11.glEnable(GL11.GL_DEPTH_TEST);
                    depthMask(true);
                    stack.pop();
                }
                c *= -1.25f;
                fa = !fa;
                pl += 0.45f;
            }
        }
    }
Код:
public static void drawImage1(MatrixStack stack, ResourceLocation image, double x, double y, double z, double width, double height, int color1, int color2, int color3, int color4) {
        Minecraft minecraft = Minecraft.getInstance();
        GlStateManager.enableBlend();
        GlStateManager.blendFunc(GL_SRC_ALPHA, GL_ONE);
        GL11.glShadeModel(GL11.GL_SMOOTH);
        GL11.glAlphaFunc(GL11.GL_GREATER, 0);
        minecraft.getTextureManager().bindTexture(image);
        RenderSystem.color4f(1.0f, 1.0f, 1.0f, 1.0f);
        Tessellator tessellator = Tessellator.getInstance();
        BufferBuilder bufferBuilder = tessellator.getBuffer();
        bufferBuilder.begin(GL_QUADS, DefaultVertexFormats.POSITION_COLOR_TEX_LIGHTMAP);
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) x, (float) (y + height), (float) (z)).color((color1 >> 16) & 0xFF, (color1 >> 8) & 0xFF, color1 & 0xFF, color1 >>> 24).tex(0, 1 - 0.01f).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) (x + width), (float) (y + height), (float) (z)).color((color2 >> 16) & 0xFF, (color2 >> 8) & 0xFF, color2 & 0xFF, color2 >>> 24).tex(1, 1 - 0.01f).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) (x + width), (float) y, (float) z).color((color3 >> 16) & 0xFF, (color3 >> 8) & 0xFF, color3 & 0xFF, color3 >>> 24).tex(1, 0).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) x, (float) y, (float) z).color((color4 >> 16) & 0xFF, (color4 >> 8) & 0xFF, color4 & 0xFF, color4 >>> 24).tex(0, 0).lightmap(0, 240).endVertex();

        tessellator.draw();
        disableBlend();
    }
Код:
public static float normalize(float value, float min, float max) {
        return (value - min) / (max - min);
    }
ss: Посмотреть вложение 281506
хуйня
 
Забаненный
Статус
Оффлайн
Регистрация
2 Фев 2024
Сообщения
852
Реакции[?]
7
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Забаненный
Статус
Оффлайн
Регистрация
10 Май 2023
Сообщения
826
Реакции[?]
9
Поинты[?]
3K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Люты код:
июл. 23, 2024 8:59:48 PM com.google.common.eventbus.EventBus$LoggingHandler handleException
SEVERE: Exception thrown by subscriber method onWorldEvent(fun.ellant.events.WorldEvent) on subscriber fun.ellant.functions.impl.render.TargetESP2@23a74b7e when dispatching event: fun.ellant.events.WorldEvent@6d208cb2
java.lang.NullPointerException: Cannot invoke "fun.ellant.functions.impl.combat.KillAura.getTarget()" because "this.killAura" is null
    at fun.ellant.functions.impl.render.TargetESP2.onWorldEvent(TargetESP2.java:65)
    at jdk.internal.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraft.client.renderer.WorldRenderer.updateCameraAndRender(WorldRenderer.java:1957)
    at net.minecraft.client.renderer.GameRenderer.renderWorld(GameRenderer.java:960)
    at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:670)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:979)
    at net.minecraft.client.Minecraft.run(Minecraft.java:570)
    at net.minecraft.client.main.Main.main(Main.java:190)
    at Start.main(Start.java:11)

Хелпп
 
Начинающий
Статус
Оффлайн
Регистрация
6 Дек 2023
Сообщения
241
Реакции[?]
1
Поинты[?]
1K
Тупо не рисуется, в дебаг ничего не пишет, кинь импорты нормальные на все классы пж
 
Начинающий
Статус
Оффлайн
Регистрация
17 Май 2022
Сообщения
4
Реакции[?]
0
Поинты[?]
0
By: ctrax123, lasiiiiiggg , еще кто то
Код:
@Subscribe
private void onWorldEvent(WorldEvent e) {
if (mode.is("Призраки")){
            MatrixStack stack = new MatrixStack();
            EntityRendererManager rm = mc.getRenderManager();
            float c = (float) ((((System.currentTimeMillis() - startTime) / 1500F)) + (Math.sin((((System.currentTimeMillis() - startTime) / 1500F))) / 10f));

            double x = target.lastTickPosX + (this.target.getPosX() - this.target.lastTickPosX) * (double) e.getPartialTicks() - rm.info.getProjectedView().getX();
            double y = target.lastTickPosY + (this.target.getPosY() - this.target.lastTickPosY) * (double) e.getPartialTicks() - rm.info.getProjectedView().getY();
            double z = target.lastTickPosZ + (this.target.getPosZ() - this.target.lastTickPosZ) * (double) e.getPartialTicks() - rm.info.getProjectedView().getZ();
            float alpha = Shaders.shaderPackLoaded ? 1f : 0.5f;
            alpha *= 0.2F;

            float pl = 0;

            boolean fa = true;
            for (int b = 0; b < 3; b++) {
                for (float i = c * 360; i < c * 360 + 70; i += 2) {
                    float cur = i;
                    float min = c * 360;
                    float max = c * 360 + 70;
                    float dc = MathHelper.normalize(cur, c * 360 - 45, max);
                    float degrees = i;
                    int color = HUD.getColor(0);
                    int color2 = HUD.getColor(90);

                    float rf = 0.7f;
                    double radians = Math.toRadians(degrees);
                    double plY = pl + Math.sin(radians * 1.2f) * 0.1f;

                    stack.push();
                    stack.translate(x, y, z);
                    //stack.rotate(rm.info.getRotation());
                    //stack.rotate(mc.getRenderManager().info.getRotation());
                    stack.rotate(Vector3f.YP.rotationDegrees(-rm.info.getYaw()));
                    depthMask(false);

                    float q = (!fa ? 0.15f : 0.15f) * (Math.max(fa ? 0.15f : 0.15f, fa ? dc : (1f - -(0.4f - dc)) / 2f) + 0.45f);
                    float w = q * (2f + ((0.5f - alpha) * 2));
                    //GL11.glDisable(GL11.GL_DEPTH_TEST);
                    RenderHelper.drawImage1(stack,
                            new ResourceLocation("hvh/images/glow.png"),
                            Math.cos(radians) * rf - w / 2f,
                            plY + 1 - 0.7,
                            Math.sin(radians) * rf - w / 2f, w, w,
                            color,
                            color2,
                            color2,
                            color);
                    GL11.glEnable(GL11.GL_DEPTH_TEST);
                    depthMask(true);
                    stack.pop();
                }
                c *= -1.25f;
                fa = !fa;
                pl += 0.45f;
            }
        }
    }
Код:
public static void drawImage1(MatrixStack stack, ResourceLocation image, double x, double y, double z, double width, double height, int color1, int color2, int color3, int color4) {
        Minecraft minecraft = Minecraft.getInstance();
        GlStateManager.enableBlend();
        GlStateManager.blendFunc(GL_SRC_ALPHA, GL_ONE);
        GL11.glShadeModel(GL11.GL_SMOOTH);
        GL11.glAlphaFunc(GL11.GL_GREATER, 0);
        minecraft.getTextureManager().bindTexture(image);
        RenderSystem.color4f(1.0f, 1.0f, 1.0f, 1.0f);
        Tessellator tessellator = Tessellator.getInstance();
        BufferBuilder bufferBuilder = tessellator.getBuffer();
        bufferBuilder.begin(GL_QUADS, DefaultVertexFormats.POSITION_COLOR_TEX_LIGHTMAP);
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) x, (float) (y + height), (float) (z)).color((color1 >> 16) & 0xFF, (color1 >> 8) & 0xFF, color1 & 0xFF, color1 >>> 24).tex(0, 1 - 0.01f).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) (x + width), (float) (y + height), (float) (z)).color((color2 >> 16) & 0xFF, (color2 >> 8) & 0xFF, color2 & 0xFF, color2 >>> 24).tex(1, 1 - 0.01f).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) (x + width), (float) y, (float) z).color((color3 >> 16) & 0xFF, (color3 >> 8) & 0xFF, color3 & 0xFF, color3 >>> 24).tex(1, 0).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) x, (float) y, (float) z).color((color4 >> 16) & 0xFF, (color4 >> 8) & 0xFF, color4 & 0xFF, color4 >>> 24).tex(0, 0).lightmap(0, 240).endVertex();

        tessellator.draw();
        disableBlend();
    }
Код:
public static float normalize(float value, float min, float max) {
        return (value - min) / (max - min);
    }
ss: Посмотреть вложение 281506
вобщем они отрисовываются но не двигаются помоги плиз
 
Забаненный
Статус
Оффлайн
Регистрация
2 Фев 2024
Сообщения
852
Реакции[?]
7
Поинты[?]
4K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
скинь плиз фикшенный код с импортами, а то некоторые траблы ;3
так это норм код что фиксить если ты хочеш убрать спам в консоль убери this. или же сделай null
Люты код:
июл. 23, 2024 8:59:48 PM com.google.common.eventbus.EventBus$LoggingHandler handleException
SEVERE: Exception thrown by subscriber method onWorldEvent(fun.ellant.events.WorldEvent) on subscriber fun.ellant.functions.impl.render.TargetESP2@23a74b7e when dispatching event: fun.ellant.events.WorldEvent@6d208cb2
java.lang.NullPointerException: Cannot invoke "fun.ellant.functions.impl.combat.KillAura.getTarget()" because "this.killAura" is null
    at fun.ellant.functions.impl.render.TargetESP2.onWorldEvent(TargetESP2.java:65)
    at jdk.internal.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)
    at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)
    at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)
    at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
    at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)
    at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)
    at com.google.common.eventbus.EventBus.post(EventBus.java:217)
    at net.minecraft.client.renderer.WorldRenderer.updateCameraAndRender(WorldRenderer.java:1957)
    at net.minecraft.client.renderer.GameRenderer.renderWorld(GameRenderer.java:960)
    at net.minecraft.client.renderer.GameRenderer.updateCameraAndRender(GameRenderer.java:670)
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:979)
    at net.minecraft.client.Minecraft.run(Minecraft.java:570)
    at net.minecraft.client.main.Main.main(Main.java:190)
    at Start.main(Start.java:11)

Хелпп
убери this. или же сделай null
 
Начинающий
Статус
Оффлайн
Регистрация
25 Фев 2024
Сообщения
474
Реакции[?]
0
Поинты[?]
0
By: ctrax123, lasiiiiiggg , еще кто то
Код:
@Subscribe
private void onWorldEvent(WorldEvent e) {
if (mode.is("Призраки")){
            MatrixStack stack = new MatrixStack();
            EntityRendererManager rm = mc.getRenderManager();
            float c = (float) ((((System.currentTimeMillis() - startTime) / 1500F)) + (Math.sin((((System.currentTimeMillis() - startTime) / 1500F))) / 10f));

            double x = target.lastTickPosX + (this.target.getPosX() - this.target.lastTickPosX) * (double) e.getPartialTicks() - rm.info.getProjectedView().getX();
            double y = target.lastTickPosY + (this.target.getPosY() - this.target.lastTickPosY) * (double) e.getPartialTicks() - rm.info.getProjectedView().getY();
            double z = target.lastTickPosZ + (this.target.getPosZ() - this.target.lastTickPosZ) * (double) e.getPartialTicks() - rm.info.getProjectedView().getZ();
            float alpha = Shaders.shaderPackLoaded ? 1f : 0.5f;
            alpha *= 0.2F;

            float pl = 0;

            boolean fa = true;
            for (int b = 0; b < 3; b++) {
                for (float i = c * 360; i < c * 360 + 70; i += 2) {
                    float cur = i;
                    float min = c * 360;
                    float max = c * 360 + 70;
                    float dc = MathHelper.normalize(cur, c * 360 - 45, max);
                    float degrees = i;
                    int color = HUD.getColor(0);
                    int color2 = HUD.getColor(90);

                    float rf = 0.7f;
                    double radians = Math.toRadians(degrees);
                    double plY = pl + Math.sin(radians * 1.2f) * 0.1f;

                    stack.push();
                    stack.translate(x, y, z);
                    //stack.rotate(rm.info.getRotation());
                    //stack.rotate(mc.getRenderManager().info.getRotation());
                    stack.rotate(Vector3f.YP.rotationDegrees(-rm.info.getYaw()));
                    depthMask(false);

                    float q = (!fa ? 0.15f : 0.15f) * (Math.max(fa ? 0.15f : 0.15f, fa ? dc : (1f - -(0.4f - dc)) / 2f) + 0.45f);
                    float w = q * (2f + ((0.5f - alpha) * 2));
                    //GL11.glDisable(GL11.GL_DEPTH_TEST);
                    RenderHelper.drawImage1(stack,
                            new ResourceLocation("hvh/images/glow.png"),
                            Math.cos(radians) * rf - w / 2f,
                            plY + 1 - 0.7,
                            Math.sin(radians) * rf - w / 2f, w, w,
                            color,
                            color2,
                            color2,
                            color);
                    GL11.glEnable(GL11.GL_DEPTH_TEST);
                    depthMask(true);
                    stack.pop();
                }
                c *= -1.25f;
                fa = !fa;
                pl += 0.45f;
            }
        }
    }
Код:
public static void drawImage1(MatrixStack stack, ResourceLocation image, double x, double y, double z, double width, double height, int color1, int color2, int color3, int color4) {
        Minecraft minecraft = Minecraft.getInstance();
        GlStateManager.enableBlend();
        GlStateManager.blendFunc(GL_SRC_ALPHA, GL_ONE);
        GL11.glShadeModel(GL11.GL_SMOOTH);
        GL11.glAlphaFunc(GL11.GL_GREATER, 0);
        minecraft.getTextureManager().bindTexture(image);
        RenderSystem.color4f(1.0f, 1.0f, 1.0f, 1.0f);
        Tessellator tessellator = Tessellator.getInstance();
        BufferBuilder bufferBuilder = tessellator.getBuffer();
        bufferBuilder.begin(GL_QUADS, DefaultVertexFormats.POSITION_COLOR_TEX_LIGHTMAP);
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) x, (float) (y + height), (float) (z)).color((color1 >> 16) & 0xFF, (color1 >> 8) & 0xFF, color1 & 0xFF, color1 >>> 24).tex(0, 1 - 0.01f).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) (x + width), (float) (y + height), (float) (z)).color((color2 >> 16) & 0xFF, (color2 >> 8) & 0xFF, color2 & 0xFF, color2 >>> 24).tex(1, 1 - 0.01f).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) (x + width), (float) y, (float) z).color((color3 >> 16) & 0xFF, (color3 >> 8) & 0xFF, color3 & 0xFF, color3 >>> 24).tex(1, 0).lightmap(0, 240).endVertex();
        bufferBuilder.pos(stack.getLast().getMatrix(), (float) x, (float) y, (float) z).color((color4 >> 16) & 0xFF, (color4 >> 8) & 0xFF, color4 & 0xFF, color4 >>> 24).tex(0, 0).lightmap(0, 240).endVertex();

        tessellator.draw();
        disableBlend();
    }
Код:
public static float normalize(float value, float min, float max) {
        return (value - min) / (max - min);
    }
ss: Посмотреть вложение 281506
я один не могу это спастить?
 
Забаненный
Статус
Оффлайн
Регистрация
10 Май 2023
Сообщения
826
Реакции[?]
9
Поинты[?]
3K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
я один не могу это спастить?
да , ты лох


Код:
   public static float normalize(float value, float min, float max) {
        return (value - min) / (max - min);
    }
    private LivingEntity target;
    public static long startTime = System.currentTimeMillis();
    @Subscribe
    private void onWorldEvent(WorldEvent e) {
        if (mod.is("Призраки")) {
            float speedi = (Float) speed.get();
            MatrixStack stack = new MatrixStack();
            EntityRendererManager rm = mc.getRenderManager();
            double speed = (double) speedi;
            float c = (float) ((((System.currentTimeMillis() - startTime) / 1500F / speed)) + (Math.sin((((System.currentTimeMillis() - startTime) / 1500F))) / 10f));

            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 alpha = Shaders.shaderPackLoaded ? 1f : 0.5f;
            alpha *= 0.2F;

            float pl = 0;

            boolean fa = true;
            for (int b = 0; b < 3; b++) {
                for (float i = c * 360; i < c * 360 + 70; i += 2) {
                    float cur = i;
                    float min = c * 360;
                    float max = c * 360 + 70;
                    float dc = MathHelper.normalize(cur, c * 360 - 45, max);
                    float degrees = i;
                    int color = HUD.getColor(0);
                    int color2 = HUD.getColor(90);

                    float rf = 0.7f;
                    double radians = Math.toRadians(degrees);
                    double plY = pl + Math.sin(radians * 1.2f) * 0.1f;

                    stack.push();
                    stack.translate(x, y, z);
                    //stack.rotate(rm.info.getRotation());
                    //stack.rotate(mc.getRenderManager().info.getRotation());
                    stack.rotate(Vector3f.YP.rotationDegrees(-rm.info.getYaw()));
                    depthMask(false);

                    float q = (!fa ? 0.15f : 0.15f) * (Math.max(fa ? 0.15f : 0.15f, fa ? dc : (1f - -(0.4f - dc)) / 2f) + 0.45f);
                    float w = q * (2f + ((0.5f - alpha) * 2));
                    //GL11.glDisable(GL11.GL_DEPTH_TEST);
                    RenderHelper.drawImage1(stack,
                            new ResourceLocation("expensive/images/glow.png"),
                            Math.cos(radians) * rf - w / 2f,
                            plY + 1 - 0.7,
                            Math.sin(radians) * rf - w / 2f, w, w,
                            color,
                            color2,
                            color2,
                            color);
                    GL11.glEnable(GL11.GL_DEPTH_TEST);
                    depthMask(true);
                    stack.pop();
                }
                c *= -1.25f;
                fa = !fa;
                pl += 0.45f;
            }
        }
 
}
я че настолько тупой...

можешь помочь спастить это? manloxx1337 - ds
отпиши мне в дс nakson_play, помогу
 
Начинающий
Статус
Оффлайн
Регистрация
25 Фев 2024
Сообщения
474
Реакции[?]
0
Поинты[?]
0
да , ты лох


Код:
   public static float normalize(float value, float min, float max) {
        return (value - min) / (max - min);
    }
    private LivingEntity target;
    public static long startTime = System.currentTimeMillis();
    @Subscribe
    private void onWorldEvent(WorldEvent e) {
        if (mod.is("Призраки")) {
            float speedi = (Float) speed.get();
            MatrixStack stack = new MatrixStack();
            EntityRendererManager rm = mc.getRenderManager();
            double speed = (double) speedi;
            float c = (float) ((((System.currentTimeMillis() - startTime) / 1500F / speed)) + (Math.sin((((System.currentTimeMillis() - startTime) / 1500F))) / 10f));

            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 alpha = Shaders.shaderPackLoaded ? 1f : 0.5f;
            alpha *= 0.2F;

            float pl = 0;

            boolean fa = true;
            for (int b = 0; b < 3; b++) {
                for (float i = c * 360; i < c * 360 + 70; i += 2) {
                    float cur = i;
                    float min = c * 360;
                    float max = c * 360 + 70;
                    float dc = MathHelper.normalize(cur, c * 360 - 45, max);
                    float degrees = i;
                    int color = HUD.getColor(0);
                    int color2 = HUD.getColor(90);

                    float rf = 0.7f;
                    double radians = Math.toRadians(degrees);
                    double plY = pl + Math.sin(radians * 1.2f) * 0.1f;

                    stack.push();
                    stack.translate(x, y, z);
                    //stack.rotate(rm.info.getRotation());
                    //stack.rotate(mc.getRenderManager().info.getRotation());
                    stack.rotate(Vector3f.YP.rotationDegrees(-rm.info.getYaw()));
                    depthMask(false);

                    float q = (!fa ? 0.15f : 0.15f) * (Math.max(fa ? 0.15f : 0.15f, fa ? dc : (1f - -(0.4f - dc)) / 2f) + 0.45f);
                    float w = q * (2f + ((0.5f - alpha) * 2));
                    //GL11.glDisable(GL11.GL_DEPTH_TEST);
                    RenderHelper.drawImage1(stack,
                            new ResourceLocation("expensive/images/glow.png"),
                            Math.cos(radians) * rf - w / 2f,
                            plY + 1 - 0.7,
                            Math.sin(radians) * rf - w / 2f, w, w,
                            color,
                            color2,
                            color2,
                            color);
                    GL11.glEnable(GL11.GL_DEPTH_TEST);
                    depthMask(true);
                    stack.pop();
                }
                c *= -1.25f;
                fa = !fa;
                pl += 0.45f;
            }
        }

}
отпиши мне в дс nakson_play, помогу
я сделал уже
 
Сверху Снизу