Improve isFlashed flag

- Improvement upon the player is flashed flag by using the FlashOverlayAlpha to check if their vision is still blocked or not (provides a more consistent notice of if the player is flashed)
This commit is contained in:
ifBars
2023-10-27 19:09:16 -06:00
parent 6b94be7916
commit 401c9a3aa8
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -271,8 +271,8 @@ namespace hack {
10
);
float flashDuration = process->read<float>(pCSPlayerPawn + updater::offsets::m_flFlashDuration);
if (flashDuration > 0.1)
float flashAlpha = process->read<float>(pCSPlayerPawn + updater::offsets::m_flFlashOverlayAlpha);
if (flashAlpha > 100)
{
render::RenderText(
g::hdcBuffer,