Files
bo3-js/netcodedocs/ptype-psub-defs.md

20 lines
663 B
Markdown
Raw Normal View History

2025-10-12 18:03:20 +02:00
# PType and PSub Definitions
A BO3 GameServer packet has a 2 byte header.
Byte 1 is PType (packet type), which is used to check whether its serverbound or clientbound, however nonstandard BO3 servers can have the PType above 0x01
Byte 2 is PSub (packet subtype), which is the actual packet name. Each ptype can have 256 different subtypes
## PType
0x00 = Clientbound (should never be sent by a client)
0x01 = Serverbound (should never be recieved by a client)
2025-10-23 20:58:19 +02:00
## PSub for client
2025-10-12 18:03:20 +02:00
0x02 = Replication channel
2025-10-23 20:58:19 +02:00
0x01 = Echo (Server will return what you send)
0x04 = Recv auth validness
0xFF = kick
## PSub for server
0x03 = Recv auth session
0x02 = Same as client