IS PFL

From LFS Manual
Jump to navigationJump to search

Introduction

The Player FLags packet is sent by LFS when a player changes their flags.

IS_PFL packet properties
Type Name Description
byte Size 8
byte Type ISP_PFL
byte ReqI 0
byte PLID player's unique id
word Flags player flags (PIF_x)
word Spare

Packet Details

Size

The size of the packet is always 8 bytes.

Type

The packet type from the ISP_ enumeration, always ISP_PFL.

ReqI

ReqI is always equal to zero.

PLID

The player's unique ID.

Flags

Player settings and help flags:

#define PIF_LEFTSIDE		1
#define PIF_RESERVED_2		2
#define PIF_RESERVED_4		4
#define PIF_AUTOGEARS		8

#define PIF_SHIFTER			0x10
#define PIF_FLEXIBLE_STEER	0x20
#define PIF_HELP_B			0x40
#define PIF_AXIS_CLUTCH		0x80

#define PIF_INPITS			0x0100
#define PIF_AUTOCLUTCH		0x0200
#define PIF_MOUSE			0x0400
#define PIF_KB_NO_HELP		0x0800

#define PIF_KB_STABILISED	0x1000
#define PIF_CUSTOM_VIEW		0x2000