coastline 0.0.4
Loading...
Searching...
No Matches
bossrallyvehicle.h File Reference
Include dependency graph for bossrallyvehicle.h:

Go to the source code of this file.

Macros

#define VEHICLE_GHOST   2
 The translucent, non-colliding mode used by ghost vehicles and respawn fades.
#define MAX_VEHICLES   16
 The capacity of the race engine's vehicle array.
#define VEHICLE_LAP_TIMES   12
 The number of completed lap times stored per vehicle.

Functions

void AiVehicleControllerCallback (Vehicle *vehicle)
 Dispatch the computer controller through its vehicle method.
void UpdateVehicleSpeedAndPhysics (Vehicle *vehicle)
 Refresh displayed speed when the second wheel has contact, then advance vehicle physics.
void PlayerVehicleControllerCallback (Vehicle *vehicle)
 Translate player controls, advance vehicle physics, and process player effects and respawning.

Variables

u8 g_abPlayerColorsRgb [20][3]
 Player and computer vehicle paint colours, indexed by player or race slot, in RGB byte order.

Macro Definition Documentation

◆ VEHICLE_GHOST

#define VEHICLE_GHOST   2

The translucent, non-colliding mode used by ghost vehicles and respawn fades.

◆ MAX_VEHICLES

#define MAX_VEHICLES   16

The capacity of the race engine's vehicle array.

◆ VEHICLE_LAP_TIMES

#define VEHICLE_LAP_TIMES   12

The number of completed lap times stored per vehicle.

Function Documentation

◆ AiVehicleControllerCallback()

void AiVehicleControllerCallback ( Vehicle * vehicle)

Dispatch the computer controller through its vehicle method.

Parameters
vehicleThe vehicle.
Ghidra address:
BRD3D: 0x10065620
Ghidra address:
BRGlide: 0x1005e690

◆ UpdateVehicleSpeedAndPhysics()

void UpdateVehicleSpeedAndPhysics ( Vehicle * vehicle)

Refresh displayed speed when the second wheel has contact, then advance vehicle physics.

Parameters
vehicleThe vehicle.
Ghidra address:
BRD3D: 0x1002c430
Ghidra address:
BRGlide: 0x100199a0

◆ PlayerVehicleControllerCallback()

void PlayerVehicleControllerCallback ( Vehicle * vehicle)

Translate player controls, advance vehicle physics, and process player effects and respawning.

Parameters
vehicleThe active vehicle with a valid input record.
Ghidra address:
BRD3D: 0x10063fe0
Ghidra address:
BRGlide: 0x1005d050

Variable Documentation

◆ g_abPlayerColorsRgb

u8 g_abPlayerColorsRgb[20][3]
extern

Player and computer vehicle paint colours, indexed by player or race slot, in RGB byte order.

Ghidra address:
BRD3D: 0x100b37d0
Ghidra address:
BRGlide: 0x100b2fd8