Update hack.hpp
- Added armor display
This commit is contained in:
@@ -39,6 +39,7 @@ namespace hack {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const int playerHealth = process->read<int>(player + updater::offsets::dwPawnHealth);
|
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) {
|
if (playerHealth <= 0 || playerHealth > 100) {
|
||||||
playerIndex++;
|
playerIndex++;
|
||||||
continue;
|
continue;
|
||||||
@@ -185,6 +186,19 @@ namespace hack {
|
|||||||
),
|
),
|
||||||
10
|
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++;
|
playerIndex++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user