-
Автор темы
- #1
C++:
void resolver::legitaa(player_t* player)
{
auto animstate = player->get_animation_state();
if (player->is_alive())
return;
if (player->is_player())
return;
//если первый шот мисс = брутим
//вместо ротейта используя goalfeet, мы используем eyeangles
switch (g_ctx.globals.missed_shots[player->EntIndex()] % 1)
{
case 0:
animstate->m_flGoalFeetYaw = math::normalize_yaw(player->m_angEyeAngles().y + 180.f);
break;
case 1:
animstate->m_flGoalFeetYaw = math::normalize_yaw(player->m_angEyeAngles().y - 180.f);
break;
}
}