From ed4562196cf68bf4591618563d29623d2db767f5 Mon Sep 17 00:00:00 2001 From: ifBars <114284668+ifBars@users.noreply.github.com> Date: Tue, 10 Oct 2023 21:23:32 -0600 Subject: [PATCH] Update hack.hpp - Added armor display --- memory-external/hacks/hack.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/memory-external/hacks/hack.hpp b/memory-external/hacks/hack.hpp index 3abbe25..e9c1005 100644 --- a/memory-external/hacks/hack.hpp +++ b/memory-external/hacks/hack.hpp @@ -39,6 +39,7 @@ namespace hack { } const int playerHealth = process->read(player + updater::offsets::dwPawnHealth); + const int playerArmor = process->read(player + updater::offsets::m_iPawnArmor); if (playerHealth <= 0 || playerHealth > 100) { playerIndex++; continue; @@ -185,6 +186,19 @@ namespace hack { ), 10 ); + + render::RenderText( + g::hdcBuffer, + screenHead.x + (width / 2 + 5), + screenHead.y + 22, + (std::to_string(playerArmor) + "armor").c_str(), + RGB( + (255 - playerArmor), + (55 + playerArmor * 2), + 75 + ), + 10 + ); } playerIndex++; }