Немного переделанный гайд с кодом.
1. client.cpp
namespace esp = Settings::Esp;
ImGui::Checkbox("defusing", &esp::esp_Defusing);
2. entity.h
bool m_bIsDefusing();
bool esp_defusing = false;
3. esp.cpp > DrawPlayerEsp
if (Settings::Esp::esp_Defusing && pPlayer->m_pEntity->m_bIsDefusing())
{
int iHpAmY = 1;
g_pRender->Text((int)vLineOrigin.x, (int)vLineOrigin.y + iHpAmY, true, true, Color::Red(), ("Defusing!"));
}
4. settings.cpp
bool esp_Flashed = false;
bool esp_Defusing = false;
5. settings.h
extern bool esp_Defusing;
6. offset.h
extern DWORD m_bIsDefusing;
7. offset.cpp
DWORD m_bIsDefusing = 0;
8. entity.cpp
bool CBaseEntity::m_bIsDefusing()
{
return *(bool*)((DWORD)this + Offset::Entity::m_bIsDefusing);
}
picture https://cdn.discordapp.com/attachments/357156696533106690/420594359587831829/pA1buPipqzY.png