mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement/match CPlayerPed::FUNC_100AD8B0; the GetWeaponInfo result is written back into the parameter slot
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user