re3/src/control/CarAI.h

27 lines
895 B
C
Raw Normal View History

#pragma once
2019-08-07 00:32:19 +03:00
#include "AutoPilot.h"
class CVehicle;
class CCarAI
{
public:
2019-10-06 14:25:13 +03:00
static float FindSwitchDistanceClose(CVehicle*);
2020-05-05 14:40:35 +03:00
static float FindSwitchDistanceFarNormalVehicle(CVehicle*);
2019-10-06 14:25:13 +03:00
static float FindSwitchDistanceFar(CVehicle*);
static void UpdateCarAI(CVehicle*);
2019-10-06 14:25:13 +03:00
static void CarHasReasonToStop(CVehicle*);
static float GetCarToGoToCoors(CVehicle*, CVector*);
2020-05-05 14:40:35 +03:00
static void AddPoliceCarOccupants(CVehicle*);
2019-09-15 02:28:07 +03:00
static void AddAmbulanceOccupants(CVehicle*);
static void AddFiretruckOccupants(CVehicle*);
2019-09-14 20:53:04 +03:00
static void TellOccupantsToLeaveCar(CVehicle*);
2019-10-06 14:25:13 +03:00
static void TellCarToRamOtherCar(CVehicle*, CVehicle*);
static void TellCarToBlockOtherCar(CVehicle*, CVehicle*);
static eCarMission FindPoliceCarMissionForWantedLevel();
static int32 FindPoliceCarSpeedForWantedLevel(CVehicle*);
static void MellowOutChaseSpeed(CVehicle*);
static void MakeWayForCarWithSiren(CVehicle *veh);
};