mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement/match IsValidPedModel; the model bounds test is signed, and the vtable is 0x85BDC0
This commit is contained in:
@@ -191,6 +191,21 @@ void ReplaceBuildingModel(ENTITY_TYPE *pEntity, int iModelID)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BOOL __stdcall IsValidPedModel(int iModel)
|
||||
{
|
||||
DWORD *pModelInfo;
|
||||
|
||||
if(iModel >= 0 && iModel <= 30000 &&
|
||||
(pModelInfo = GetModelInfo(iModel)) != NULL &&
|
||||
*pModelInfo == 0x85BDC0)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
int GetInvalidModelInfoCount()
|
||||
{
|
||||
DWORD *dwModelInfos = (DWORD *)0xA9C068;
|
||||
|
||||
Reference in New Issue
Block a user