-
Автор темы
- #1
[I maded this for lw cuz some peoples dont know how to paste lol]
pose parameter on top
C++:
float difference = math::AngleDiff(e->get_animation_state()->m_flEyeYaw, original_goal_feet_yaw);
if (e->m_vecVelocity().Length2D() < 6.f)
{
float delta = 2 * (math::AngleDiff(e->get_animation_state()->m_flEyeYaw, original_goal_feet_yaw) <= 0) - 1;
if (difference <= 10.f && difference >= -10.f)
{
player_record->side = g_ctx.globals.missed_shots[e->EntIndex()] % 2 ? RESOLVER_LOWN : RESOLVER_LOWP;
}
else
{
if (delta >= 1.f)
{
player_record->side = RESOLVER_NEG;
}
else if (delta <= -1.f)
{
player_record->side = RESOLVER_POS;
}
}
}
else
{
auto poses = e->m_flPoseParameter();
float lean = poses[7];
player_record->side = lean >= 0.5f ? RESOLVER_LOWP : RESOLVER_LOWN;
}