[saco] Implement and match GamePool_GetBuilding()

This commit is contained in:
RD42 committed 2024-05-05 16:39:28 +08:00
1 parent 4db124b7d3
commit 2eaeae5b56
3 files changed
+24

No files matched your search

+7
View File
@@ -121,6 +121,13 @@ typedef struct _VEHICLE_TYPE
//-----------------------------------------------------------
typedef struct _BUILDING_TYPE
{
char _gap0[56];
} BUILDING_TYPE;
//-----------------------------------------------------------
#define TRAIN_PASSENGER_LOCO 537
#define TRAIN_FREIGHT_LOCO 538
#define TRAIN_PASSENGER 569
+14
View File
@@ -1145,6 +1145,20 @@ PED_TYPE * __stdcall GamePool_FindPlayerPed()
return *(PED_TYPE **)(0xB7CD98);
}
//-----------------------------------------------------------
BUILDING_TYPE * GamePool_GetBuilding()
{
BUILDING_TYPE *pBuildingRet;
_asm mov eax, 0xB74498
_asm mov edx, [eax]
_asm mov eax, [edx]
_asm mov pBuildingRet, eax
return pBuildingRet;
}
//-----------------------------------------------------------
// Translate Weapon model ID into actual weapon ID.
+3
View File
@@ -34,3 +34,6 @@ BOOL IsFileOrDirectoryExists(char * szPath);
DWORD unnamed_100B6100(char *szString, int nMaxLen);
bool unnamed_100B4B50(VECTOR *vecPos);
BUILDING_TYPE * GamePool_GetBuilding();