mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-22 13:32:36 +01:00
16 lines
333 B
C++
16 lines
333 B
C++
|
#include "StdAfx.h"
|
||
|
#include "VehicleVC.h"
|
||
|
|
||
|
int32_t CVehicle::GetOneShotOwnerID_SilentPatch() const
|
||
|
{
|
||
|
if ( m_pDriver != nullptr )
|
||
|
{
|
||
|
// TODO: Define this as a proper CPhysical
|
||
|
uintptr_t ptr = reinterpret_cast<uintptr_t>(m_pDriver);
|
||
|
return *reinterpret_cast<int32_t*>( ptr + 0x64 );
|
||
|
}
|
||
|
|
||
|
// Fallback
|
||
|
return m_audioEntityId;
|
||
|
}
|