mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[saco] Implement and match GamePool_GetBuilding()
This commit is contained in:
1 parent
4db124b7d3
commit
2eaeae5b56
3 files changed
+24
No files matched your search
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -34,3 +34,6 @@ BOOL IsFileOrDirectoryExists(char * szPath);
|
||||
DWORD unnamed_100B6100(char *szString, int nMaxLen);
|
||||
|
||||
bool unnamed_100B4B50(VECTOR *vecPos);
|
||||
|
||||
BUILDING_TYPE * GamePool_GetBuilding();
|
||||
|
||||
Reference in new issue
Block a user