mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-16 08:29:01 +00:00
e14252914e
Fixes are already in miami
31 lines
No EOL
643 B
C++
31 lines
No EOL
643 B
C++
#pragma once
|
|
#include "config.h"
|
|
|
|
class CPed;
|
|
|
|
class CAccident
|
|
{
|
|
public:
|
|
CPed *m_pVictim;
|
|
uint32 m_nMedicsAttending;
|
|
uint32 m_nMedicsPerformingCPR;
|
|
CAccident() : m_pVictim(nil), m_nMedicsAttending(0), m_nMedicsPerformingCPR(0) {}
|
|
};
|
|
|
|
class CAccidentManager
|
|
{
|
|
CAccident m_aAccidents[NUM_ACCIDENTS];
|
|
enum {
|
|
MAX_MEDICS_TO_ATTEND_ACCIDENT = 2
|
|
};
|
|
public:
|
|
CAccident *GetNextFreeAccident();
|
|
void ReportAccident(CPed *ped);
|
|
void Update();
|
|
CAccident *FindNearestAccident(CVector vecPos, float *pDistance);
|
|
uint16 CountActiveAccidents();
|
|
bool UnattendedAccidents();
|
|
bool WorkToDoForMedics();
|
|
};
|
|
|
|
extern CAccidentManager gAccidentManager; |