Update hack.hpp

- Added armor display
This commit is contained in:
ifBars
2023-10-10 21:23:32 -06:00
committed by GitHub
parent 5ae406c2b7
commit ed4562196c
+14
View File
@@ -39,6 +39,7 @@ namespace hack {
}
const int playerHealth = process->read<int>(player + updater::offsets::dwPawnHealth);
const int playerArmor = process->read<int>(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++;
}