mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[saco] Implement and match GamePool_GetDummy()
This commit is contained in:
parent
2eaeae5b56
commit
261cd01e1d
@ -128,6 +128,13 @@ typedef struct _BUILDING_TYPE
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
typedef struct _DUMMY_TYPE
|
||||||
|
{
|
||||||
|
char _gap0[56];
|
||||||
|
} DUMMY_TYPE;
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
#define TRAIN_PASSENGER_LOCO 537
|
#define TRAIN_PASSENGER_LOCO 537
|
||||||
#define TRAIN_FREIGHT_LOCO 538
|
#define TRAIN_FREIGHT_LOCO 538
|
||||||
#define TRAIN_PASSENGER 569
|
#define TRAIN_PASSENGER 569
|
||||||
|
@ -1159,6 +1159,22 @@ BUILDING_TYPE * GamePool_GetBuilding()
|
|||||||
return pBuildingRet;
|
return pBuildingRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
DUMMY_TYPE * GamePool_GetDummy()
|
||||||
|
{
|
||||||
|
DUMMY_TYPE *pDummyRet;
|
||||||
|
|
||||||
|
_asm mov eax, 0xB744A0
|
||||||
|
_asm mov edx, [eax]
|
||||||
|
_asm mov eax, [edx]
|
||||||
|
_asm mov pDummyRet, eax
|
||||||
|
|
||||||
|
return pDummyRet;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
// Translate Weapon model ID into actual weapon ID.
|
// Translate Weapon model ID into actual weapon ID.
|
||||||
|
|
||||||
|
@ -36,4 +36,5 @@ DWORD unnamed_100B6100(char *szString, int nMaxLen);
|
|||||||
bool unnamed_100B4B50(VECTOR *vecPos);
|
bool unnamed_100B4B50(VECTOR *vecPos);
|
||||||
|
|
||||||
BUILDING_TYPE * GamePool_GetBuilding();
|
BUILDING_TYPE * GamePool_GetBuilding();
|
||||||
|
DUMMY_TYPE * GamePool_GetDummy();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user