if (c_config::get().desync == 4) {
float Desync = Globals::LocalPlayer->DesyncValue() / 100 * Globals::LocalPlayer->DesyncValue() + 30.0f;
float MM = 1.10f;
float m_flDesyncAmount = 58.f;
// if (m_bDesyncSide)
// Desync = -Desync;
if (Globals::pCmd->buttons = IN_DUCK)
MM *= 3;
if (Globals::pCmd->tick_count % 2)
MM = -MM;
static float LBY = 0;
if (g_pGlobalVars->curtime < LBY && Globals::pCmd->sidemove < 4 && Globals::pCmd->sidemove > -4)
Globals::pCmd->sidemove = MM;
if (!Globals::bSendPacket)
{
if (g_pGlobalVars->curtime >= LBY && Globals::LocalPlayer->GetVelocity().Length() < 4)
{
Globals::pCmd->viewangles.y += 180.0f;
LBY = g_pGlobalVars->curtime + 0.22f;
}
else
{
Globals::pCmd->viewangles.y += Desync;
}
}
m_flDesyncAmount = Desync / 2;
}