[saco] Implement/match CPlayerPed::FUNC_100AD0F0; it calls 0x5393F0 on the ped and vehicle slots

This commit is contained in:
ricardoofnl committed 2026-09-03 03:28:53 +07:00
1 parent 989405a307
commit 4ee8177703
2 files changed
+27

No files matched your search

+26
View File
@@ -1300,6 +1300,32 @@ CPlayerPed::~CPlayerPed()
//-----------------------------------------------------------
void CPlayerPed::FUNC_100AD0F0()
{
if(!m_pPed) return;
DWORD dwPtr = *(DWORD *)((DWORD)m_pPed + 0x730);
if(dwPtr) {
_asm mov ecx, dwPtr
_asm mov eax, 0x5393F0
_asm call eax
}
if(IN_VEHICLE(m_pPed)) {
VEHICLE_TYPE *pVehicle = (VEHICLE_TYPE *)m_pPed->pVehicle;
if(pVehicle) {
dwPtr = *(DWORD *)((DWORD)pVehicle + 0x490);
if(dwPtr) {
_asm mov ecx, dwPtr
_asm mov eax, 0x5393F0
_asm call eax
}
}
}
}
//-----------------------------------------------------------
int GetTaskType(DWORD *pTask); // .text:100B40A0
// 2 = entering as driver, 1 = entering as passenger, 0 = not entering
+1
View File
@@ -172,6 +172,7 @@ public:
void RemoveAllAttachedObjects(); // .text:100B0AB0
void StopCarrying(); // .text:100ADC00
void Destroy(); // .text:100B0FA0
void FUNC_100AD0F0(); // .text:100AD0F0
void FUNC_100AFFD0(); // .text:100AFFD0
int m_iCellPhoneEnabled;