mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CPlayerPed::GetGtaContactEntity()
This commit is contained in:
parent
75d5dcc38d
commit
0fba86e33f
@ -140,7 +140,15 @@ typedef struct _PED_TYPE
|
||||
float fRotation1; // 1368-1372
|
||||
float fRotation2; // 1372-1376
|
||||
|
||||
char _gap560[44];
|
||||
char _gap560[8];
|
||||
|
||||
DWORD pContactVehicle; // 1384 - 1388
|
||||
|
||||
char _gap56C[24];
|
||||
|
||||
DWORD pContactEntity; // 1412 - 1416
|
||||
|
||||
char _gap588[4];
|
||||
|
||||
DWORD pVehicle; // 1420-1424
|
||||
|
||||
|
@ -913,3 +913,11 @@ void CPlayerPed::SetAimZ(float fAimZ)
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
ENTITY_TYPE* CPlayerPed::GetGtaContactEntity()
|
||||
{
|
||||
return (ENTITY_TYPE*)m_pPed->pContactEntity;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -68,6 +68,7 @@ public:
|
||||
BOOL IsAPassenger();
|
||||
|
||||
VEHICLE_TYPE * GetGtaVehicle();
|
||||
ENTITY_TYPE * GetGtaContactEntity();
|
||||
|
||||
float GetDistanceFromVehicle(CVehicle *pVehicle);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user