From b2fc02bce8d83879b9e0e27e29f221bcbf8f3298 Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Thu, 3 Sep 2026 00:12:35 +0700 Subject: [PATCH] [saco] Match `CRemotePlayer::FUNC_10017570`; tail-jumps into `ResetAllSyncAttributes` --- saco/game/playerped.h | 1 + saco/net/remoteplayer.cpp | 12 ++++++++++++ saco/net/remoteplayer.h | 1 + 3 files changed, 14 insertions(+) diff --git a/saco/game/playerped.h b/saco/game/playerped.h index a6e24a1..096cbdd 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -144,6 +144,7 @@ public: VECTOR* GetTransformedBonePosition(int iBone, VECTOR *vecOffset); BOOL FUNC_100AFA70(); // .text:100AFA70 + void FUNC_100AFFD0(); // .text:100AFFD0 int m_iCellPhoneEnabled; int field_4C[10]; diff --git a/saco/net/remoteplayer.cpp b/saco/net/remoteplayer.cpp index 22df8d4..bd56b77 100644 --- a/saco/net/remoteplayer.cpp +++ b/saco/net/remoteplayer.cpp @@ -113,6 +113,18 @@ void CRemotePlayer::FUNC_10017530() //---------------------------------------------------- +void CRemotePlayer::FUNC_10017570() +{ + if(m_pPlayerPed) { + m_pPlayerPed->SetKeys(0,0,0); + m_pPlayerPed->FUNC_100AFFD0(); + } + if(field_10A != 32) field_10A = 32; + ResetAllSyncAttributes(); +} + +//---------------------------------------------------- + void CRemotePlayer::ExitVehicle() { if(m_pPlayerPed && m_pPlayerPed->IsInVehicle()) { diff --git a/saco/net/remoteplayer.h b/saco/net/remoteplayer.h index d5e1193..ddbb5b6 100644 --- a/saco/net/remoteplayer.h +++ b/saco/net/remoteplayer.h @@ -65,6 +65,7 @@ public: void ExitVehicle(); void FUNC_10017530(); // .text:10017530 + void FUNC_10017570(); // .text:10017570 }; //----------------------------------------------------