2020-03-27 21:47:29 +01:00
|
|
|
#ifndef CARS_H
|
|
|
|
#define CARS_H
|
|
|
|
|
2020-12-04 16:21:44 +01:00
|
|
|
|
2020-04-21 17:28:52 +02:00
|
|
|
#define CAR_INDEX(cp) (int)(cp-car_data)
|
|
|
|
|
2020-09-27 10:53:03 +02:00
|
|
|
#define IS_ROADBLOCK_CAR(cp) (cp->controlType == CONTROL_TYPE_CIV_AI && (cp->controlFlags & CONTROL_FLAG_COP_SLEEPING))
|
|
|
|
|
2020-04-10 13:56:11 +02:00
|
|
|
// PHYSICS
|
2020-10-31 01:11:58 +01:00
|
|
|
extern CAR_DATA car_data[MAX_CARS + 2]; // all cars + Tanner cbox + Camera cbox
|
2020-04-10 13:56:11 +02:00
|
|
|
|
|
|
|
// active cars
|
2020-10-31 01:11:58 +01:00
|
|
|
extern CAR_DATA* active_car_list[MAX_CARS];
|
2020-09-05 11:09:08 +02:00
|
|
|
extern BOUND_BOX bbox[MAX_CARS];
|
|
|
|
extern unsigned char lightsOnDelay[MAX_CARS];
|
2020-04-10 13:56:11 +02:00
|
|
|
|
2020-09-05 11:09:08 +02:00
|
|
|
extern CAR_MODEL NewCarModel[MAX_CAR_MODELS];
|
|
|
|
extern CAR_MODEL NewLowCarModel[MAX_CAR_MODELS];
|
2020-04-10 01:37:20 +02:00
|
|
|
|
2020-11-07 18:37:23 +01:00
|
|
|
extern MODEL* gCarLowModelPtr[MAX_CAR_MODELS];
|
|
|
|
extern MODEL* gCarDamModelPtr[MAX_CAR_MODELS];
|
|
|
|
extern MODEL* gCarCleanModelPtr[MAX_CAR_MODELS];
|
|
|
|
|
2020-04-10 02:11:21 +02:00
|
|
|
extern int whichCP; // car poly counter
|
|
|
|
extern int baseSpecCP; // special car poly counter
|
2020-04-10 01:52:35 +02:00
|
|
|
|
2020-12-04 16:21:44 +01:00
|
|
|
extern SVECTOR gTempCarVertDump[MAX_CARS][MAX_DENTING_VERTS];
|
|
|
|
extern DENTUVS gTempHDCarUVDump[MAX_CARS][MAX_DENTING_UVS];
|
|
|
|
extern DENTUVS gTempLDCarUVDump[MAX_CARS][MAX_DENTING_LOD_UVS];
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2020-04-21 17:28:52 +02:00
|
|
|
extern MODEL *gHubcapModelPtr;
|
|
|
|
extern MODEL *gCleanWheelModelPtr;
|
|
|
|
extern MODEL *gFastWheelModelPtr;
|
|
|
|
extern MODEL *gDamWheelModelPtr;
|
|
|
|
|
2020-09-05 11:09:08 +02:00
|
|
|
extern short FrontWheelRotation[MAX_CARS];
|
|
|
|
extern short BackWheelRotation[MAX_CARS];
|
2020-06-06 14:19:48 +02:00
|
|
|
|
2020-04-29 17:03:13 +02:00
|
|
|
extern char LeftLight;
|
|
|
|
extern char RightLight;
|
|
|
|
|
2020-11-16 18:15:08 +01:00
|
|
|
extern u_short civ_clut[8][32][6];
|
|
|
|
|
2020-10-31 01:11:58 +01:00
|
|
|
extern void DrawCar(CAR_DATA *cp, int view); // 0x000210B8
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
extern void buildNewCars(); // 0x00022860
|
2020-04-07 12:56:13 +02:00
|
|
|
extern void buildNewCarFromModel(CAR_MODEL *car, MODEL *model, int first); // 0x00022960
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
extern void MangleWheelModels(); // 0x000230C8
|
|
|
|
|
|
|
|
extern char GetCarPalIndex(int tpage); // 0x00023390
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|