Dev, you fix\add a code to send the packet of the TC on a master-server.
This will allow monitoring the race without a TC. (hard-core)
This will allow monitoring the race without a TC. (hard-core)
<?php
struct IS_NPL // New PLayer joining race (if PLID already exists, then leaving pits)
{
byte Size; // 76
byte Type; // ISP_NPL
byte ReqI; // 0 unless this is a reply to an TINY_NPL request
byte PLID; // player's newly assigned unique id
byte UCID; // connection's unique id
byte PType; // bit 0 : female / bit 1 : AI / bit 2 : remote
word Flags; // player flags
char PName[24]; // nickname
char Plate[8]; // number plate - NO ZERO AT END!
char CName[4]; // car name
char SName[16]; // skin name - MAX_CAR_TEX_NAME
byte Tyres[4]; // compounds
byte H_Mass; // added mass (kg)
byte H_TRes; // intake restriction
byte Model; // driver model
byte Pass; // passengers byte
int Spare;
byte SetF; // setup flags (see below)
byte NumP; // number in race (same when leaving pits, 1 more if new)
byte Sp2;
byte Sp3;
};
// NOTE : PType bit 0 (female) is not reported on dedicated host as humans are not loaded
// You can use the driver model byte instead if required (and to force the use of helmets)
// Setup flags (for SetF byte)
#define SETF_SYMM_WHEELS 1
#define SETF_TC_ENABLE 2
#define SETF_ABS_ENABLE 4
?>
struct OutGaugePack
{
...
unsigned DashLights; // Dash lights available (see DL_x below)
// DL_x - bits for OutGaugePack DashLights and ShowLights
enum
{
DL_TC, // bit 4 - TC active or switched off
struct IS_CSC
{
byte Size; // ?
byte Type; // ISP_CSC
byte ReqI; // 0
byte PLID; // player's unique id
word Flags; // Info (see OG_x below)
byte Gear; // Reverse:0, Neutral:1, First:2...
float Speed; // M/S
float RPM; // RPM
float Turbo; // BAR
float EngTemp; // C
float Fuel; // 0 to 1
float OilPressure; // BAR
float OilTemp; // C
unsigned DashLights; // Dash lights available (see DL_x below)
unsigned ShowLights; // Dash lights currently switched on
};