keybode

pSpeed

Jan 9th, 2014
1,057
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. typedef void ( *CL_MoveFn )( float accumulated_extra_samples, bool bFinalTick );
  2.  
  3. CL_MoveFn oCL_Move = NULL;
  4.  
  5. void hkCL_Move( float accumulated_extra_samples, bool bFinalTick )
  6. {
  7.     oCL_Move( accumulated_extra_samples, bFinalTick );
  8.  
  9.     if( GetAsyncKeyState( VK_SHIFT ) )
  10.     {
  11.         for( int i = 0; i < 5; i++ )
  12.             oCL_Move( accumulated_extra_samples, bFinalTick );
  13.     }
  14. }
  15.  
  16. DWORD_PTR dwClientMove = m_dwEngine + 0x424F0;
  17. oCL_Move = ( CL_MoveFn )g_pBaseHook->DetourHook( ( PBYTE )dwClientMove, ( PBYTE )hkCL_Move );
Advertisement
Add Comment
Please, Sign In to add comment