mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
[saco] Match CRemotePlayer::FUNC_10014800; field_10B is unsigned and the vehicle lookup is its own statement
This commit is contained in:
1 parent
29d5a9f6e5
commit
c859373b8e
3 files changed
+32
-1
No files matched your search
@@ -299,6 +299,35 @@ void CRemotePlayer::FUNC_10014650()
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CRemotePlayer::FUNC_10014800()
|
||||
{
|
||||
CVehiclePool *pVehiclePool = pNetGame->GetVehiclePool();
|
||||
|
||||
if(!m_pPlayerPed) return;
|
||||
if(m_pPlayerPed->IsInVehicle()) return;
|
||||
if(field_1E7 >= MAX_VEHICLES) return;
|
||||
if(!pVehiclePool->field_3074[field_1E7]) return;
|
||||
if(!pVehiclePool->field_1134[field_1E7]) return;
|
||||
|
||||
BYTE byteWeapon;
|
||||
if(field_10B) byteWeapon = field_AD[3];
|
||||
else byteWeapon = field_19[54];
|
||||
byteWeapon &= 0x3F;
|
||||
|
||||
if(m_pPlayerPed->GetCurrentWeapon() != byteWeapon) {
|
||||
m_pPlayerPed->SetArmedWeapon(byteWeapon, false);
|
||||
if(m_pPlayerPed->GetCurrentWeapon() != byteWeapon) {
|
||||
m_pPlayerPed->GiveWeapon(byteWeapon, 9999);
|
||||
m_pPlayerPed->SetArmedWeapon(byteWeapon, false);
|
||||
}
|
||||
}
|
||||
|
||||
int iGtaVehicleID = pVehiclePool->FindGtaIDFromID(field_1E7);
|
||||
m_pPlayerPed->FUNC_100AC290(iGtaVehicleID, field_10B);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CRemotePlayer::FUNC_10014500(int a1)
|
||||
{
|
||||
if(!a1) {
|
||||
|
||||
Reference in new issue
Block a user