From 1d0b3fac63a5227492685c85e839b16f84e90e64 Mon Sep 17 00:00:00 2001 From: ricardoofnl Date: Sat, 5 Sep 2026 09:38:42 +0700 Subject: [PATCH] [saco] Implement/match `ScrUnkA1`; it forwards the two bytes straight to `CVehiclePool::FUNC_1001EB30` --- saco/net/scriptrpc.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/saco/net/scriptrpc.cpp b/saco/net/scriptrpc.cpp index b954505..402fa98 100644 --- a/saco/net/scriptrpc.cpp +++ b/saco/net/scriptrpc.cpp @@ -940,7 +940,24 @@ void ScrUnk9F(RPCParameters *rpcParams) } } void ScrUnkA0(RPCParameters *rpcParams) {} -void ScrUnkA1(RPCParameters *rpcParams) {} +void ScrUnkA1(RPCParameters *rpcParams) +{ + PCHAR Data = reinterpret_cast(rpcParams->input); + int iBitLength = rpcParams->numberOfBitsOfData; + PlayerID sender = rpcParams->sender; + + VEHICLEID vehicleId; + BYTE byteA, byteB; + + RakNet::BitStream bsData(Data,(iBitLength/8)+1,false); + + bsData.Read(vehicleId); + bsData.Read(byteA); + bsData.Read(byteB); + + CVehiclePool *pVehiclePool = pNetGame->GetVehiclePool(); + if(pVehiclePool) pVehiclePool->FUNC_1001EB30(vehicleId, byteA, byteB); +} void ScrUnk0F(RPCParameters *rpcParams) { PCHAR Data = reinterpret_cast(rpcParams->input);