Начинающий
no this isnt similar at all and this is an onshot resolver from pandora i believe take a look at this you might get a somewhat better understanding of what i mean since im guessing you're fairly new to all this?i think i have done something similar.
Is that the right one?C++:if (data->m_extending) { float flLeftFireYawDelta = fabsf(math::NormalizedAngle(flPseudoFireYaw - (record->m_angEyeAngles.y + 58.f))); float flRightFireYawDelta = fabsf(math::NormalizedAngle(flPseudoFireYaw - (record->m_angEyeAngles.y - 58.f))); return flLeftFireYawDelta > flRightFireYawDelta ? -58.f : 58.f; } else { float flLeftFireYawDelta = fabsf(math::NormalizedAngle(flPseudoFireYaw - (record->m_angEyeAngles.y + 29.f))); float flRightFireYawDelta = fabsf(math::NormalizedAngle(flPseudoFireYaw - (record->m_angEyeAngles.y - 29.f))); return flLeftFireYawDelta > flRightFireYawDelta ? -29.f : 29.f; }
Пожалуйста, авторизуйтесь для просмотра ссылки.
(not advertising)