CookiePLMonster / SilentPatch

SilentPatch for GTA III, Vice City, and San Andreas
MIT License
136 stars 8 forks source link

Cars explode twice if the driver leaves the car while it explodes #13

Closed CookiePLMonster closed 2 days ago

CookiePLMonster commented 8 months ago

Two problems:

  1. CVehicle::RemoveDriver sets the entity status STATUS_ABANDONED even if the current status is STATUS_WRECKED.
  2. CPed::PedSetOutCarCB (in III/VC) and CTaskSimpleCarSetPedOut::ProcessPed set STATUS_ABANDONED directly after calling CVehicle::RemoveDriver. This one can just be nopped as it's redundant.