Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CBaseEntity::UpdateAccuracyPenalty ( void )
- {
- // 0x5D4
- if ( !m_baseWeaponPointer )
- return;
- uintptr_t weapon = hl2->read<uintptr_t> ( m_baseWeaponPointer );
- if ( !weapon )
- return;
- uintptr_t function = hl2->read<uintptr_t> ( weapon + 0x5D4 );
- if ( !function )
- return;
- HANDLE thread = CreateRemoteThread ( hl2->m_process, 0, 0, (LPTHREAD_START_ROUTINE)function, (LPVOID)weapon, 0, 0 );
- WaitForSingleObject ( thread, INFINITE );
- CloseHandle ( thread );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement