The online racing simulator
pit work
(4 posts, started )
pit work
Hi, how can I know whether setting to "repair damage: [yes]" (F12) of the player when he made a pitstop using insim?
Listen for IS_PIT and check the Work flags
struct IS_PIT // PIT stop (stop at pit garage)
{
byte Size; // 24
byte Type; // ISP_PIT
byte ReqI; // 0
byte PLID; // player's unique id

word LapsDone; // laps completed
word Flags; // player flags

byte Sp0;
byte Penalty; // current penalty value (see below)
byte NumStops; // number of pit stops
byte Sp3;

byte Tyres[4]; // tyres changed

unsigned Work; // pit work
unsigned Spare;
};

// Pit Work Flags
enum
{
PSE_NOTHING, // bit 0 (1)
PSE_STOP, // bit 1 (2)
PSE_FR_DAM, // bit 2 (4)
PSE_FR_WHL, // etc...
PSE_LE_FR_DAM,
PSE_LE_FR_WHL,
PSE_RI_FR_DAM,
PSE_RI_FR_WHL,
PSE_RE_DAM,
PSE_RE_WHL,
PSE_LE_RE_DAM,
PSE_LE_RE_WHL,
PSE_RI_RE_DAM,
PSE_RI_RE_WHL,
PSE_BODY_MINOR,
PSE_BODY_MAJOR,
PSE_SETUP,
PSE_REFUEL,
PSE_NUM
};

I know about it, but it does not help me. I tested it. If the car is not broken and "repair damage:yes" the same result if is "no". I need not the fact repair, i need the fact of "repair damage:yes"
The pit strategy is handled client side and the final settings are only sent to the server once you actually do the stop. There is no way to obtain a client's pit strategy via InSim.

pit work
(4 posts, started )
FGED GREDG RDFGDR GSFDG