if (vars.antiaim.break_lby && !CanDT() && csgo->local->GetVelocity().Length2D() < 10)
{
csgo->should_sidemove = false;
if (update)
{
csgo->cmd->viewangles.y = (last_angle + (csgo->cmd->viewangles.y -= 58.f * side));
csgo->send_packet = false;
csgo->should_sidemove = true;
}
}
else
csgo->should_sidemove = true;
bool UpdateLBY()
{
static float next_lby_update_time = 0;
const float current_time = GetCurtime1() - csgo->m_nTickbaseShift;
if (csgo->should_sidemove || csgo->local->GetVelocity().Length2D() > 10.f)
{
next_lby_update_time = current_time + TICKS_TO_TIME(3);
return false;
}
else {
if (next_lby_update_time < current_time)
{
next_lby_update_time = current_time + 1.1f;
return true;
}
}
return false;
}