IS TOC

From LFS Manual
Revision as of 12:15, 10 February 2026 by Bokujishin (talk | contribs) (Created page with "== Introduction == The '''T'''ake '''O'''ver '''C'''ar packet is sent by LFS when a driver swap occurs during a pit stop. {| class="wikitable" |+ IS_TOC packet properties |-...")
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to navigationJump to search

Introduction

The Take Over Car packet is sent by LFS when a driver swap occurs during a pit stop.

IS_TOC packet properties
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.