diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index cb84087..bb641ca 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -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); diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 78a6ad2..9365e4f 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -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