Monolith stand resolver

Забаненный
Статус
Оффлайн
Регистрация
10 Дек 2022
Сообщения
3
Реакции[?]
8
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
s/o oneshot, sharklaser1, llama, lani, l1ney, platina, ttx, enq, sosison, geomayka and other best guys
C++:
void c_animation_system::run_standing_resolve( c_lag_record* record, c_lag_record* previous_record/*, int a3*/ ) {
    if ( record->m_resolve_state->m_resolve_mode == e_resolve_types::anim_layers )
        return;

    if ( record->m_balance_adjust && record->m_layers.at( e_anim_layers::adjust_balance ).m_sequence == previous_record->m_layers.at( e_anim_layers::adjust_balance ).m_sequence ) {
        auto act = record->m_player->get_seq_activity( record->m_layers.at( e_anim_layers::adjust_balance ).m_sequence );

       //a3 = ( m_globals( )->m_cur_time ) - g_anim_system->get_expt_time.at( v84  - 1 ) / v89;

        if ( act != 980 ) { // ACT_CSGO_IDLE_ADJUST_STOPPEDMOVING
            auto diff = fabsf( math::angle_diff( previous_record->m_eye_angles.y, record->m_eye_angles.y ) );

            if ( diff >= 5.f && record->m_resolve_state->m_side != e_resolve_sides::left )
                record->m_resolve_state->m_side = e_resolve_sides::left;
            else if ( diff <= -5.f && record->m_resolve_state->m_side != e_resolve_sides::right /*&& !a3*/ ) {
                record->m_resolve_state->m_side = e_resolve_sides::right;
                //record->m_resolve_state.m_velocity_in_processing.length_sqr( ) = a3 - v89;
           }
        }
    }
    else
        find_direction_side( record, previous_record, !record->m_resolve_state->m_is_moving/*, a3*/ );
}
 
Последнее редактирование:
Модератор форума
Участник
Статус
Оффлайн
Регистрация
26 Янв 2020
Сообщения
378
Реакции[?]
157
Поинты[?]
9K
Кусок совершенно бесполезного и непонятно как работающего кода.
 
Searching for myself
Пользователь
Статус
Оффлайн
Регистрация
29 Сен 2021
Сообщения
212
Реакции[?]
69
Поинты[?]
11K
Ощущение что мне в глаза насрали
 
Начинающий
Статус
Оффлайн
Регистрация
5 Июн 2021
Сообщения
100
Реакции[?]
6
Поинты[?]
1K
Код:
        if ( act != 980 ) { // ACT_CSGO_IDLE_ADJUST_STOPPEDMOVING
            auto diff = fabsf( math::angle_diff( previous_record->m_eye_angles.y, record->m_eye_angles.y ) );

            if ( diff >= 5.f && record->m_resolve_state->m_side != e_resolve_sides::left )
                record->m_resolve_state->m_side = e_resolve_sides::left;
            else if ( diff <= -5.f && record->m_resolve_state->m_side != e_resolve_sides::right /*&& !a3*/ ) {
                record->m_resolve_state->m_side = e_resolve_sides::right;
                //record->m_resolve_state.m_velocity_in_processing.length_sqr( ) = a3 - v89;
           }
        }
How can diff be less or equal than -5 when you are returning absolute value?
 
Забаненный
Статус
Оффлайн
Регистрация
28 Окт 2022
Сообщения
40
Реакции[?]
6
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
s/o oneshot, sharklaser1, llama, lani, l1ney, platina, ttx, enq, sosison, geomayka and other best guys
C++:
void c_animation_system::run_standing_resolve( c_lag_record* record, c_lag_record* previous_record/*, int a3*/ ) {
    if ( record->m_resolve_state->m_resolve_mode == e_resolve_types::anim_layers )
        return;

    if ( record->m_balance_adjust && record->m_layers.at( e_anim_layers::adjust_balance ).m_sequence == previous_record->m_layers.at( e_anim_layers::adjust_balance ).m_sequence ) {
        auto act = record->m_player->get_seq_activity( record->m_layers.at( e_anim_layers::adjust_balance ).m_sequence );

       //a3 = ( m_globals( )->m_cur_time ) - g_anim_system->get_expt_time.at( v84  - 1 ) / v89;

        if ( act != 980 ) { // ACT_CSGO_IDLE_ADJUST_STOPPEDMOVING
            auto diff = fabsf( math::angle_diff( previous_record->m_eye_angles.y, record->m_eye_angles.y ) );

            if ( diff >= 5.f && record->m_resolve_state->m_side != e_resolve_sides::left )
                record->m_resolve_state->m_side = e_resolve_sides::left;
            else if ( diff <= -5.f && record->m_resolve_state->m_side != e_resolve_sides::right /*&& !a3*/ ) {
                record->m_resolve_state->m_side = e_resolve_sides::right;
                //record->m_resolve_state.m_velocity_in_processing.length_sqr( ) = a3 - v89;
           }
        }
    }
    else
        find_direction_side( record, previous_record, !record->m_resolve_state->m_is_moving/*, a3*/ );
}
бесполезно, на стенды можно и леер юзать
 
Начинающий
Статус
Оффлайн
Регистрация
12 Фев 2021
Сообщения
120
Реакции[?]
20
Поинты[?]
5K
s/o oneshot, sharklaser1, llama, lani, l1ney, platina, ttx, enq, sosison, geomayka and other best guys
C++:
void c_animation_system::run_standing_resolve( c_lag_record* record, c_lag_record* previous_record/*, int a3*/ ) {
    if ( record->m_resolve_state->m_resolve_mode == e_resolve_types::anim_layers )
        return;

    if ( record->m_balance_adjust && record->m_layers.at( e_anim_layers::adjust_balance ).m_sequence == previous_record->m_layers.at( e_anim_layers::adjust_balance ).m_sequence ) {
        auto act = record->m_player->get_seq_activity( record->m_layers.at( e_anim_layers::adjust_balance ).m_sequence );

       //a3 = ( m_globals( )->m_cur_time ) - g_anim_system->get_expt_time.at( v84  - 1 ) / v89;

        if ( act != 980 ) { // ACT_CSGO_IDLE_ADJUST_STOPPEDMOVING
            auto diff = fabsf( math::angle_diff( previous_record->m_eye_angles.y, record->m_eye_angles.y ) );

            if ( diff >= 5.f && record->m_resolve_state->m_side != e_resolve_sides::left )
                record->m_resolve_state->m_side = e_resolve_sides::left;
            else if ( diff <= -5.f && record->m_resolve_state->m_side != e_resolve_sides::right /*&& !a3*/ ) {
                record->m_resolve_state->m_side = e_resolve_sides::right;
                //record->m_resolve_state.m_velocity_in_processing.length_sqr( ) = a3 - v89;
           }
        }
    }
    else
        find_direction_side( record, previous_record, !record->m_resolve_state->m_is_moving/*, a3*/ );
}
xD its not mono resolver
 
Сверху Снизу