libspades
Ace of Spades library
PacketCreatePlayer Struct Reference

Spawns and changes properties of a player. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 12 (Client<--Server)
 
uint8_t playerID
 The ID of the player to spawn/modify.
 
uint8_t weapon
 The player's weapon.
 
uint8_t team
 The player's team.
 
float xPosition
 The X position of the player (left-to-right)
 
float yPosition
 The Y position to move the client player (forward-to-backward)
 
float zPosition
 The Z position to move the client player (up-to-down)
 
char name [16]
 The name of the player.
 

Detailed Description

Spawns and changes properties of a player.

Field Documentation

◆ name

char PacketCreatePlayer::name[16]

The name of the player.

OpenSpades bug
Abuse of a piqueserver bug in PacketExistingPlayer leads to the player's name appearing as that of the last disconnected player if the OpenSpades client connected before the abusing client.

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