Difference between revisions of "IS PLH"
From LFS Manual
Jump to navigationJump to searchBokujishin (talk | contribs) (Created page with "== Introduction == The '''IP''' '''B'''ans packet is used to set a list of banned IP addresses on the host. {| class="wikitable" |+ IS_IPB packet properties |- ! Type !! Nam...") |
Bokujishin (talk | contribs) |
||
| Line 1: | Line 1: | ||
== Introduction == | == Introduction == | ||
| − | The ''' | + | The '''PL'''ayer '''H'''andicaps packet is used to set handicaps on specific players. |
{| class="wikitable" | {| class="wikitable" | ||
| − | |+ | + | |+ IS_PLH packet properties |
|- | |- | ||
! Type !! Name !! Description | ! Type !! Name !! Description | ||
|- | |- | ||
| − | | byte || Size || | + | | byte || Size || 4 + NumP * 4 |
|- | |- | ||
| − | | byte || Type || | + | | byte || Type || ISP_PLH |
|- | |- | ||
| − | | byte || ReqI || 0 unless this is a reply to a | + | | byte || ReqI || 0 unless this is a reply to a TINY_PLH request |
|- | |- | ||
| − | | byte || | + | | byte || NumP || number of players in this packet |
|- | |- | ||
| − | | | + | | PlayerHCap || HCaps [PLH_MAX_PLAYERS] || 0 to PLH_MAX_PLAYERS (NumP) |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
|} | |} | ||
| Line 31: | Line 23: | ||
=== Size === | === Size === | ||
| − | The size of the packet varies from | + | The size of the packet varies from 4 to 196 bytes depending on the value of [[#NumP|NumP]]. |
=== Type === | === Type === | ||
| − | The packet type from the [[InSim_enumerations#ISP|ISP_]] enumeration, always | + | The packet type from the [[InSim_enumerations#ISP|ISP_]] enumeration, always ISP_PLH. |
=== ReqI === | === ReqI === | ||
| − | ReqI is equal to zero, unless the packet is a reply to a [[InSim_enumerations#TINY| | + | ReqI is equal to zero, unless the packet is a reply to a [[InSim_enumerations#TINY|TINY_PLH]] request. |
| − | === | + | === NumP === |
| − | The number of | + | The number of players in this packet. |
| − | === | + | === HCaps === |
| − | The list of | + | The list of [[InSim_structs#PlayerHCap|PlayerHCap]] handicaps. |
== Notes == | == Notes == | ||
| − | This packet can set up to | + | This packet can set up to 48 player handicaps. To remove all handicaps, send this packet with 0 players. |
[[Category:InSim packets]] | [[Category:InSim packets]] | ||
Latest revision as of 19:56, 10 February 2026
Introduction
The PLayer Handicaps packet is used to set handicaps on specific players.
| 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.