IS TOC
From LFS Manual
Jump to navigationJump to searchIntroduction
The Take Over Car packet is sent by LFS when a driver swap occurs during a pit stop.
| Type | Name | Description |
|---|---|---|
| byte | Size | 8 |
| byte | Type | ISP_TOC |
| byte | ReqI | 0 |
| byte | PLID | player's unique id |
| byte | OldUCID | old connection's unique id |
| byte | NewUCID | new connection's unique id |
| byte | Sp2 | |
| byte | Sp3 |
Packet Details
Size
The size of the packet is always 8 bytes.
Type
The packet type from the ISP_ enumeration, always ISP_TOC.
ReqI
ReqI is always equal to zero.
PLID
The player's unique ID.
OldUCID
The UCID of the player leaving the car.
NewUCID
The UCID of the player entering the car.
Notes
When tracking lists of players (using their PLIDs) and connections (using their UCIDs), a driver swap effectively means that the PLID corresponding to OldUCID goes from PLID to 0, while NewUCID's PLID goes from 0 to PLID.