TargetHud nursultan premium 1.12.2 | Expensive 3.1

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
10 Июл 2022
Сообщения
160
Реакции
5
ss:
1722861969726.png


Java:
Expand Collapse Copy
@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class TargetInfoRenderer implements ElementRenderer {
    final StopWatch stopWatch = new StopWatch();
    final Dragging drag;
    LivingEntity entity = null;
    boolean allow;
    final Animation animation = new EaseBackIn(400, 1, 1);
    float healthAnimation = 0.0f;
    float absorptionAnimation = 0.0f;

    @Override
    public void render(EventDisplay eventDisplay) {
        MatrixStack ms = eventDisplay.getMatrixStack();
        entity = getTarget(entity);

        boolean out = !allow || stopWatch.isReached(1000);
        animation.setDuration(out ? 400 : 300);
        animation.setDirection(out ? Direction.BACKWARDS : Direction.FORWARDS);

        if (animation.getOutput() == 0.0f) {
            entity = null;
        }

        if (entity != null) {

            float posX = drag.getX();
            float posY = drag.getY();

            float headSize = 20;
            float spacing = 5;

            float width = 172 / 1.5f;
            float height = 59 / 1.5f;
            drag.setWidth(width);
            drag.setHeight(height);
            Score score = mc.world.getScoreboard().getOrCreateScore(entity.getScoreboardName(), mc.world.getScoreboard().getObjectiveInDisplaySlot(2));


            float hp = entity.getHealth();
            float maxHp = entity.getMaxHealth();
            String header = mc.ingameGUI.getTabList().header == null ? " " : mc.ingameGUI.getTabList().header.getString().toLowerCase();

            if (mc.getCurrentServerData() != null && mc.getCurrentServerData().serverIP.contains("funtime")
                    && (header.contains("анархия") || header.contains("гриферский")) && entity instanceof PlayerEntity) {
                hp = score.getScorePoints();
                maxHp = 20;
            }
            healthAnimation = MathUtil.fast(healthAnimation, MathHelper.clamp(hp / maxHp, 0, 1), 10);
            absorptionAnimation = MathUtil.fast(absorptionAnimation, MathHelper.clamp(entity.getAbsorptionAmount() / maxHp, 0, 1), 10);


            float animationValue = (float) animation.getOutput();

            float halfAnimationValueRest = (1 - animationValue) / 2f;

            float testX = posX + (width * halfAnimationValueRest);
            float testY = posY + (height * halfAnimationValueRest);
            float testW = width * animationValue;
            float testH = height * animationValue;
            GlStateManager.pushMatrix();
            sizeAnimation(posX + (width / 2), posY + (height / 2), animation.getOutput());

            Scissor.push();
            Scissor.setFromComponentCoordinates(testX, testY, testW - 6, testH);

            Scissor.unset();
            Scissor.pop();
            Fonts.moon.drawCenteredText(ms, entity.getName().getString(), posX + headSize + spacing + spacing + 46.8f, posY + spacing + 1 - 3, ColorUtils.rgb(0, 0, 0), 12.5f);
            Fonts.moon.drawCenteredText(eventDisplay.getMatrixStack(), entity.getName().getString(), posX + headSize + spacing + spacing + 46.5f, posY + spacing + 1 - 3, -1, 12.5f);


            DisplayUtils.drawShadow(posX + headSize + spacing + spacing, posY  - spacing * 2 - 3 + 35, (width - 20), 7,  5, ColorUtils.rgba(0,0,0, 50));
            DisplayUtils.drawRoundedRect(posX + headSize + spacing + spacing, posY  - spacing * 2 - 3 + 35, (width - 20), 7,  1, ColorUtils.rgba(0,0,0, 150));
            RenderUtils.renderClientBloom(eventDisplay.getMatrixStack(), posX + headSize + spacing + spacing, posY + - spacing * 2 - 3 + 34, (width - 20) * healthAnimation, 8.5f, 1);

            Fonts.tenacity.drawText(eventDisplay.getMatrixStack(), "" +  ((int) hp + (int) mc.player.getAbsorptionAmount()) + ".0 / 20.0", posX + headSize + spacing + spacing  + 30,
                    posY + spacing + 1 + spacing + spacing + 4.8f, ColorUtils.rgb(255, 255, 255), 7.5f);
            GlStateManager.popMatrix();
        }
    }


    private LivingEntity getTarget(LivingEntity nullTarget) {
        LivingEntity auraTarget = Hysteria.getInstance().getFunctionRegistry().getKillAura().getTarget();
        LivingEntity target = nullTarget;
        if (auraTarget != null) {
            stopWatch.reset();
            allow = true;
            target = auraTarget;
        } else if (mc.currentScreen instanceof ChatScreen) {
            stopWatch.reset();
            allow = true;
            target = mc.player;
        } else {
            allow = false;
        }
        return target;
    }


    public static void sizeAnimation(double width, double height, double scale) {
        GlStateManager.translated(width, height, 0);
        GlStateManager.scaled(scale, scale, scale);
        GlStateManager.translated(-width, -height, 0);
    }

}

Жду в ваших клиентах
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
крута
 
па
ss:
Посмотреть вложение 282755

Java:
Expand Collapse Copy
@FieldDefaults(level = AccessLevel.PRIVATE)
@RequiredArgsConstructor
public class TargetInfoRenderer implements ElementRenderer {
    final StopWatch stopWatch = new StopWatch();
    final Dragging drag;
    LivingEntity entity = null;
    boolean allow;
    final Animation animation = new EaseBackIn(400, 1, 1);
    float healthAnimation = 0.0f;
    float absorptionAnimation = 0.0f;

    @Override
    public void render(EventDisplay eventDisplay) {
        MatrixStack ms = eventDisplay.getMatrixStack();
        entity = getTarget(entity);

        boolean out = !allow || stopWatch.isReached(1000);
        animation.setDuration(out ? 400 : 300);
        animation.setDirection(out ? Direction.BACKWARDS : Direction.FORWARDS);

        if (animation.getOutput() == 0.0f) {
            entity = null;
        }

        if (entity != null) {

            float posX = drag.getX();
            float posY = drag.getY();

            float headSize = 20;
            float spacing = 5;

            float width = 172 / 1.5f;
            float height = 59 / 1.5f;
            drag.setWidth(width);
            drag.setHeight(height);
            Score score = mc.world.getScoreboard().getOrCreateScore(entity.getScoreboardName(), mc.world.getScoreboard().getObjectiveInDisplaySlot(2));


            float hp = entity.getHealth();
            float maxHp = entity.getMaxHealth();
            String header = mc.ingameGUI.getTabList().header == null ? " " : mc.ingameGUI.getTabList().header.getString().toLowerCase();

            if (mc.getCurrentServerData() != null && mc.getCurrentServerData().serverIP.contains("funtime")
                    && (header.contains("анархия") || header.contains("гриферский")) && entity instanceof PlayerEntity) {
                hp = score.getScorePoints();
                maxHp = 20;
            }
            healthAnimation = MathUtil.fast(healthAnimation, MathHelper.clamp(hp / maxHp, 0, 1), 10);
            absorptionAnimation = MathUtil.fast(absorptionAnimation, MathHelper.clamp(entity.getAbsorptionAmount() / maxHp, 0, 1), 10);


            float animationValue = (float) animation.getOutput();

            float halfAnimationValueRest = (1 - animationValue) / 2f;

            float testX = posX + (width * halfAnimationValueRest);
            float testY = posY + (height * halfAnimationValueRest);
            float testW = width * animationValue;
            float testH = height * animationValue;
            GlStateManager.pushMatrix();
            sizeAnimation(posX + (width / 2), posY + (height / 2), animation.getOutput());

            Scissor.push();
            Scissor.setFromComponentCoordinates(testX, testY, testW - 6, testH);

            Scissor.unset();
            Scissor.pop();
            Fonts.moon.drawCenteredText(ms, entity.getName().getString(), posX + headSize + spacing + spacing + 46.8f, posY + spacing + 1 - 3, ColorUtils.rgb(0, 0, 0), 12.5f);
            Fonts.moon.drawCenteredText(eventDisplay.getMatrixStack(), entity.getName().getString(), posX + headSize + spacing + spacing + 46.5f, posY + spacing + 1 - 3, -1, 12.5f);


            DisplayUtils.drawShadow(posX + headSize + spacing + spacing, posY  - spacing * 2 - 3 + 35, (width - 20), 7,  5, ColorUtils.rgba(0,0,0, 50));
            DisplayUtils.drawRoundedRect(posX + headSize + spacing + spacing, posY  - spacing * 2 - 3 + 35, (width - 20), 7,  1, ColorUtils.rgba(0,0,0, 150));
            RenderUtils.renderClientBloom(eventDisplay.getMatrixStack(), posX + headSize + spacing + spacing, posY + - spacing * 2 - 3 + 34, (width - 20) * healthAnimation, 8.5f, 1);

            Fonts.tenacity.drawText(eventDisplay.getMatrixStack(), "" +  ((int) hp + (int) mc.player.getAbsorptionAmount()) + ".0 / 20.0", posX + headSize + spacing + spacing  + 30,
                    posY + spacing + 1 + spacing + spacing + 4.8f, ColorUtils.rgb(255, 255, 255), 7.5f);
            GlStateManager.popMatrix();
        }
    }


    private LivingEntity getTarget(LivingEntity nullTarget) {
        LivingEntity auraTarget = Hysteria.getInstance().getFunctionRegistry().getKillAura().getTarget();
        LivingEntity target = nullTarget;
        if (auraTarget != null) {
            stopWatch.reset();
            allow = true;
            target = auraTarget;
        } else if (mc.currentScreen instanceof ChatScreen) {
            stopWatch.reset();
            allow = true;
            target = mc.player;
        } else {
            allow = false;
        }
        return target;
    }


    public static void sizeAnimation(double width, double height, double scale) {
        GlStateManager.translated(width, height, 0);
        GlStateManager.scaled(scale, scale, scale);
        GlStateManager.translated(-width, -height, 0);
    }

}

Жду в ваших клиентах
пастим
 

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





Java:
Expand Collapse Copy
    public void renderClientBloom(MatrixStack matrix, float x, float y, float width, float height, float round) {
        renderClientBoom(matrix, x, y, width, height, round, 128);
    }

    public void renderClientBoom(MatrixStack matrix, float x, float y, float width, float height, float round1, int alphaPC) {

        int color1 = HUD.getColor(0, alphaPC / 255f);
        int color2 = HUD.getColor(90, alphaPC / 255f);
        int color3 = HUD.getColor(180, alphaPC / 255f);
        int color4 = HUD.getColor(270, alphaPC / 255f);
        boolean bloom = true;
        float round = Hysteria.getInstance().round();
        float shadow = Hysteria.getInstance().shadow();
        int zeroC1 = ColorUtils.multAlpha(color1, 0.F), zeroC2 = ColorUtils.multAlpha(color2, 0.F), zeroC3 = ColorUtils.multAlpha(color3, 0.F), zeroC4 = ColorUtils.multAlpha(color4, 0.F);
        int halfC1 = ColorUtils.multAlpha(color1, .5F), halfC2 = ColorUtils.multAlpha(color2, .5F), halfC3 = ColorUtils.multAlpha(color3, .5F), halfC4 = ColorUtils.multAlpha(color4, .5F);
        int overY1C = ColorUtils.overCol(color1, color2), overY2C = ColorUtils.overCol(color4, color3), overX1C = ColorUtils.overCol(color1, color4), overX2C = ColorUtils.overCol(color2, color3);
        RectUtil.drawRoundedRectShadowed(matrix, x, y, x + width, y + height, round1, shadow, halfC1, halfC2, halfC3, halfC4, bloom, true, false, true);
        float dark = 0.35F;
        RectUtil.drawRoundedRectShadowed(matrix, x, y, x + width, y + height, round1, .5F, ColorUtils.multDark(color1, dark), ColorUtils.multDark(color2, dark), ColorUtils.multDark(color3, dark), ColorUtils.multDark(color4, dark), false, false, true, true);
        List<RectUtil.Vec2fColored> list = new ArrayList<>();
        GL12.glLineWidth(1);
    }
Мамин доксер?!
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
это такой пиздец
 
Скрытое содержимое



Java:
Expand Collapse Copy
    public void renderClientBloom(MatrixStack matrix, float x, float y, float width, float height, float round) {
        renderClientBoom(matrix, x, y, width, height, round, 128);
    }

    public void renderClientBoom(MatrixStack matrix, float x, float y, float width, float height, float round1, int alphaPC) {

        int color1 = HUD.getColor(0, alphaPC / 255f);
        int color2 = HUD.getColor(90, alphaPC / 255f);
        int color3 = HUD.getColor(180, alphaPC / 255f);
        int color4 = HUD.getColor(270, alphaPC / 255f);
        boolean bloom = true;
        float round = Hysteria.getInstance().round();
        float shadow = Hysteria.getInstance().shadow();
        int zeroC1 = ColorUtils.multAlpha(color1, 0.F), zeroC2 = ColorUtils.multAlpha(color2, 0.F), zeroC3 = ColorUtils.multAlpha(color3, 0.F), zeroC4 = ColorUtils.multAlpha(color4, 0.F);
        int halfC1 = ColorUtils.multAlpha(color1, .5F), halfC2 = ColorUtils.multAlpha(color2, .5F), halfC3 = ColorUtils.multAlpha(color3, .5F), halfC4 = ColorUtils.multAlpha(color4, .5F);
        int overY1C = ColorUtils.overCol(color1, color2), overY2C = ColorUtils.overCol(color4, color3), overX1C = ColorUtils.overCol(color1, color4), overX2C = ColorUtils.overCol(color2, color3);
        RectUtil.drawRoundedRectShadowed(matrix, x, y, x + width, y + height, round1, shadow, halfC1, halfC2, halfC3, halfC4, bloom, true, false, true);
        float dark = 0.35F;
        RectUtil.drawRoundedRectShadowed(matrix, x, y, x + width, y + height, round1, .5F, ColorUtils.multDark(color1, dark), ColorUtils.multDark(color2, dark), ColorUtils.multDark(color3, dark), ColorUtils.multDark(color4, dark), false, false, true, true);
        List<RectUtil.Vec2fColored> list = new ArrayList<>();
        GL12.glLineWidth(1);
    }

Мамин доксер?!
нахуй ты эту хуйню выложил?
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Дайте RenderClientBloom пж
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Назад
Сверху Снизу