From 7fb0a038a8c61b22c74490746cda5f6acf93cfd4 Mon Sep 17 00:00:00 2001 From: ifBars <114284668+ifBars@users.noreply.github.com> Date: Sun, 15 Oct 2023 06:30:35 -0600 Subject: [PATCH] Update hack.hpp - Added "isDefusing" tag --- memory-external/hacks/hack.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/memory-external/hacks/hack.hpp b/memory-external/hacks/hack.hpp index e798d89..f35937d 100644 --- a/memory-external/hacks/hack.hpp +++ b/memory-external/hacks/hack.hpp @@ -187,6 +187,8 @@ namespace hack { if (config::show_extra_flags) { + const bool isDefusing = process->read(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 + ); + } } /**