Advertisement
keybode

css steam external UpdateAccuracyPenalty

Jun 3rd, 2014
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. void CBaseEntity::UpdateAccuracyPenalty ( void )
  2. {
  3.     // 0x5D4
  4.  
  5.     if ( !m_baseWeaponPointer )
  6.         return;
  7.  
  8.     uintptr_t weapon = hl2->read<uintptr_t> ( m_baseWeaponPointer );
  9.  
  10.     if ( !weapon )
  11.         return;
  12.  
  13.     uintptr_t function = hl2->read<uintptr_t> ( weapon + 0x5D4 );
  14.  
  15.     if ( !function )
  16.         return;
  17.  
  18.     HANDLE thread = CreateRemoteThread ( hl2->m_process, 0, 0, (LPTHREAD_START_ROUTINE)function, (LPVOID)weapon, 0, 0 );
  19.  
  20.     WaitForSingleObject ( thread, INFINITE );
  21.  
  22.     CloseHandle ( thread );
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement