summaryrefslogtreecommitdiff
path: root/internal_rewrite/ragebot_lagcomp.cpp
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2018-09-09 13:52:54 +0200
committernavewindre <boneyaard@gmail.com>2018-09-09 13:52:54 +0200
commit620f39df29fed446ab007e03c7b071f635379f1f (patch)
tree0de68703b510ce1e67e04b9ef3722e3afddb25d3 /internal_rewrite/ragebot_lagcomp.cpp
parentf3e05f066a09546f55ad3b59471a5a39a0ce4243 (diff)
a
Diffstat (limited to 'internal_rewrite/ragebot_lagcomp.cpp')
-rw-r--r--internal_rewrite/ragebot_lagcomp.cpp25
1 files changed, 9 insertions, 16 deletions
diff --git a/internal_rewrite/ragebot_lagcomp.cpp b/internal_rewrite/ragebot_lagcomp.cpp
index 7b65e38..a047cec 100644
--- a/internal_rewrite/ragebot_lagcomp.cpp
+++ b/internal_rewrite/ragebot_lagcomp.cpp
@@ -373,7 +373,9 @@ namespace features
ent->calc_anim_velocity( true );
ent->fix_animations( true );
ent->do_ent_interpolation( true );
+ stored_lby[ i ] = ent->m_flLowerBodyYawTarget( );
m_last_simtime[ i ] = ent->m_flSimulationTime( );
+ m_flick_time[ i ] = FLT_MAX;
}
else if( g_ctx.m_stage == FRAME_RENDER_START ) {
ent->m_bClientSideAnimation( ) = false;
@@ -417,36 +419,27 @@ namespace features
}
else if( is_moving && !was_dormant[ i ] && g_settings.rage.resolver ) {
- m_first_update[ i ] = false;
+ m_first_update[ i ] = true;
ent->m_angEyeAngles( ).y = lby;
update_anims( i );
lag_record_t new_record( ent );
m_data_lby[ i ].push_front( new_record );
+ stored_lby[ i ] = lby;
}
else if( ( lby != stored_lby[ i ] ) && !was_dormant[ i ] && g_settings.rage.resolver ) {
- if( !m_first_update[ i ] ) {
- stored_lby[ i ] = lby;
- ent->m_angEyeAngles( ).y = lby;
+ stored_lby[ i ] = lby;
+ ent->m_angEyeAngles( ).y = lby;
- update_anims( i );
- lag_record_t new_record( ent );
+ update_anims( i );
+ lag_record_t new_record( ent );
+ if( !m_first_update ) {
m_data_lby[ i ].push_front( new_record );
m_flick_time[ i ] = ent->m_flOldSimulationTime( ) + TICK_INTERVAL( );
}
- else {
- ent->fix_animations( false, yaw_change );
-
- lag_record_t new_record( ent );
- new_record.m_sim_record = true;
-
- new_record.m_shots = g_cheat.m_ragebot.m_resolver->get_shots( i );
-
- m_data_normal[ i ].push_front( new_record );
- }
m_first_update[ i ] = false;
}