-
Автор темы
- #1
void CAimbot::_SmoothAimAngles(const QAngle a_QAngles, const QAngle a_QAimAngles, QAngle &a_QNewAngles, const float a_flSmoothing)
{
if (a_flSmoothing <= 1.f || isnan(a_flSmoothing))
{
a_QNewAngles = a_QAimAngles;
return;
}
a_QNewAngles = a_QAimAngles - a_QAngles;
a_QNewAngles.Normalize();
a_QNewAngles /= a_flSmoothing;
a_QNewAngles = a_QAngles + a_QNewAngles;
a_QNewAngles.Normalize();
}
{
if (a_flSmoothing <= 1.f || isnan(a_flSmoothing))
{
a_QNewAngles = a_QAimAngles;
return;
}
a_QNewAngles = a_QAimAngles - a_QAngles;
a_QNewAngles.Normalize();
a_QNewAngles /= a_flSmoothing;
a_QNewAngles = a_QAngles + a_QNewAngles;
a_QNewAngles.Normalize();
}