C++ Исходник Descent resolver for lw

Пользователь
Статус
Оффлайн
Регистрация
18 Май 2020
Сообщения
188
Реакции[?]
71
Поинты[?]
0
[I maded this for lw cuz some peoples dont know how to paste lol]

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;

    }
pose parameter on top
 
Пользователь
Статус
Оффлайн
Регистрация
18 Май 2020
Сообщения
188
Реакции[?]
71
Поинты[?]
0
Начинающий
Статус
Оффлайн
Регистрация
3 Окт 2020
Сообщения
86
Реакции[?]
7
Поинты[?]
0
[I maded this for lw cuz some peoples dont know how to paste lol]

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;

    }
pose parameter on top
if (delta >= 1.f)
{
player_record->side = RESOLVER_NEG;
}
else if (delta <= -1.f)
{
player_record->side = RESOLVER_POS;
}
all i needed to see to tell this is dogshit lol
 
Пользователь
Статус
Оффлайн
Регистрация
18 Май 2020
Сообщения
188
Реакции[?]
71
Поинты[?]
0
main public enemy
Эксперт
Статус
Оффлайн
Регистрация
30 Ноя 2019
Сообщения
1,531
Реакции[?]
647
Поинты[?]
0
[I maded this for lw cuz some peoples dont know how to paste lol]

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;

    }
pose parameter on top
Cringgeeeeee....
You will not be able to use and even try to detect something by poses parameters ..
Learn engine.
 
Начинающий
Статус
Оффлайн
Регистрация
27 Окт 2019
Сообщения
83
Реакции[?]
19
Поинты[?]
0
[I maded this for lw cuz some peoples dont know how to paste lol]

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;

    }
pose parameter on top
m_flEyeYaw = goal_feet_yaw always
 
main public enemy
Эксперт
Статус
Оффлайн
Регистрация
30 Ноя 2019
Сообщения
1,531
Реакции[?]
647
Поинты[?]
0
m_flEyeYaw = goal_feet_yaw always
:cry: :cry: :cry: Кто тебе это сказал? или где ты это прочитал/нашёл...
Подсказка : гоалфитяв зависит от m_flEyeYaw , m_flCurrentFeet и еще от парочки вещей но он никак не равен ему....
upd : отдельно про m_flCurentFeet , вот он может быть равен гоалфитяву и то не всегда....
а именно на сетапвелосити он приравнивает курент фит к гоалфитяву
 
Начинающий
Статус
Оффлайн
Регистрация
29 Сен 2020
Сообщения
43
Реакции[?]
15
Поинты[?]
0
what on earth are u trying to do with the pose ( move yaw ) its range is from (-180.000000, 180.000000) also calculated clientsided based on ur animlayers
 
Сверху Снизу