[saco] Implement/match FUNC_100B43F0(...)

This commit is contained in:
RD42
2025-05-04 09:24:37 -07:00
parent bc62b91801
commit 356a762b4a
2 changed files with 21 additions and 0 deletions

View File

@ -467,6 +467,26 @@ struc_13 * __stdcall FUNC_100B43D0(BYTE bytePlayer)
//-----------------------------------------------------------
BYTE __stdcall FUNC_100B43F0(DWORD *pdwRenderWare)
{
BYTE x = 0;
while(x != PLAYER_PED_SLOTS)
{
ENTITY_TYPE *pEntity = (ENTITY_TYPE *)dwPlayerPedPtrs[x];
if(pEntity)
{
if(pEntity->pdwRenderWare)
{
if(pEntity->pdwRenderWare == pdwRenderWare)
return x;
}
}
x++;
}
return 0;
}
//-----------------------------------------------------------

View File

@ -40,6 +40,7 @@ DWORD __stdcall GetPlayerPedPtrRecord(BYTE bytePlayer);
BYTE __stdcall FindPlayerNumFromPedPtr(DWORD dwPedPtr);
void __stdcall FUNC_100B4390(BYTE bytePlayer, DWORD a2, DWORD a3, DWORD a4, DWORD a5);
struc_13 * __stdcall FUNC_100B43D0(BYTE bytePlayer);
BYTE __stdcall FUNC_100B43F0(DWORD *pdwRenderWare);
float __stdcall SquaredDistanceBetweenHorizontalPoints(float x1, float y1, float x2, float y2);
float DistanceBetweenHorizontalPoints(float x1, float y1, float x2, float y2);
float DistanceBetweenPoints(float x1, float y1, float z1, float x2, float y2, float z2);