[saco] Implement/match CPlayerPed::RemoveFromVehicleAndPutAt(...)

This commit is contained in:
RD42 2024-10-15 17:52:24 +08:00
parent ab853af4c2
commit 3227dd0905
3 changed files with 14 additions and 0 deletions

View File

@ -766,6 +766,17 @@ int CPlayerPed::GetVehicleSeatID()
return (-1);
}
//-----------------------------------------------------------
// Forceful removal
void CPlayerPed::RemoveFromVehicleAndPutAt(float fX, float fY, float fZ)
{
if(!GamePool_Ped_GetAt(m_dwGTAId)) return;
if(m_pPed && IN_VEHICLE(m_pPed)) {
ScriptCommand(&remove_actor_from_car_and_put_at,m_dwGTAId,fX,fY,fZ);
}
}
//-----------------------------------------------------------
WORD CPlayerPed::GetAmmo()

View File

@ -65,6 +65,8 @@ public:
void SetImmunities(BOOL bBullet, BOOL bFire, BOOL bExplosion, BOOL bDamage, BOOL bUnknown);
void RemoveFromVehicleAndPutAt(float fX, float fY, float fZ);
BOOL IsAPassenger();
VEHICLE_TYPE * GetGtaVehicle();

View File

@ -68,6 +68,7 @@ const SCRIPT_COMMAND set_actor_can_be_decapitated = { 0x0446, "ii" };
const SCRIPT_COMMAND play_sound = { 0x018c, "fffi" };
const SCRIPT_COMMAND remove_actor_from_car_and_put_at = { 0x0362, "ifff" };
const SCRIPT_COMMAND enable_train_traffic = { 0x06d7, "i" };
const SCRIPT_COMMAND lock_car = { 0x0519, "ii" };