[saco] Implement/match FUNC_10017440, the passenger sync store; the vehicle cache is an inlined CVehiclePool::GetAt

This commit is contained in:
ricardoofnl
2026-09-05 08:14:40 +07:00
parent e10d48a9e9
commit 998f68c583
2 changed files with 20 additions and 0 deletions
+19
View File
@@ -404,6 +404,25 @@ void CRemotePlayer::FUNC_10017260(BYTE *pSync, int iTime)
//----------------------------------------------------
void CRemotePlayer::FUNC_10017440(BYTE *pSync)
{
memcpy(field_AD, pSync, sizeof(field_AD));
field_1E7 = *(WORD *)pSync;
field_10B = pSync[2] & 0x3F;
field_1E1 = (CVehicle *)pNetGame->GetVehiclePool()->GetAt(field_1E7);
field_1B0 = pSync[4];
field_1AC = pSync[5];
field_1B8 = 18;
field_1B9 = GetTickCount();
field_C = 0;
if(m_pPlayerPed && !m_pPlayerPed->IsInVehicle()) FUNC_10014800();
if(field_10A != 18) field_10A = 18;
}
//----------------------------------------------------
void CRemotePlayer::FUNC_100148F0()
{
if(m_pPlayerPed && m_pPlayerPed->IsInVehicle()) {
+1
View File
@@ -86,6 +86,7 @@ public:
void FUNC_100148F0(); // .text:100148F0
void FUNC_10014FF0(); // .text:10014FF0
void FUNC_10017260(BYTE *pSync, int iTime); // .text:10017260
void FUNC_10017440(BYTE *pSync); // .text:10017440
void FUNC_10014800(); // .text:10014800
void FUNC_10017610(char *szText); // .text:10017610
void FUNC_100150D0(VECTOR *pPos, VECTOR *pMoveSpeed); // .text:100150D0