mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 09:48:13 +08:00
[saco] Implement/match CPlayerPed::FUNC_100AD0F0; it calls 0x5393F0 on the ped and vehicle slots
This commit is contained in:
1 parent
989405a307
commit
4ee8177703
2 files changed
+27
No files matched your search
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user