From 9e323f7c9e54c1c9d6a2186e6f1c18ee4eaf0d8f Mon Sep 17 00:00:00 2001 From: ifBars <114284668+ifBars@users.noreply.github.com> Date: Sun, 15 Oct 2023 05:48:16 -0600 Subject: [PATCH] Update hack.hpp --- memory-external/hacks/hack.hpp | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/memory-external/hacks/hack.hpp b/memory-external/hacks/hack.hpp index 6354902..0c52c94 100644 --- a/memory-external/hacks/hack.hpp +++ b/memory-external/hacks/hack.hpp @@ -86,9 +86,9 @@ namespace hack { playerName = std::string(buf); } - const auto clipping_weapon = process->read(pCSPlayerPawn + 0x1290); + const auto clipping_weapon = process->read(pCSPlayerPawn + updater::offsets::m_pClippingWeapon); const auto weapon_data = process->read(clipping_weapon + 0x360); - const auto weaponName_ptr = process->read(weapon_data + 0xc18); + const auto weaponName_ptr = process->read(weapon_data + updater::offsets::m_szName); std::string weaponName = "Invalid Weapon Name"; if (!weaponName_ptr) { @@ -132,13 +132,22 @@ namespace hack { render::DrawBorderBox( g::hdcBuffer, - screenHead.x - (width / 2 + 5), + screenHead.x - (width / 2 + 10), screenHead.y + (height * (100 - playerHealth) / 100), 2, height - (height * (100 - playerHealth) / 100), + RGB(0, 185, 255) + ); + + render::DrawBorderBox( + g::hdcBuffer, + screenHead.x - (width / 2 + 5), + screenHead.y + (height * (100 - playerArmor) / 100), + 2, + height - (height * (100 - playerArmor) / 100), RGB( - (255 - playerHealth), - (55 + playerHealth * 2), + (255 - playerArmor), + (55 + playerArmor * 2), 75 ) );