REDRIVER2/src_rebuild/Game/C/cars.h

55 lines
1.5 KiB
C
Raw Normal View History

#ifndef CARS_H
#define CARS_H
2020-12-04 16:21:44 +01:00
#define CAR_INDEX(cp) (int)(cp-car_data)
#define IS_ROADBLOCK_CAR(cp) (cp->controlType == CONTROL_TYPE_CIV_AI && (cp->controlFlags & CONTROL_FLAG_COP_SLEEPING))
// PHYSICS
extern CAR_DATA car_data[MAX_CARS + 2]; // all cars + Tanner cbox + Camera cbox
// active cars
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-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
extern MODEL* gCarLowModelPtr[MAX_CAR_MODELS];
extern MODEL* gCarDamModelPtr[MAX_CAR_MODELS];
extern MODEL* gCarCleanModelPtr[MAX_CAR_MODELS];
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];
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];
extern char LeftLight;
extern char RightLight;
extern u_short civ_clut[8][32][6];
extern void DrawCar(CAR_DATA *cp, int view); // 0x000210B8
extern void buildNewCars(); // 0x00022860
extern void buildNewCarFromModel(CAR_MODEL *car, MODEL *model, int first); // 0x00022960
extern void MangleWheelModels(); // 0x000230C8
extern char GetCarPalIndex(int tpage); // 0x00023390
#endif