diff options
Diffstat (limited to 'internal_rewrite/ragebot_lagcomp.cpp')
| -rw-r--r-- | internal_rewrite/ragebot_lagcomp.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/internal_rewrite/ragebot_lagcomp.cpp b/internal_rewrite/ragebot_lagcomp.cpp index 0401f05..b9a072a 100644 --- a/internal_rewrite/ragebot_lagcomp.cpp +++ b/internal_rewrite/ragebot_lagcomp.cpp @@ -406,9 +406,10 @@ namespace features float last_simtime = m_last_simtime[ i ];
float simtime = ent->m_flSimulationTime( );
- bool yaw_change = g_cheat.m_ragebot.m_resolver->yaw_change( i );
-
if( !!std::abs( simtime - last_simtime ) ) {
+ g_cheat.m_ragebot.m_resolver->update_player( i );
+ bool yaw_change = g_cheat.m_ragebot.m_resolver->yaw_change( i );
+
ent->calc_anim_velocity( was_dormant[ i ] );
bool is_moving = ent->get_anim_velocity( ).length2d( ) > 0.1f && !ent->is_fakewalking( )
@@ -472,13 +473,13 @@ namespace features }
}
+
+ g_cheat.m_ragebot.m_resolver->yaw_change( i ) = false;
}
ent->do_ent_interpolation( false );
m_last_simtime[ i ] = simtime;
- g_cheat.m_ragebot.m_resolver->yaw_change( i ) = false;
-
while( !m_data_lby[ i ].empty( ) &&
m_data_lby[ i ].size( ) > TIME_TO_TICKS( 1.0f ) ) {
m_data_lby[ i ].pop_back( );
|
