2019-07-17 11:19:20 +00:00
|
|
|
#include "common.h"
|
|
|
|
#include "patcher.h"
|
|
|
|
#include "CarAI.h"
|
|
|
|
|
2019-08-11 17:11:54 +00:00
|
|
|
#include "AutoPilot.h"
|
|
|
|
#include "Timer.h"
|
|
|
|
#include "Vehicle.h"
|
|
|
|
|
2019-07-17 11:19:20 +00:00
|
|
|
WRAPPER void CCarAI::UpdateCarAI(CVehicle*) { EAXJMP(0x413E50); }
|
2019-07-18 13:41:09 +00:00
|
|
|
WRAPPER void CCarAI::MakeWayForCarWithSiren(CVehicle *veh) { EAXJMP(0x416280); }
|
2019-08-06 21:32:19 +00:00
|
|
|
WRAPPER eCarMission CCarAI::FindPoliceCarMissionForWantedLevel() { EAXJMP(0x415E30); }
|
|
|
|
WRAPPER int32 CCarAI::FindPoliceCarSpeedForWantedLevel(CVehicle*) { EAXJMP(0x415EB0); }
|
|
|
|
WRAPPER void CCarAI::AddPoliceOccupants(CVehicle*) { EAXJMP(0x415C60); }
|
2019-09-14 23:28:07 +00:00
|
|
|
WRAPPER void CCarAI::AddAmbulanceOccupants(CVehicle*) { EAXJMP(0x415CE0); }
|
|
|
|
WRAPPER void CCarAI::AddFiretruckOccupants(CVehicle*) { EAXJMP(0x415D00); }
|
2019-09-14 17:53:04 +00:00
|
|
|
WRAPPER void CCarAI::TellOccupantsToLeaveCar(CVehicle*) { EAXJMP(0x415D20); }
|
2019-08-11 17:11:54 +00:00
|
|
|
|
|
|
|
void CCarAI::CarHasReasonToStop(CVehicle* pVehicle)
|
|
|
|
{
|
|
|
|
pVehicle->AutoPilot.m_nAntiReverseTimer = CTimer::GetTimeInMilliseconds();
|
|
|
|
}
|
|
|
|
|
|
|
|
STARTPATCHES
|
|
|
|
InjectHook(0x415B00, &CCarAI::CarHasReasonToStop, PATCH_JUMP);
|
|
|
|
ENDPATCHES
|