[saco] Implement/match CPlayerPed::FUNC_100AD9C0; the model index widens through movzx for the __cdecl stat lookup

This commit is contained in:
ricardoofnl
2026-09-05 08:57:28 +07:00
parent 4aea04637b
commit 984369a2a6
3 changed files with 11 additions and 0 deletions
+8
View File
@@ -2214,3 +2214,11 @@ void CPlayerPed::FUNC_100AEC50(MATRIX4X4 *pMatrix, int iBone)
FUNC_100AEB10(pMatrix, iFrame); FUNC_100AEB10(pMatrix, iFrame);
} }
//----------------------------------------------------------- //-----------------------------------------------------------
int CPlayerPed::FUNC_100AD9C0()
{
if(!m_pPed) return -1;
return FUNC_100B4100(m_pPed->entity.nModelIndex);
}
//-----------------------------------------------------------
+2
View File
@@ -226,6 +226,8 @@ public:
void FUNC_100AEC10(MATRIX4X4 *pMatrix, int iBone); // .text:100AEC10 void FUNC_100AEC10(MATRIX4X4 *pMatrix, int iBone); // .text:100AEC10
void FUNC_100AEC50(MATRIX4X4 *pMatrix, int iBone); // .text:100AEC50 void FUNC_100AEC50(MATRIX4X4 *pMatrix, int iBone); // .text:100AEC50
int FUNC_100AD9C0(); // .text:100AD9C0
int m_iCellPhoneEnabled; int m_iCellPhoneEnabled;
int field_4C[10]; int field_4C[10];
struc_97 field_74[10]; struc_97 field_74[10];
+1
View File
@@ -115,6 +115,7 @@ void FUNC_100B6A80(float *pQuat, MATRIX4X4 *pMatrix); // .text:100B6A80
void __stdcall FUNC_100B6900(VECTOR *pFront, VECTOR *pOut); // .text:100B6900 void __stdcall FUNC_100B6900(VECTOR *pFront, VECTOR *pOut); // .text:100B6900
void FUNC_100B5470(float *pQuat, MATRIX4X4 *pMatrix); // .text:100B5470 void FUNC_100B5470(float *pQuat, MATRIX4X4 *pMatrix); // .text:100B5470
void FUNC_100B5500(float *pQuat); // .text:100B5500 void FUNC_100B5500(float *pQuat); // .text:100B5500
int FUNC_100B4100(int iModel); // .text:100B4100
void FUNC_100B5210(int a1, void *a2); // .text:100B5210, __cdecl: the caller's void FUNC_100B5210(int a1, void *a2); // .text:100B5210, __cdecl: the caller's
// stack cleanup is folded into the next call's argument setup // stack cleanup is folded into the next call's argument setup