IS SPX
From LFS Manual
Jump to navigationJump to searchIntroduction
The SPlit X time packet is sent by LFS when a player crosses a split line.
| Type | Name | Description |
|---|---|---|
| byte | Size | 16 |
| byte | Type | ISP_SPX |
| byte | ReqI | 0 |
| byte | PLID | player's unique id |
| unsigned | STime | split time (ms) |
| unsigned | ETime | total time (ms) |
| byte | Split | split number 1, 2, 3 |
| byte | Penalty | current penalty value (PENALTY_x) |
| byte | NumStops | number of pit stops |
| byte | Fuel200 | /showfuel yes: double fuel percent / no: 255 |
Packet Details
Size
The size of the packet is always 16 bytes.
Type
The packet type from the ISP_ enumeration, always ISP_SPX.
ReqI
ReqI is always equal to zero.
PLID
The player's unique ID.
STime
The split time, in ms.
ETime
The total time elapsed since race start, in ms. Note that this is different from the session timestamp, and only counts from the LFS green lights.
Split
The split number (1, 2, or 3).
Penalty
The current penalty value, from the PENALTY_ enumeration.
NumStops
The number of pit stops done.
Fuel200
If /showfuel yes, shows the current fuel left as double of the actual value (Fuel200 = 45 means there is 22.5% left). Otherwise, Fuel200 is 255.