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