2019-05-18 12:39:39 +02:00
|
|
|
#include "common.h"
|
|
|
|
#include "patcher.h"
|
|
|
|
#include "CarCtrl.h"
|
|
|
|
|
2019-06-24 16:57:54 +02:00
|
|
|
int &CCarCtrl::NumLawEnforcerCars = *(int*)0x8F1B38;
|
2019-06-30 12:59:55 +02:00
|
|
|
int &CCarCtrl::NumAmbulancesOnDuty = *(int*)0x885BB0;
|
|
|
|
int &CCarCtrl::NumFiretrucksOnDuty = *(int*)0x9411F0;
|
2019-06-29 11:09:33 +02:00
|
|
|
bool &CCarCtrl::bCarsGeneratedAroundCamera = *(bool*)0x95CD8A;
|
2019-07-04 00:16:24 +02:00
|
|
|
float& CCarCtrl::CarDensityMultiplier = *(float*)0x5EC8B4;
|
2019-06-24 16:57:54 +02:00
|
|
|
|
2019-06-17 10:30:02 +02:00
|
|
|
WRAPPER void CCarCtrl::SwitchVehicleToRealPhysics(CVehicle*) { EAXJMP(0x41F7F0); }
|
2019-06-28 12:34:02 +02:00
|
|
|
WRAPPER void CCarCtrl::AddToCarArray(int32 id, int32 vehclass) { EAXJMP(0x4182F0); }
|
|
|
|
WRAPPER void CCarCtrl::UpdateCarCount(CVehicle*, bool) { EAXJMP(0x4202E0); }
|
|
|
|
WRAPPER int32 CCarCtrl::ChooseCarModel(int32 vehclass) { EAXJMP(0x418110); }
|
2019-07-14 13:49:27 +02:00
|
|
|
WRAPPER bool CCarCtrl::JoinCarWithRoadSystemGotoCoors(CVehicle*, CVector, bool) { EAXJMP(0x41FA00); }
|
|
|
|
WRAPPER void CCarCtrl::JoinCarWithRoadSystem(CVehicle*) { EAXJMP(0x41F820); }
|
2019-07-17 13:19:20 +02:00
|
|
|
WRAPPER void CCarCtrl::SteerAICarWithPhysics(CVehicle*) { EAXJMP(0x41DA60); }
|
|
|
|
WRAPPER void CCarCtrl::UpdateCarOnRails(CVehicle*) { EAXJMP(0x418880); }
|
2019-07-18 15:41:09 +02:00
|
|
|
WRAPPER void CCarCtrl::ScanForPedDanger(CVehicle *veh) { EAXJMP(0x418F40); }
|
2019-07-17 23:58:06 +02:00
|
|
|
|
|
|
|
bool
|
|
|
|
CCarCtrl::MapCouldMoveInThisArea(float x, float y)
|
|
|
|
{
|
|
|
|
// bridge moves up and down
|
|
|
|
return x > -342.0f && x < -219.0f &&
|
|
|
|
y > -677.0f && y < -580.0f;
|
|
|
|
}
|