void Indicators() {
if (Globals::LocalPlayer) {
if (Globals::LocalPlayer->IsAlive()) {
if (!Globals::LocalPlayer->AnimState())
return;
int screenSizeX, screenCenterX;
int screenSizeY, screenCenterY;
g_pEngine->GetScreenSize(screenSizeX, screenSizeY);
float desyncAmt = Globals::LocalPlayer->DesyncValue();
float diffrence = (Globals::RealAngle.y - Globals::LocalPlayer->GetLowerBodyYaw());
float Velocity = Globals::LocalPlayer->GetVelocity().Length2D();
int offset = 40;
Color fake = desyncAmt <= 29 ? Color(255, 0, 0) : (desyncAmt >= 55 ? Color(132, 195, 16) : Color(255 - (desyncAmt * 2.55), desyncAmt * 2.55, 0));
std::string choke;
auto NetChannel = g_pEngine->GetNetChannel();
if (!NetChannel)
return;
choke += "choke: " + std::to_string(NetChannel->m_nChokedPackets);
g_pSurface->DrawT(20, (screenSizeY - offset - 90), Color(255, 255, 255), Globals::IndicatorFont, false, choke.c_str());
if (diffrence > 35 && Velocity < 0.1f) // we could make multi combo box for this // no -t4zzuu
g_pSurface->DrawT(20, (screenSizeY - offset - 60), Color(132, 195, 16), Globals::IndicatorFont, false, "LBY");
else
g_pSurface->DrawT(20, (screenSizeY - offset - 60), Color(255, 0, 0), Globals::IndicatorFont, false, "LBY");
if (!(desyncAmt < 29))
g_pSurface->DrawT(20, (screenSizeY - offset - 30), fake, Globals::IndicatorFont, false, "FAKE");
}
}
}