From 4ea69b96c0a0efd683f559813506c119a6bd7c78 Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sat, 5 Sep 2026 09:09:30 +0700 Subject: [PATCH] [saco] Implement/match `CPlayerPed::FUNC_100AD440`; the armed-weapon compare stays byte wide, and this one really does use `destroy_object_with_fade` --- saco/game/playerped.cpp | 13 +++++++++++++ saco/game/playerped.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 1f8a781..a5f09f7 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -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; +} +//----------------------------------------------------------- diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 006e6a7..6c03d15 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -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];