-
Автор темы
- #1
Код:
static DWORD* death_notice = nullptr;
if (g_ctx.local()->is_alive())
{
if (!death_notice)
death_notice = util::FindHudElement <DWORD>(crypt_str("CCSGO_HudDeathNotice"));
if (death_notice)
{
auto local_death_notice = (float*)((uintptr_t)death_notice + 0x50);
if (local_death_notice)
*local_death_notice = g_cfg.esp.preserve_killfeed ? FLT_MAX : 1.5f
if (g_ctx.globals.should_clear_death_notices)
{
g_ctx.globals.should_clear_death_notices = false;
using Fn = void(__thiscall*)(uintptr_t);
static auto clear_notices = (Fn)util::FindSignature(crypt_str("client.dll"), crypt_str("55 8B EC 83 EC 0C 53 56 8B 71 58"));
clear_notices((uintptr_t)death_notice - 0x14);
}
}
}
else
death_notice = 0;
}