From beb5515757c0e653adc33f181184fe3791ca0a6b Mon Sep 17 00:00:00 2001 From: navewindre Date: Sat, 1 Sep 2018 14:23:02 +0200 Subject: dasdadasf --- internal_rewrite/prediction.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'internal_rewrite/prediction.cpp') 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; -- cgit v1.2.3