void Indicators() {
if (Globals::LocalPlayer) {
if (c_config::get().indicators);
if (Globals::LocalPlayer->IsAlive()) {
if (!Globals::LocalPlayer->AnimState())
return;
int subtraction_pos = 0;
int screenSizeX, screenCenterX;
int screenSizeY, screenCenterY;
g_pEngine->GetScreenSize(screenSizeX, screenSizeY);
int FAKE_G = Globals::LocalPlayer->DesyncValue() / -58.f * 255.f;
int FAKE_R = 255.f - FAKE_G;
int FAKE_B = 0.f;
int LAG_COMP_GREEN = (Globals::LocalPlayer->GetOrigin() - StoredLocalPlayer::StoredOrigin).LengthSqr() / 4096.f * 255.f;
int LAG_COMP_RED = 255.f - LAG_COMP_GREEN;
int LAG_COMP_BLUE = 0.f;
auto chocked_commands = *(int*)(uintptr_t(g_pClientState) + 0x4D28);
bool show_fake = true;
static int frames_on_ground = 0;
if (Globals::LocalPlayer->GetFlags() & FL_ONGROUND) {
frames_on_ground += 10;
}
if (!(Globals::LocalPlayer->GetFlags() & FL_ONGROUND) && Globals::LocalPlayer->GetVelocity().Length2D() > 50) {
frames_on_ground = 0;
}
bool Breaking_Lag_Compensation = (Globals::LocalPlayer->GetOrigin() - StoredLocalPlayer::StoredOrigin).Length2DSqr() > (2048.f);
if (!(Globals::LocalPlayer->GetFlags() & FL_ONGROUND) && Globals::LocalPlayer->GetVelocity().Length2D() > 50 || frames_on_ground < 100)
{
g_pSurface->DrawT(10, (screenSizeY - 75 - subtraction_pos), Breaking_Lag_Compensation ? Color(149, 184, 6, 255) : Color(255, 0, 0, 255), Globals::IndicatorFont, false, "LC");
subtraction_pos += 25;
}
if (show_fake) {
g_pSurface->DrawT(10, (screenSizeY - 75 - subtraction_pos), Color(FAKE_R, FAKE_G, FAKE_B, 255), Globals::IndicatorFont, false, "FAKE", Globals::LocalPlayer->DesyncValue());
subtraction_pos += 25;
}
}
}
}