mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 09:48:13 +08:00
[saco] Match FUNC_100A3B80; it maps a ped pointer to its actor id
This commit is contained in:
1 parent
37237dd629
commit
89f12d3d55
2 files changed
+10
No files matched your search
@@ -1366,6 +1366,15 @@ DWORD unnamed_101516A4; // CPed * taking the damage
|
||||
|
||||
int __stdcall FUNC_100A3BB0(DWORD *pEventDamage, PED_TYPE *pPed); // todo: implement `FUNC_100A3BB0`
|
||||
|
||||
// maps a ped pointer to the actor that owns it
|
||||
ACTORID FUNC_100A3B80(DWORD dwPed)
|
||||
{
|
||||
if(!dwPed) return 0xFFFF;
|
||||
return pNetGame->GetActorPool()->FUNC_100018B0(dwPed);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
NUDE PedDamage_Hook()
|
||||
{
|
||||
__asm
|
||||
|
||||
@@ -18,6 +18,7 @@ public:
|
||||
CActorPool();
|
||||
|
||||
void sub_100016F0(ACTORID ActorID); // .text:100016F0
|
||||
ACTORID FUNC_100018B0(DWORD dwPtr); // .text:100018B0
|
||||
};
|
||||
|
||||
//----------------------------------------------------
|
||||
Reference in new issue
Block a user