diff options
| author | navewindre <boneyaard@gmail.com> | 2018-09-16 19:47:02 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2018-09-16 19:47:02 +0200 |
| commit | fb2b56fd3c26d37ef198fe6dbf651104656f8a34 (patch) | |
| tree | a945e6ca2ca0691656634644998b29b5619672eb /internal_rewrite/ragebot_lagcomp.cpp | |
| parent | 559a0f5669f537e21f3d39780e6e3d77591ff8c1 (diff) | |
fd
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( );
|
