[saco] Implement/match CPlayerPed::FUNC_100AD8B0; the GetWeaponInfo result is written back into the parameter slot

This commit is contained in:
ricardoofnl
2026-09-05 08:10:10 +07:00
parent 8cd945bd9f
commit 7d27da3613
2 changed files with 17 additions and 0 deletions
+16
View File
@@ -1936,6 +1936,22 @@ int CPlayerPed::FUNC_100AE960(int a1)
}
//-----------------------------------------------------------
void CPlayerPed::FUNC_100AD8B0(int iWeapon)
{
if(!m_pPed) return;
DWORD dwPedPtr = (DWORD)m_pPed;
iWeapon = (int)pGame->GetWeaponInfo(iWeapon, 1);
_asm mov ebx, iWeapon
_asm mov eax, [ebx+0xC]
_asm push eax
_asm mov ecx, dwPedPtr
_asm mov edx, 0x5E3990
_asm call edx
}
//-----------------------------------------------------------
struc_13 * CPlayerPed::FUNC_100AE5D0()
{
if(m_bytePlayerNumber) return FUNC_100B43D0(m_bytePlayerNumber);
+1
View File
@@ -198,6 +198,7 @@ public:
void FUNC_100ACE50(int a1); // .text:100ACE50
BOOL FUNC_100ADA00(); // .text:100ADA00
int FUNC_100AE960(int a1); // .text:100AE960
void FUNC_100AD8B0(int iWeapon); // .text:100AD8B0
struc_13 * FUNC_100AE5D0(); // .text:100AE5D0