-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
по леерам только лучшее но надо брут сделать
Код:
auto Left = math::normalize_yaw(player->m_angEyeAngles().y - 60.f);
auto Right = math::normalize_yaw(player->m_angEyeAngles().y + 60.f);
Vector left, right;
auto calcDelta = math::calculate_angle(player->m_vecOrigin(), player->m_vecOrigin()).y;
math::AngleVectors(Vector(0.f, calcDelta - 90.f, 0.f), &left);
math::AngleVectors(Vector(0.f, calcDelta + 90.f, 0.f), &right);
auto left_pos = player->m_vecOrigin() + left;
auto right_pos = player->m_vecOrigin() + right;
if (g_ctx.globals.missed_shots[player->EntIndex()] > 2) {
switch (g_ctx.globals.missed_shots[player->EntIndex()] % 2) {
case 0:
animstate->m_flGoalFeetYaw = Left;
break;
case 1:
animstate->m_flGoalFeetYaw = Right;
break;
}
}
if (player->GetAnimOverlay(6)->m_flCycle == 0.2500122) {
animstate->m_flGoalFeetYaw = Left;
}
else if (player->GetAnimOverlay(6)->m_flCycle == 0.500122) {
animstate->m_flGoalFeetYaw = Right;
}
if (player->GetAnimOverlay(6)->m_flPlaybackRate <= 0.000060)
animstate->m_flGoalFeetYaw = Right;
if (player->GetAnimOverlay(6)->m_flPlaybackRate == 0.000067)
player->GetAnimOverlay(6)->m_flPlaybackRate == 0.000069;
animstate->m_flGoalFeetYaw = Left;