IS PIT

From LFS Manual
Revision as of 11:52, 10 February 2026 by Bokujishin (talk | contribs) (Created page with "== Introduction == The '''PIT''' stop packet is sent by LFS when a player makes a pit stop. {| class="wikitable" |+ IS_PIT packet properties |- ! Type !! Name !! Description...")
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to navigationJump to search

Introduction

The PIT stop packet is sent by LFS when a player makes a pit stop.

IS_PIT packet properties
Type Name Description
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 FuelAdd /showfuel yes: fuel added percent / no: 255
byte Penalty current penalty value (PENALTY_x)
byte NumStops number of pit stops
byte Sp3
byte Tyres[4] tyres changed
unsigned Work pit work
unsigned Spare

Packet Details

Size

The size of the packet is always 24 bytes.

Type

The packet type from the ISP_ enumeration, always ISP_PIT.

ReqI

ReqI is always equal to zero.

PLID

The player's unique ID.

LapsDone

The number of completed laps.

Flags

Player flags (see IS_NPL#Flags).

FuelAdd

If /showfuel yes, show the fuel added in percent; otherwise 255.

Penalty

The current penalty value, from the PENALTY_ enumeration.

NumStops

The number of pit stops done, including this one.

Tyres

The tyre compounds for each wheel (rear left, rear right, front left, front right), from the TYRE_ enumeration.

Work

The pit work being done during this stop, using PSE_ bit flags:

  • PSE_NOTHING: Nothing
  • PSE_STOP: Stopped at a pit box
  • PSE_FR_DAM: Repair front damage
  • PSE_FR_WHL: Change front tyres
  • PSE_LE_FR_DAM: Repair front left damage
  • PSE_LE_FR_WHL: Change front left tyre
  • PSE_RI_FR_DAM: Repair front right damage
  • PSE_RI_FR_WHL: Change front right tyre
  • PSE_RE_DAM: Repair rear damage
  • PSE_RE_WHL: Change rear tyres
  • PSE_LE_RE_DAM: Repair rear left damage
  • PSE_LE_RE_WHL: Change rear left tyre
  • PSE_RI_RE_DAM: Repair rear right damage
  • PSE_RI_RE_WHL: Change rear right tyre
  • PSE_BODY_MINOR: Repair minor body damage
  • PSE_BODY_MAJOR: Repair major body damage
  • PSE_SETUP: Change setup
  • PSE_REFUEL: Refuel