2019-06-02 17:13:56 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Ped.h"
|
|
|
|
|
2019-12-22 16:28:16 +01:00
|
|
|
class CAccident;
|
|
|
|
class CFire;
|
|
|
|
|
|
|
|
enum EmergencyPedState
|
|
|
|
{
|
|
|
|
EMERGENCY_PED_READY = 0x0,
|
|
|
|
EMERGENCY_PED_DETERMINE_NEXT_STATE = 0x1, // you can set that anytime you want
|
|
|
|
EMERGENCY_PED_START_CPR = 0x2,
|
|
|
|
EMERGENCY_PED_FLAG_4 = 0x4, // unused
|
|
|
|
EMERGENCY_PED_FLAG_8 = 0x8, // unused
|
|
|
|
EMERGENCY_PED_FACE_TO_PATIENT = 0x10, // for CPR
|
|
|
|
EMERGENCY_PED_PERFORM_CPR = 0x20,
|
|
|
|
EMERGENCY_PED_STOP_CPR = 0x40,
|
|
|
|
EMERGENCY_PED_STAND_STILL = 0x80, // waiting colleagues for medics, "extinguishing" fire for firemen
|
|
|
|
EMERGENCY_PED_STOP = 0x100,
|
|
|
|
};
|
|
|
|
|
2019-06-02 17:13:56 +02:00
|
|
|
class CEmergencyPed : public CPed
|
|
|
|
{
|
|
|
|
public:
|
2019-12-22 16:28:16 +01:00
|
|
|
CPed *m_pRevivedPed;
|
|
|
|
EmergencyPedState m_nEmergencyPedState;
|
|
|
|
CAccident *m_pAttendedAccident;
|
|
|
|
CFire *m_pAttendedFire;
|
2020-04-19 06:14:13 +02:00
|
|
|
bool m_bStartedToCPR; // set but unused
|
|
|
|
int32 field_1360; // set to 0 but unused
|
2019-07-14 11:49:03 +02:00
|
|
|
|
|
|
|
CEmergencyPed(uint32);
|
2019-12-22 16:28:16 +01:00
|
|
|
~CEmergencyPed() { }
|
|
|
|
bool InRange(CPed*);
|
2019-07-14 14:00:36 +02:00
|
|
|
void ProcessControl(void);
|
2019-12-22 16:28:16 +01:00
|
|
|
void FiremanAI(void);
|
|
|
|
void MedicAI(void);
|
2019-06-02 17:13:56 +02:00
|
|
|
};
|
2020-04-23 22:25:18 +02:00
|
|
|
#ifndef PED_SKIN
|
2020-05-10 17:49:33 +02:00
|
|
|
VALIDATE_SIZE(CEmergencyPed, 0x554);
|
2020-04-23 22:25:18 +02:00
|
|
|
#endif
|