Advertisement
keybode

css v34 InPrediction hook

Oct 7th, 2014
510
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. bool __fastcall Hooked_InPrediction ( void* ecx, void* edx )
  2. {
  3.     bool InPrediction = m_pPredictionHook->GetMethod<InPredictionFn> ( ID_IN_PREDICTION )( ecx );
  4.  
  5.     if ( _ReturnAddress () == (void*)m_dwCalcPlayerView )
  6.     {
  7.         C_BaseEntity* LocalEntity = (C_BaseEntity*) GetESI ();
  8.        
  9.         Vector3* CurrentView = *(Vector3**)( *(DWORD_PTR*)( GetEBP () + 0xC ) );
  10.  
  11.         if ( LocalEntity && CurrentView )
  12.         {
  13.             *CurrentView -= LocalEntity->GetPunchAngle ();
  14.         }
  15.     }
  16.  
  17.     return InPrediction;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement