From 5f2c6739875f0e4d0dc41e696672a72740984685 Mon Sep 17 00:00:00 2001 From: ifBars <114284668+ifBars@users.noreply.github.com> Date: Tue, 24 Oct 2023 00:14:23 -0600 Subject: [PATCH] Fix isFlashed - Fix the way isFlashed works --- memory-external/hacks/hack.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/memory-external/hacks/hack.hpp b/memory-external/hacks/hack.hpp index 7a41cc4..686a8aa 100644 --- a/memory-external/hacks/hack.hpp +++ b/memory-external/hacks/hack.hpp @@ -267,11 +267,9 @@ namespace hack { ); float flashDuration = process->read(pCSPlayerPawn + updater::offsets::m_flFlashDuration); - bool isFlashed; - if (flashDuration > 0.0) - isFlashed = true; - if (isFlashed) + if (flashDuration > 0.1) { + std::cout << std::to_string(flashDuration) << std::endl; render::RenderText( g::hdcBuffer, screenHead.x + (width / 2 + 5),