From c7165f3d2c97431de9bb0795eecf94f203bcd2b1 Mon Sep 17 00:00:00 2001 From: "michael.reiswich" Date: Tue, 30 Mar 2021 23:48:21 +0200 Subject: [PATCH] next --- ReallifeGamemode.Client/Gui/nametags.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReallifeGamemode.Client/Gui/nametags.ts b/ReallifeGamemode.Client/Gui/nametags.ts index 2f3c2f76..64940b9b 100644 --- a/ReallifeGamemode.Client/Gui/nametags.ts +++ b/ReallifeGamemode.Client/Gui/nametags.ts @@ -21,7 +21,7 @@ export default function customNametags() { if (scale < 0.6) scale = 0.6; var health = player.getHealth(); - health = health < 100 ? 0 : (health - 100) / 100; + //health = health < 100 ? 0 : (health - 100) / 100; var armour = player.getArmour() / 100; @@ -40,7 +40,7 @@ export default function customNametags() { let y2 = y + 0.042; if (armour > 0) { - graphics.drawRect(x, y2, width + border * 2, 0.0085, 0, 0, 0, 200); + graphics.drawRect(x, y2, width + border * 2, height + border * 2, 0 , 0, 0, 200); graphics.drawRect(x, y2, width, height, 150, 150, 150, 255); graphics.drawRect(x - width / 2 * (1 - health), y2, width * health, height, 200, 0, 0, 200); @@ -48,7 +48,7 @@ export default function customNametags() { graphics.drawRect(x, y2 + height, width + border * 2, height + border * 2, 0, 0, 0, 200); graphics.drawRect(x, y2 + height, width, height, 41, 66, 78, 255); - graphics.drawRect(x - width / 2 * (1 - armour), y2 + height, width * armour, height, 200, 0, 0, 200); + graphics.drawRect(x - width / 2 * (1 - armour), y2 + height, width * armour, height, 48, 108, 135, 200); } else { graphics.drawRect(x, y2, width + border * 2, height + border * 2, 0, 0, 0, 200);