• Ищем качественного (не новичок) разработчиков Xenforo для этого форума! В идеале, чтобы ты был фулл стек программистом. Если у тебя есть что показать, то свяжись с нами по контактным данным: https://t.me/DREDD

TargetHUD Expensive

Expensive Client
Пользователь
Пользователь
Статус
Оффлайн
Регистрация
12 Ноя 2022
Сообщения
153
Реакции
40
Сливаю свой тхудик , подарок вам на нг :frog-wow:



Java:
Expand Collapse Copy
            float width = 90 + Fonts.SEMI_BOLD_12.getStringWidth(name);
            float height = 30;
       
   
            posX = // начальная позиция таргетхуда по x;
            posY = // начальная позиция таргетхуда по y;
       
            hp = MathUtility.clamp(MathUtility.lerp(hp, curTarget.getHealth() / curTarget.getMaxHealth(), (float) (12 * AnimationMath.deltaTime())), 0, 1);
            GlStateManager.pushMatrix();
            Expensive.getInstance().scaleMath.pushScale();

            // анимация
            GlStateManager.translate(posX + width / 2, posY + 43 / 2, 0);
            GlStateManager.scale(scale, scale, 1);
            GlStateManager.translate(-posX - width / 2, -posY - 43 / 2, 0);
            //ректы
            GlowUtility.drawGlow(posX, posY, width, height, 10, new Color(8, 8, 8, 100));
            RenderUtility.drawRound(posX, posY, width, height, 2, new Color(8, 8, 8));
            RenderUtility.drawFace(posX + 5, posY + 4, 8, 8, 8, 8, 22, 22, 64, 64, (AbstractClientPlayer) curTarget);
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, 360, 10, 3, false, new Color(55, 55, 55));
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, hp * 360 + 1, 10, 3, false, HudModule.getColor((int) (hp * 360)));
            // текст
            Fonts.SEMI_BOLD_12.drawString("Name: " + name, posX + 35, posY + 10, -1);
            Fonts.SEMI_BOLD_12.drawString("Distance: " + MathUtility.round(mc.player.getDistance(curTarget), 0.01f), posX + 35, posY + 18, -1);
            Fonts.SEMI_BOLD_12.drawCenteredString(MathUtility.round(hp * 20, 0.1f) + "", posX + width - 15, posY + height / 2 - 1, -1);

            Expensive.getInstance().scaleMath.popScale();
            GlStateManager.popMatrix();

SS:
zRKdcUx.png
 
Последнее редактирование:
где то я уже это ви
 
Сливаю свой тхудик , подарок вам на нг :frog-wow:



Java:
Expand Collapse Copy
            float width = 90 + Fonts.SEMI_BOLD_12.getStringWidth(name);
            float height = 30;
      
  
            posX = // начальная позиция таргетхуда по x;
            posY = // начальная позиция таргетхуда по y;
      
            hp = MathUtility.clamp(MathUtility.lerp(hp, curTarget.getHealth() / curTarget.getMaxHealth(), (float) (12 * AnimationMath.deltaTime())), 0, 1);
            GlStateManager.pushMatrix();
            Expensive.getInstance().scaleMath.pushScale();

            // анимация
            GlStateManager.translate(posX + width / 2, posY + 43 / 2, 0);
            GlStateManager.scale(scale, scale, 1);
            GlStateManager.translate(-posX - width / 2, -posY - 43 / 2, 0);
            //ректы
            GlowUtility.drawGlow(posX, posY, width, height, 10, new Color(8, 8, 8, 100));
            RenderUtility.drawRound(posX, posY, width, height, 2, new Color(8, 8, 8));
            RenderUtility.drawFace(posX + 5, posY + 4, 8, 8, 8, 8, 22, 22, 64, 64, (AbstractClientPlayer) curTarget);
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, 360, 10, 3, false, new Color(55, 55, 55));
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, hp * 360 + 1, 10, 3, false, HudModule.getColor((int) (hp * 360)));
            // текст
            Fonts.SEMI_BOLD_12.drawString("Name: " + name, posX + 35, posY + 10, -1);
            Fonts.SEMI_BOLD_12.drawString("Distance: " + MathUtility.round(mc.player.getDistance(curTarget), 0.01f), posX + 35, posY + 18, -1);
            Fonts.SEMI_BOLD_12.drawCenteredString(MathUtility.round(hp * 20, 0.1f) + "", posX + width - 15, posY + height / 2 - 1, -1);

            Expensive.getInstance().scaleMath.popScale();
            GlStateManager.popMatrix();

SS:
zRKdcUx.png
да не мужик, подарок на нг я сделал людям))
 
Сливаю свой тхудик , подарок вам на нг :frog-wow:



Java:
Expand Collapse Copy
            float width = 90 + Fonts.SEMI_BOLD_12.getStringWidth(name);
            float height = 30;
       
   
            posX = // начальная позиция таргетхуда по x;
            posY = // начальная позиция таргетхуда по y;
       
            hp = MathUtility.clamp(MathUtility.lerp(hp, curTarget.getHealth() / curTarget.getMaxHealth(), (float) (12 * AnimationMath.deltaTime())), 0, 1);
            GlStateManager.pushMatrix();
            Expensive.getInstance().scaleMath.pushScale();

            // анимация
            GlStateManager.translate(posX + width / 2, posY + 43 / 2, 0);
            GlStateManager.scale(scale, scale, 1);
            GlStateManager.translate(-posX - width / 2, -posY - 43 / 2, 0);
            //ректы
            GlowUtility.drawGlow(posX, posY, width, height, 10, new Color(8, 8, 8, 100));
            RenderUtility.drawRound(posX, posY, width, height, 2, new Color(8, 8, 8));
            RenderUtility.drawFace(posX + 5, posY + 4, 8, 8, 8, 8, 22, 22, 64, 64, (AbstractClientPlayer) curTarget);
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, 360, 10, 3, false, new Color(55, 55, 55));
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, hp * 360 + 1, 10, 3, false, HudModule.getColor((int) (hp * 360)));
            // текст
            Fonts.SEMI_BOLD_12.drawString("Name: " + name, posX + 35, posY + 10, -1);
            Fonts.SEMI_BOLD_12.drawString("Distance: " + MathUtility.round(mc.player.getDistance(curTarget), 0.01f), posX + 35, posY + 18, -1);
            Fonts.SEMI_BOLD_12.drawCenteredString(MathUtility.round(hp * 20, 0.1f) + "", posX + width - 15, posY + height / 2 - 1, -1);

            Expensive.getInstance().scaleMath.popScale();
            GlStateManager.popMatrix();

SS:
zRKdcUx.png
Поч сразу не фулл класс?
 
Сливаю свой тхудик , подарок вам на нг :frog-wow:



Java:
Expand Collapse Copy
            float width = 90 + Fonts.SEMI_BOLD_12.getStringWidth(name);
            float height = 30;
      
  
            posX = // начальная позиция таргетхуда по x;
            posY = // начальная позиция таргетхуда по y;
      
            hp = MathUtility.clamp(MathUtility.lerp(hp, curTarget.getHealth() / curTarget.getMaxHealth(), (float) (12 * AnimationMath.deltaTime())), 0, 1);
            GlStateManager.pushMatrix();
            Expensive.getInstance().scaleMath.pushScale();

            // анимация
            GlStateManager.translate(posX + width / 2, posY + 43 / 2, 0);
            GlStateManager.scale(scale, scale, 1);
            GlStateManager.translate(-posX - width / 2, -posY - 43 / 2, 0);
            //ректы
            GlowUtility.drawGlow(posX, posY, width, height, 10, new Color(8, 8, 8, 100));
            RenderUtility.drawRound(posX, posY, width, height, 2, new Color(8, 8, 8));
            RenderUtility.drawFace(posX + 5, posY + 4, 8, 8, 8, 8, 22, 22, 64, 64, (AbstractClientPlayer) curTarget);
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, 360, 10, 3, false, new Color(55, 55, 55));
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, hp * 360 + 1, 10, 3, false, HudModule.getColor((int) (hp * 360)));
            // текст
            Fonts.SEMI_BOLD_12.drawString("Name: " + name, posX + 35, posY + 10, -1);
            Fonts.SEMI_BOLD_12.drawString("Distance: " + MathUtility.round(mc.player.getDistance(curTarget), 0.01f), posX + 35, posY + 18, -1);
            Fonts.SEMI_BOLD_12.drawCenteredString(MathUtility.round(hp * 20, 0.1f) + "", posX + width - 15, posY + height / 2 - 1, -1);

            Expensive.getInstance().scaleMath.popScale();
            GlStateManager.popMatrix();

SS:
zRKdcUx.png
боже hexbyte таргетхуд.....
 
чё за кринж /del
 
Сливаю свой тхудик , подарок вам на нг :frog-wow:



Java:
Expand Collapse Copy
            float width = 90 + Fonts.SEMI_BOLD_12.getStringWidth(name);
            float height = 30;
      
  
            posX = // начальная позиция таргетхуда по x;
            posY = // начальная позиция таргетхуда по y;
      
            hp = MathUtility.clamp(MathUtility.lerp(hp, curTarget.getHealth() / curTarget.getMaxHealth(), (float) (12 * AnimationMath.deltaTime())), 0, 1);
            GlStateManager.pushMatrix();
            Expensive.getInstance().scaleMath.pushScale();

            // анимация
            GlStateManager.translate(posX + width / 2, posY + 43 / 2, 0);
            GlStateManager.scale(scale, scale, 1);
            GlStateManager.translate(-posX - width / 2, -posY - 43 / 2, 0);
            //ректы
            GlowUtility.drawGlow(posX, posY, width, height, 10, new Color(8, 8, 8, 100));
            RenderUtility.drawRound(posX, posY, width, height, 2, new Color(8, 8, 8));
            RenderUtility.drawFace(posX + 5, posY + 4, 8, 8, 8, 8, 22, 22, 64, 64, (AbstractClientPlayer) curTarget);
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, 360, 10, 3, false, new Color(55, 55, 55));
            RenderUtility.drawCircle(posX + width - 15, posY + height / 2, 0, hp * 360 + 1, 10, 3, false, HudModule.getColor((int) (hp * 360)));
            // текст
            Fonts.SEMI_BOLD_12.drawString("Name: " + name, posX + 35, posY + 10, -1);
            Fonts.SEMI_BOLD_12.drawString("Distance: " + MathUtility.round(mc.player.getDistance(curTarget), 0.01f), posX + 35, posY + 18, -1);
            Fonts.SEMI_BOLD_12.drawCenteredString(MathUtility.round(hp * 20, 0.1f) + "", posX + width - 15, posY + height / 2 - 1, -1);

            Expensive.getInstance().scaleMath.popScale();
            GlStateManager.popMatrix();

SS:
zRKdcUx.png
самый ужасный который у тебя был
 
для сурсов expensive 3.1 пойдёт?
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Последнее редактирование:
Назад
Сверху Снизу