IS PLH

From LFS Manual
Jump to navigationJump to search

Introduction

The PLayer Handicaps packet is used to set handicaps on specific players.

IS_PLH packet properties
Type Name Description
byte Size 4 + NumP * 4
byte Type ISP_PLH
byte ReqI 0 unless this is a reply to a TINY_PLH request
byte NumP number of players in this packet
PlayerHCap HCaps [PLH_MAX_PLAYERS] 0 to PLH_MAX_PLAYERS (NumP)

Packet Details

Size

The size of the packet varies from 4 to 196 bytes depending on the value of NumP.

Type

The packet type from the ISP_ enumeration, always ISP_PLH.

ReqI

ReqI is equal to zero, unless the packet is a reply to a TINY_PLH request.

NumP

The number of players in this packet.

HCaps

The list of PlayerHCap handicaps.

Notes

This packet can set up to 48 player handicaps. To remove all handicaps, send this packet with 0 players.