-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
C++:
void c_resolver::correct_yaw( hacks::c_lag_record& record, hacks::c_lag_record& prev_record ) {
if ( !g_menu->main( ).m_rage.m_anti_aim_correction.get( ) ) {
/* store last resolved/unresolved side */
record.m_anim_side = prev_record.m_anim_side;
return;
}
const auto delta = std::fabsf( prev_record.m_eye_diff - record.m_eye_diff );
const auto acceleration_check = false;
/* check our players on acceleration */
if ( !acceleration_check ) {
acceleration_check = true;
record.m_last_delta = delta;
prev_record.m_last_delta = delta - 1.f;
goto OTHER_CHECK;
}
OTHER_CHECK:
if ( acceleration_check ) {
/* store last resolved side */
record.m_anim_side = prev_record.m_anim_side ? record.m_last_delta : prev_record.m_last_delta;
return;
}
/* player breaking lby */
if ( record.m_last_delta - delta >= 35.f ) {
/* store last resolved side */
record.m_anim_side = prev_record.m_anim_side ? record.m_last_delta : prev_record.m_last_delta;
return;
}
/* detect players moving */
if ( ( record.m_layers[ 6 ].m_weight > 0.f )
&& ( record.m_layers[ 6 ].m_weight != prev_record->m_layers[ 6 ].m_weight )
&& ( record.m_layers[ 6 ].m_playback_rate != prev_record->m_layers[ 6 ].m_playback_rate ) ) {
/* store last resolved side */
record.m_anim_side = prev_record.m_anim_side ? record.m_last_delta : prev_record.m_last_delta;
}
/* set to def data */
record.m_anim_side = 1;
record.m_type = 1;
}