[saco] Implement/match PickUpPickup_Hook

This commit is contained in:
ricardoofnl
2026-08-30 12:57:56 +07:00
parent 4fed9fd12f
commit ff0a898e2e
3 changed files with 15 additions and 1 deletions
+12 -1
View File
@@ -45,6 +45,7 @@ DWORD dwParam1;
DWORD dwParam2;
DWORD dwParamThis;
DWORD unnamed_10150960;
DWORD unnamed_101516D4;
DWORD unnamed_10151710;
DWORD unnamed_10151810;
@@ -410,7 +411,17 @@ NUDE PlayerWalk_Hook()
NUDE PickUpPickup_Hook()
{
// TODO: PickUpPickup_Hook
_asm mov unnamed_10150960, esi
_asm pushad
if (pNetGame && pNetGame->GetPickupPool())
pNetGame->GetPickupPool()->sub_10013440((unnamed_10150960 - 0x9788C0) >> 5);
_asm popad
_asm mov al, [esi+0x1C]
_asm cmp al, 6
_asm push 0x4579CB
_asm ret
}
//-----------------------------------------------------------
+1
View File
@@ -77,6 +77,7 @@ public:
CVehiclePool * GetVehiclePool() { return m_pPools->pVehiclePool; };
CPlayerPool * GetPlayerPool() { return m_pPools->pPlayerPool; };
CPickupPool * GetPickupPool() { return m_pPools->pPickupPool; };
CGangZonePool * GetGangZonePool() { return m_pPools->pGangZonePool; };
RakClientInterface * GetRakClient() { return m_pRakClient; };
+2
View File
@@ -33,6 +33,8 @@ public:
~CPickupPool();
void sub_10013440(int iPickup); // .text:10013440
};
//----------------------------------------------------