Update hack.hpp

- Added "isDefusing" tag
This commit is contained in:
ifBars
2023-10-15 06:30:35 -06:00
committed by GitHub
parent 222a7e3514
commit 7fb0a038a8
+16
View File
@@ -187,6 +187,8 @@ namespace hack {
if (config::show_extra_flags)
{
const bool isDefusing = process->read<bool>(pCSPlayerPawn + updater::offsets::m_bIsDefusing);
render::RenderText(
g::hdcBuffer,
screenHead.x + (width / 2 + 5),
@@ -204,6 +206,20 @@ namespace hack {
config::esp_distance_color,
10
);
std::string defuText = "Player is defusing";
if (isDefusing)
{
render::RenderText(
g::hdcBuffer,
screenHead.x + (width / 2 + 5),
screenHead.y + 50,
defuText.c_str(),
config::esp_distance_color,
10
);
}
}
/**