mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-12 19:14:08 +00:00
Merge pull request #369 from erorcun/erorcun
CShotInfo, CWanted done, Frontend fix
This commit is contained in:
commit
6704a62b32
11 changed files with 332 additions and 56 deletions
|
@ -19,6 +19,7 @@
|
|||
#include "Messages.h"
|
||||
#include "Replay.h"
|
||||
#include "Population.h"
|
||||
#include "Fire.h"
|
||||
|
||||
CColPoint *gaTempSphereColPoints = (CColPoint*)0x6E64C0; // [32]
|
||||
|
||||
|
@ -1052,6 +1053,19 @@ CWorld::ExtinguishAllCarFiresInArea(CVector point, float range)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
CWorld::SetCarsOnFire(float x, float y, float z, float radius, CEntity *reason)
|
||||
{
|
||||
int poolSize = CPools::GetVehiclePool()->GetSize();
|
||||
for (int poolIndex = poolSize - 1; poolIndex >= 0; poolIndex--) {
|
||||
CVehicle *veh = CPools::GetVehiclePool()->GetSlot(poolIndex);
|
||||
if (veh && veh->m_status != STATUS_WRECKED && !veh->m_pCarFire && !veh->bFireProof) {
|
||||
if (Abs(veh->GetPosition().z - z) < 5.0f && Abs(veh->GetPosition().x - x) < radius && Abs(veh->GetPosition().y - y) < radius)
|
||||
gFireManager.StartFire(veh, reason, 0.8f, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
CWorld::Process(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue