• Ну и что вы думаете? Мы взяли и создали свой собственный чат, с блекджеком и шлюхами, теперь все легенды в одном месте: даже те 1000 человек, которых мы забанили в старом чате 🫡 Будем публиковать там очень интересные подробности нового дизайна форума, oh yeah

    Вступай и становись легендой, пока это не стало поздно: жмякай на меня, ток не сильно(

Expensive 2.0 thud

Начинающий
Статус
Оффлайн
Регистрация
2 Май 2024
Сообщения
2
Реакции[?]
0
Поинты[?]
0
Пожалуйста, авторизуйтесь для просмотра ссылки.


thud:
PlayerEntity target = null;
final Dragging targethud = Initilization.createDrag(this,"targethud",30,300);
private double scale = 0.0D;
Animation tHudAnimation = new EaseBackIn(400, 1, 1.5f);
float round_degree = 5;
final Vector4f right_vec = new Vector4f(0, 0, 5, 5);
double hp = 0.0D;
public void targethud(MatrixStack matrixStack){
float posX = targethud.getX();
float posY = targethud.getY();

targethud.setWidth(120);
targethud.setHeight(33);


this.target = getTarget(this.target);
this.scale = tHudAnimation.getOutput();


if (scale == 0.0F) {
target = null;
}

if (target == null) {
return;
}
final String targetName = this.target.getName().getString();
String substring = targetName.substring(0, Math.min(targetName.length(), 10));
this.hp = AnimationMath.fast((float) hp, target.getHealth() / target.getMaxHealth(), 5);
this.hp = MathHelper.clamp(this.hp, 0, 1);
String healthValue = (int) MathUtil.round(this.hp * 100 + target.getAbsorptionAmount(), 0.01f) + "";

GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
GaussianBlur.endBlur(2,1);
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),160));
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) 80,1.5F,2,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
drawFace(posX, posY, 11.2F, 11.2F, 11.2F, 11.2F, 33.6F, 33.6F, 89.6F, 89.6F, (AbstractClientPlayerEntity) target);
Fonts.gilroy[14].drawString(matrixStack,substring,posX + 52,posY + 6,color);
Fonts.gilroy[12].drawString(matrixStack,healthValue,posX + 68,posY + 16,color);


RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),3000));
BloomHelper.registerRenderCall(() -> {
GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),100));
GlStateManager.popMatrix();
});
GlStateManager.popMatrix();
}
 
Начинающий
Статус
Оффлайн
Регистрация
10 Ноя 2023
Сообщения
250
Реакции[?]
0
Поинты[?]
1K
Пожалуйста, авторизуйтесь для просмотра ссылки.


thud:
PlayerEntity target = null;
final Dragging targethud = Initilization.createDrag(this,"targethud",30,300);
private double scale = 0.0D;
Animation tHudAnimation = new EaseBackIn(400, 1, 1.5f);
float round_degree = 5;
final Vector4f right_vec = new Vector4f(0, 0, 5, 5);
double hp = 0.0D;
public void targethud(MatrixStack matrixStack){
float posX = targethud.getX();
float posY = targethud.getY();

targethud.setWidth(120);
targethud.setHeight(33);


this.target = getTarget(this.target);
this.scale = tHudAnimation.getOutput();


if (scale == 0.0F) {
target = null;
}

if (target == null) {
return;
}
final String targetName = this.target.getName().getString();
String substring = targetName.substring(0, Math.min(targetName.length(), 10));
this.hp = AnimationMath.fast((float) hp, target.getHealth() / target.getMaxHealth(), 5);
this.hp = MathHelper.clamp(this.hp, 0, 1);
String healthValue = (int) MathUtil.round(this.hp * 100 + target.getAbsorptionAmount(), 0.01f) + "";

GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
GaussianBlur.endBlur(2,1);
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),160));
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) 80,1.5F,2,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
drawFace(posX, posY, 11.2F, 11.2F, 11.2F, 11.2F, 33.6F, 33.6F, 89.6F, 89.6F, (AbstractClientPlayerEntity) target);
Fonts.gilroy[14].drawString(matrixStack,substring,posX + 52,posY + 6,color);
Fonts.gilroy[12].drawString(matrixStack,healthValue,posX + 68,posY + 16,color);


RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),3000));
BloomHelper.registerRenderCall(() -> {
GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),100));
GlStateManager.popMatrix();
});
GlStateManager.popMatrix();
}
ФУУУ НАХУЙ
 
Read Only
Статус
Оффлайн
Регистрация
19 Июл 2024
Сообщения
198
Реакции[?]
0
Поинты[?]
0
Пожалуйста, авторизуйтесь для просмотра ссылки.


thud:
PlayerEntity target = null;
final Dragging targethud = Initilization.createDrag(this,"targethud",30,300);
private double scale = 0.0D;
Animation tHudAnimation = new EaseBackIn(400, 1, 1.5f);
float round_degree = 5;
final Vector4f right_vec = new Vector4f(0, 0, 5, 5);
double hp = 0.0D;
public void targethud(MatrixStack matrixStack){
float posX = targethud.getX();
float posY = targethud.getY();

targethud.setWidth(120);
targethud.setHeight(33);


this.target = getTarget(this.target);
this.scale = tHudAnimation.getOutput();


if (scale == 0.0F) {
target = null;
}

if (target == null) {
return;
}
final String targetName = this.target.getName().getString();
String substring = targetName.substring(0, Math.min(targetName.length(), 10));
this.hp = AnimationMath.fast((float) hp, target.getHealth() / target.getMaxHealth(), 5);
this.hp = MathHelper.clamp(this.hp, 0, 1);
String healthValue = (int) MathUtil.round(this.hp * 100 + target.getAbsorptionAmount(), 0.01f) + "";

GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
GaussianBlur.endBlur(2,1);
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),160));
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) 80,1.5F,2,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
drawFace(posX, posY, 11.2F, 11.2F, 11.2F, 11.2F, 33.6F, 33.6F, 89.6F, 89.6F, (AbstractClientPlayerEntity) target);
Fonts.gilroy[14].drawString(matrixStack,substring,posX + 52,posY + 6,color);
Fonts.gilroy[12].drawString(matrixStack,healthValue,posX + 68,posY + 16,color);


RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),3000));
BloomHelper.registerRenderCall(() -> {
GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),100));
GlStateManager.popMatrix();
});
GlStateManager.popMatrix();
}
пиздец как на любителя
 
Начинающий
Статус
Оффлайн
Регистрация
4 Июл 2021
Сообщения
300
Реакции[?]
1
Поинты[?]
2K
Пожалуйста, авторизуйтесь для просмотра ссылки.


thud:
PlayerEntity target = null;
final Dragging targethud = Initilization.createDrag(this,"targethud",30,300);
private double scale = 0.0D;
Animation tHudAnimation = new EaseBackIn(400, 1, 1.5f);
float round_degree = 5;
final Vector4f right_vec = new Vector4f(0, 0, 5, 5);
double hp = 0.0D;
public void targethud(MatrixStack matrixStack){
float posX = targethud.getX();
float posY = targethud.getY();

targethud.setWidth(120);
targethud.setHeight(33);


this.target = getTarget(this.target);
this.scale = tHudAnimation.getOutput();


if (scale == 0.0F) {
target = null;
}

if (target == null) {
return;
}
final String targetName = this.target.getName().getString();
String substring = targetName.substring(0, Math.min(targetName.length(), 10));
this.hp = AnimationMath.fast((float) hp, target.getHealth() / target.getMaxHealth(), 5);
this.hp = MathHelper.clamp(this.hp, 0, 1);
String healthValue = (int) MathUtil.round(this.hp * 100 + target.getAbsorptionAmount(), 0.01f) + "";

GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
GaussianBlur.endBlur(2,1);
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),160));
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) 80,1.5F,2,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
drawFace(posX, posY, 11.2F, 11.2F, 11.2F, 11.2F, 33.6F, 33.6F, 89.6F, 89.6F, (AbstractClientPlayerEntity) target);
Fonts.gilroy[14].drawString(matrixStack,substring,posX + 52,posY + 6,color);
Fonts.gilroy[12].drawString(matrixStack,healthValue,posX + 68,posY + 16,color);


RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),3000));
BloomHelper.registerRenderCall(() -> {
GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),100));
GlStateManager.popMatrix();
});
GlStateManager.popMatrix();
}
ну так 50/50, кому как
 
Danq Client
Начинающий
Статус
Оффлайн
Регистрация
23 Апр 2024
Сообщения
617
Реакции[?]
2
Поинты[?]
2K
Пожалуйста, авторизуйтесь для просмотра ссылки.


thud:
PlayerEntity target = null;
final Dragging targethud = Initilization.createDrag(this,"targethud",30,300);
private double scale = 0.0D;
Animation tHudAnimation = new EaseBackIn(400, 1, 1.5f);
float round_degree = 5;
final Vector4f right_vec = new Vector4f(0, 0, 5, 5);
double hp = 0.0D;
public void targethud(MatrixStack matrixStack){
float posX = targethud.getX();
float posY = targethud.getY();

targethud.setWidth(120);
targethud.setHeight(33);


this.target = getTarget(this.target);
this.scale = tHudAnimation.getOutput();


if (scale == 0.0F) {
target = null;
}

if (target == null) {
return;
}
final String targetName = this.target.getName().getString();
String substring = targetName.substring(0, Math.min(targetName.length(), 10));
this.hp = AnimationMath.fast((float) hp, target.getHealth() / target.getMaxHealth(), 5);
this.hp = MathHelper.clamp(this.hp, 0, 1);
String healthValue = (int) MathUtil.round(this.hp * 100 + target.getAbsorptionAmount(), 0.01f) + "";

GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
GaussianBlur.endBlur(2,1);
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),160));
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) 80,1.5F,2,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
drawFace(posX, posY, 11.2F, 11.2F, 11.2F, 11.2F, 33.6F, 33.6F, 89.6F, 89.6F, (AbstractClientPlayerEntity) target);
Fonts.gilroy[14].drawString(matrixStack,substring,posX + 52,posY + 6,color);
Fonts.gilroy[12].drawString(matrixStack,healthValue,posX + 68,posY + 16,color);


RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),3000));
BloomHelper.registerRenderCall(() -> {
GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),100));
GlStateManager.popMatrix();
});
GlStateManager.popMatrix();
}
круто, но кривовато
 
Начинающий
Статус
Оффлайн
Регистрация
27 Авг 2022
Сообщения
60
Реакции[?]
0
Поинты[?]
1K
Пожалуйста, авторизуйтесь для просмотра ссылки.


thud:
PlayerEntity target = null;
final Dragging targethud = Initilization.createDrag(this,"targethud",30,300);
private double scale = 0.0D;
Animation tHudAnimation = new EaseBackIn(400, 1, 1.5f);
float round_degree = 5;
final Vector4f right_vec = new Vector4f(0, 0, 5, 5);
double hp = 0.0D;
public void targethud(MatrixStack matrixStack){
float posX = targethud.getX();
float posY = targethud.getY();

targethud.setWidth(120);
targethud.setHeight(33);


this.target = getTarget(this.target);
this.scale = tHudAnimation.getOutput();


if (scale == 0.0F) {
target = null;
}

if (target == null) {
return;
}
final String targetName = this.target.getName().getString();
String substring = targetName.substring(0, Math.min(targetName.length(), 10));
this.hp = AnimationMath.fast((float) hp, target.getHealth() / target.getMaxHealth(), 5);
this.hp = MathHelper.clamp(this.hp, 0, 1);
String healthValue = (int) MathUtil.round(this.hp * 100 + target.getAbsorptionAmount(), 0.01f) + "";

GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
GaussianBlur.endBlur(2,1);
RenderUtil.Render2D.drawRoundedCorner(posX,posY,120,33,right_vec,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),160));
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) 80,1.5F,2,RenderUtil.reAlphaInt(Color.BLACK.getRGB(),100));
drawFace(posX, posY, 11.2F, 11.2F, 11.2F, 11.2F, 33.6F, 33.6F, 89.6F, 89.6F, (AbstractClientPlayerEntity) target);
Fonts.gilroy[14].drawString(matrixStack,substring,posX + 52,posY + 6,color);
Fonts.gilroy[12].drawString(matrixStack,healthValue,posX + 68,posY + 16,color);


RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),3000));
BloomHelper.registerRenderCall(() -> {
GlStateManager.pushMatrix();
AnimationMath.sizeAnimation(posX + (120 / 2), posY + (40 / 2), scale);
RenderUtil.Render2D.drawRoundedCorner(posX + 36,posY + 25,(float) (80 * hp),1.5F,2,RenderUtil.reAlphaInt(Color.WHITE.getRGB(),100));
GlStateManager.popMatrix();
});
GlStateManager.popMatrix();
}
прикольно
 
Забаненный
Статус
Оффлайн
Регистрация
31 Авг 2023
Сообщения
684
Реакции[?]
6
Поинты[?]
5K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Сверху Снизу