fatality user
Пользователь
-
Автор темы
- #1
float server_time = G::LocalPlayer->GetTickBase() * I::Globals->interval_per_tick;
QAngle angle_for_yaw;
if (G::iBestTarget > 0)
M::CalcAngle(G::LocalPlayer->GetOrigin(), I::ClientEntList->GetClientEntity(G::iBestTarget)->GetOrigin(), angle_for_yaw);
else
I::Engine->GetViewAngles(angle_for_yaw);
if (flip)
{
G::SendPacket = false;
switch ((int)server_time % 2)
{
case 0: angle.y = fabs(*G::LocalPlayer->GetLowerBodyYawTarget() - M::ClampYaw(angle_for_yaw.y - 90.f)) > 35 ? M::ClampYaw(*G::LocalPlayer->GetLowerBodyYawTarget() - 180.f) : M::ClampYaw(angle_for_yaw.y - 90.f); break;
case 1: angle.y = fabs(*G::LocalPlayer->GetLowerBodyYawTarget() - M::ClampYaw(angle_for_yaw.y + 90.f)) > 35 ? M::ClampYaw(*G::LocalPlayer->GetLowerBodyYawTarget() - 90.f) : M::ClampYaw(angle_for_yaw.y + 90.f); break;
}
}
else
{
G::SendPacket = true;
angle.y = angle_for_yaw.y + (rand() % 100 > 33 ? (rand() % 50 > 13 ? (rand() % 20 + 40) : -(rand() % 20 + 40)) : (rand() % 100 > 71 ? (rand() % 20 + 150) : -(rand() % 20 + 150)));
}
QAngle angle_for_yaw;
if (G::iBestTarget > 0)
M::CalcAngle(G::LocalPlayer->GetOrigin(), I::ClientEntList->GetClientEntity(G::iBestTarget)->GetOrigin(), angle_for_yaw);
else
I::Engine->GetViewAngles(angle_for_yaw);
if (flip)
{
G::SendPacket = false;
switch ((int)server_time % 2)
{
case 0: angle.y = fabs(*G::LocalPlayer->GetLowerBodyYawTarget() - M::ClampYaw(angle_for_yaw.y - 90.f)) > 35 ? M::ClampYaw(*G::LocalPlayer->GetLowerBodyYawTarget() - 180.f) : M::ClampYaw(angle_for_yaw.y - 90.f); break;
case 1: angle.y = fabs(*G::LocalPlayer->GetLowerBodyYawTarget() - M::ClampYaw(angle_for_yaw.y + 90.f)) > 35 ? M::ClampYaw(*G::LocalPlayer->GetLowerBodyYawTarget() - 90.f) : M::ClampYaw(angle_for_yaw.y + 90.f); break;
}
}
else
{
G::SendPacket = true;
angle.y = angle_for_yaw.y + (rand() % 100 > 33 ? (rand() % 50 > 13 ? (rand() % 20 + 40) : -(rand() % 20 + 40)) : (rand() % 100 > 71 ? (rand() % 20 + 150) : -(rand() % 20 + 150)));
}