[saco] Implement and match GetInvalidModelInfoCount()

This commit is contained in:
RD42 committed 2024-05-05 18:21:21 +08:00
1 parent ddb2440aab
commit 29fc46aa00
2 files changed
+15 -1

No files matched your search

+14
View File
@@ -1197,6 +1197,20 @@ void ReplaceBuildingModel(ENTITY_TYPE *pEntity, int iModelID)
_asm call edx
}
//-----------------------------------------------------------
int GetInvalidModelInfoCount()
{
DWORD *dwModelInfos = (DWORD *)0xA9C068;
int iCount = 0;
for(int i = 0; i != 19000; i++)
{
if(dwModelInfos[i] == NULL)
iCount++;
}
return iCount;
}
//-----------------------------------------------------------
// Translate Weapon model ID into actual weapon ID.