Начинающий
-
Автор темы
- #1
C++:
if ( g_logs->get_logs.at( MISSED_SHOT_DUE_TO_SPREAD ) ) {
if ( !g_aim->can_hit( target, aim_matrix, hitgroup, 0.f ) && !g_shot->player_hit_impact )
g_logs->push_log( "missed shot due to spread", col_t( 255, 255, 255, 255 ) );
}
else if ( g_logs->get_logs.at( MISSED_SHOT_DUE_TO_BAD_RESOLVE ) ) {
++g_aim->missed_shots[ target->get_index( ) ];
if ( g_cfg->rage_bot.anti_aim_correction
&& abs( target->get_sim_time( ) - target->get_old_sim_time( ) ) > 0
&& g_shot->player_hit_impact )
g_logs->push_log( "missed shot due to bad resolve", col_t( 255, 255, 255, 255 ) );
}
else if ( g_logs->get_logs.at( MISSED_SHOT_DUE_TO_OCCLUSION ) ) {
auto dmg1 = g_autowall->get_dmg( g_globals->get_eye_pos );
auto dmg2 = g_autowall->get_dmg( g_aim->get_aim_pos );
// not proper method lol.
if ( fabs( dmg1 - dmg2 ) < 100 )
g_logs->push_log( "missed shot due to occlusion", col_t( 255, 255, 255, 255 ) );
}
else if ( g_logs->get_logs.at( MISSED_SHOT_DUE_TO_PREDICTION_ERROR ) ) {
if ( g_engine_prediction->has_have_prediction_error && !g_shot->player_hit_impact )
g_logs->push_log( "missed shot due to prediction error", col_t( 255, 255, 255, 255 ) );
// repredict after prediction error.
g_prediction->re_predict( );
}
else if ( g_logs->get_logs.at( MISSED_SHOT_DUE_TO_UNKOWN ) ) {
if ( !g_shot->player_hit_impact )
g_logs->push_log( "missed shot due to unkown", col_t( 255, 255, 255, 255 ) );
}