Update hack.hpp

- Update offsets to latest game build (10/14/23 1:08 AM Mountain Time MDT)
- Removed armor as it no longer works
- Changed reading health to new update method
This commit is contained in:
ifBars
2023-10-14 01:20:51 -06:00
committed by GitHub
parent 60eb2b30f1
commit 65ffd99850
+4 -7
View File
@@ -41,13 +41,6 @@ namespace hack {
if (!player)
continue;
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)
continue;
/**
* Skip rendering your own character and teammates
*
@@ -70,6 +63,10 @@ namespace hack {
if (!pCSPlayerPawn)
continue;
const int playerHealth = process->read<int>(pCSPlayerPawn + updater::offsets::m_iHealth);
if (playerHealth <= 0 || playerHealth > 100)
continue;
if (config::team_esp && (pCSPlayerPawn == localPlayer))
continue;