mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Implement/match CPlayerPed::FUNC_100AD440; the armed-weapon compare stays byte wide, and this one really does use destroy_object_with_fade
This commit is contained in:
@@ -2312,3 +2312,16 @@ DWORD CPlayerPed::FUNC_100AE790()
|
||||
return FUNC_100AE6A0();
|
||||
}
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::FUNC_100AD440()
|
||||
{
|
||||
if(!GamePool_Ped_GetAt(m_dwGTAId)) return;
|
||||
if(!IsAdded()) return;
|
||||
if(!field_2B9) return;
|
||||
if(FUNC_100ABC50() == 46) return;
|
||||
|
||||
ScriptCommand(&disassociate_object, field_2B9, 0.0f, 0.0f, 0.0f, 0);
|
||||
ScriptCommand(&destroy_object_with_fade, field_2B9);
|
||||
field_2B9 = 0;
|
||||
}
|
||||
//-----------------------------------------------------------
|
||||
|
||||
@@ -238,6 +238,8 @@ public:
|
||||
DWORD FUNC_100AE5F0(DWORD *pTask); // .text:100AE5F0
|
||||
DWORD FUNC_100AE6A0(); // .text:100AE6A0
|
||||
|
||||
void FUNC_100AD440(); // .text:100AD440
|
||||
|
||||
int m_iCellPhoneEnabled;
|
||||
int field_4C[10];
|
||||
struc_97 field_74[10];
|
||||
|
||||
Reference in New Issue
Block a user