Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool __fastcall Hooked_InPrediction ( void* ecx, void* edx )
- {
- bool InPrediction = m_pPredictionHook->GetMethod<InPredictionFn> ( ID_IN_PREDICTION )( ecx );
- if ( _ReturnAddress () == (void*)m_dwCalcPlayerView )
- {
- C_BaseEntity* LocalEntity = (C_BaseEntity*) GetESI ();
- Vector3* CurrentView = *(Vector3**)( *(DWORD_PTR*)( GetEBP () + 0xC ) );
- if ( LocalEntity && CurrentView )
- {
- *CurrentView -= LocalEntity->GetPunchAngle ();
- }
- }
- return InPrediction;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement