mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement/match PickUpPickup_Hook
This commit is contained in:
+12
-1
@@ -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
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
@@ -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; };
|
||||
|
||||
|
||||
@@ -33,6 +33,8 @@ public:
|
||||
|
||||
~CPickupPool();
|
||||
|
||||
void sub_10013440(int iPickup); // .text:10013440
|
||||
|
||||
};
|
||||
|
||||
//----------------------------------------------------
|
||||
Reference in New Issue
Block a user