mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-11 09:50:34 +00:00
script colstore stuff
This commit is contained in:
parent
35bf340401
commit
0b104a59fe
3 changed files with 26 additions and 2 deletions
|
@ -249,6 +249,21 @@ void CMissionCleanup::CheckIfCollisionHasLoadedForMissionObject()
|
|||
}
|
||||
}
|
||||
|
||||
CPhysical* CMissionCleanup::DoesThisEntityWaitForCollision(int i)
|
||||
{
|
||||
if (m_sEntities[i].type == CLEANUP_CAR) {
|
||||
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(m_sEntities[i].id);
|
||||
if (pVehicle && pVehicle->GetStatus() != STATUS_WRECKED)
|
||||
return pVehicle;
|
||||
}
|
||||
else if (m_sEntities[i].type == CLEANUP_CHAR) {
|
||||
CPed* pPed = CPools::GetPedPool()->GetAt(m_sEntities[i].id);
|
||||
if (pPed && !pPed->DyingOrDead())
|
||||
return pPed;
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
void CMissionCleanup::Process()
|
||||
{
|
||||
CPopulation::m_AllRandomPedsThisType = -1;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
class CEntity;
|
||||
class CBuilding;
|
||||
class CPhysical;
|
||||
class CVehicle;
|
||||
class CPed;
|
||||
class CObject;
|
||||
|
@ -132,6 +133,7 @@ public:
|
|||
void RemoveEntityFromList(int32, uint8);
|
||||
void Process();
|
||||
void CheckIfCollisionHasLoadedForMissionObject();
|
||||
CPhysical* DoesThisEntityWaitForCollision(int i);
|
||||
};
|
||||
|
||||
struct CUpsideDownCarCheckEntry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue