libspades
Ace of Spades library
PacketShortPlayerData Struct Reference

Switches the client player's team/weapon from spectator mode. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 10 (Client-->Server)
 
uint8_t playerID
 The ID of the player who changed weapon/team.
 
uint8_t team
 The team to switch the player to.
 
uint8_t weapon
 The weapon to switch the player to.
 

Detailed Description

Switches the client player's team/weapon from spectator mode.

Note
This packet is exclusively used by the classic client, not even BetterSpades uses it.
As for OpenSpades, it instead uses Existing Player for all team/weapon switching.
Todo
VERIFY
Classic server bug
Sending this packet as an alternative to Existing Player for game join results in a gibberish player name

Field Documentation

◆ playerID

uint8_t PacketShortPlayerData::playerID

The ID of the player who changed weapon/team.

This parameter should technically not be necessary since it is never meant to be received by any clients (instead they should receive CreatePlayer"), but it is still here nonetheless.


The documentation for this struct was generated from the following file: