bool lby_updated = false;
float speed = LocalPlayer->GetVelocity().Lenght2D;
float delta = LocalPlayer->GetEyeAngle().y - LocalPlayer->LowerBodyYaw();
int old_time = g_pGlobals->interval_per_tick;
if (speed < 0.1 && (delta > 35 || old_time != g_pGlobals->interval_per_tick + 1.1f)
lby_updated = true;
else
lby_updated = false;
if (lby_updated)
DrawString(font, x, y, color green);
else
DrawString(font, x, y, color red);