float flYaw = *pClient->GetLowerBodyYaw();
if (!pClient->isMoving()) {
float flCurTime = SSDK::I::GlobalVars()->curtime;
static float flTimeUpdate = 0.5f;
static float flNextTimeUpdate = flCurTime + flTimeUpdate;
if (flCurTime >= flNextTimeUpdate) {
OptionsManager.aCacheAngle[i].bFlip = !OptionsManager.aCacheAngle[i].bFlip;
}
if (flNextTimeUpdate < flCurTime || flNextTimeUpdate - flCurTime > 10.f)
flNextTimeUpdate = flCurTime + flTimeUpdate;
if (OptionsManager.aCacheAngle[i].bFlip) {
flYaw += 35.f;
}
else {
flYaw -= 35.f;
}
}
pClient->GetEyeAngles()->y = flYaw;