diff options
| author | JustSomePwner <crotchyalt@gmail.com> | 2018-09-01 14:32:14 +0200 |
|---|---|---|
| committer | JustSomePwner <crotchyalt@gmail.com> | 2018-09-01 14:32:14 +0200 |
| commit | e2350a9ef73817f1f364b6223f9d4d9d5c6235a8 (patch) | |
| tree | 9c752b5e0f04e638fba947fefa0fd00badf3f92b /internal_rewrite/prediction.cpp | |
| parent | 7afd0eaf52abe9e0bc8c8b5e986e90267f83b4e2 (diff) | |
| parent | beb5515757c0e653adc33f181184fe3791ca0a6b (diff) | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'internal_rewrite/prediction.cpp')
| -rw-r--r-- | internal_rewrite/prediction.cpp | 18 |
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;
|
