summaryrefslogtreecommitdiff
path: root/internal_rewrite/prediction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'internal_rewrite/prediction.cpp')
-rw-r--r--internal_rewrite/prediction.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/internal_rewrite/prediction.cpp b/internal_rewrite/prediction.cpp
index c088a65..28c4bc7 100644
--- a/internal_rewrite/prediction.cpp
+++ b/internal_rewrite/prediction.cpp
@@ -548,22 +548,6 @@ void c_prediction::run_command( user_cmd_t *ucmd ) {
if ( !ucmd || !g_csgo.m_engine( )->IsConnected( ) || !g_csgo.m_engine( )->IsInGame( ) || !g_csgo.m_move_helper.get( ) )
return;
- // Time saver.
- auto *player = g_ctx.m_local;
- auto *player_ce = player->ce( );
-
- if ( !player || !player_ce )
- return;
-
- // Set random seed and player.
- if ( !m_prediction_seed || !m_prediction_player ) {
- m_prediction_seed = *reinterpret_cast< int * >( g_csgo.m_prediction->get_old_function< uint32_t >( 19 ) + 0x30 );
- m_prediction_player = *reinterpret_cast< int * >( g_csgo.m_prediction->get_old_function< uint32_t >( 19 ) + 0x3E );
- }
-
- *reinterpret_cast< int * >( m_prediction_seed ) = ucmd ? ucmd->m_random_seed : -1;
- *reinterpret_cast< uint32_t * >( m_prediction_player ) = uint32_t( player );
-
int backup_buttons = ucmd->m_buttons;
float backup_forwardmove = ucmd->m_forwardmove;
float backup_sidemove = ucmd->m_sidemove;
@@ -619,7 +603,7 @@ void c_prediction::run_command( user_cmd_t *ucmd ) {
ucmd->m_buttons = old_buttons;
g_csgo.m_globals->m_curtime = old_curtime;
g_csgo.m_globals->m_frametime = old_frame_time;
- g_ctx.m_local->m_nTickBase( ) = old_tickbase;
+ //g_ctx.m_local->m_nTickBase( ) = old_tickbase;
g_ctx.m_local->m_fFlags( ) = old_flags;
g_ctx.m_local->m_nMoveType( ) = old_move_type;
g_ctx.m_local->m_vecVelocity( ) = old_velocity;