From faee9024b8ddde7a3c3fd23c97f5fee04c80e681 Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sat, 5 Sep 2026 08:35:09 +0700 Subject: [PATCH] [saco] Implement/match `CPlayerPed::FUNC_100AEC50`; the same argument-slot tail call, into `FUNC_100AEB10` --- saco/game/playerped.cpp | 15 +++++++++++++++ saco/game/playerped.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 19f8960..15a26d4 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -2185,3 +2185,18 @@ void CPlayerPed::FUNC_100AEC10(MATRIX4X4 *pMatrix, int iBone) FUNC_100AEA80(pMatrix, iFrame); } //----------------------------------------------------------- + +void CPlayerPed::FUNC_100AEC50(MATRIX4X4 *pMatrix, int iBone) +{ + int iFrame; + DWORD dwPedPtr = (DWORD)m_pPed; + + _asm mov edi, dwPedPtr + _asm mov eax, iBone + _asm mov edx, [edi+eax*4+0x488] + _asm mov eax, [edx+0x14] + _asm mov iFrame, eax + + FUNC_100AEB10(pMatrix, iFrame); +} +//----------------------------------------------------------- diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 9bc3463..ef552c9 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -215,9 +215,11 @@ public: void FUNC_100AE1E0(); // .text:100AE1E0 void FUNC_100AEA80(MATRIX4X4 *pMatrix, int iFrame); // .text:100AEA80 + void FUNC_100AEB10(MATRIX4X4 *pMatrix, int iFrame); // .text:100AEB10 void FUNC_100AEC10(MATRIX4X4 *pMatrix, int iBone); // .text:100AEC10 + void FUNC_100AEC50(MATRIX4X4 *pMatrix, int iBone); // .text:100AEC50 int m_iCellPhoneEnabled; int field_4C[10];