libspades
Ace of Spades library
PacketChangeWeapon Struct Reference

Changes a player's weapon. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 30 (Client<->Server*)
 
uint8_t playerID
 The ID of the player who is changing weapon.
 
uint8_t weaponID
 The weapon the player is changing to.
 

Detailed Description

Changes a player's weapon.

Field Documentation

◆ packetID

uint8_t PacketChangeWeapon::packetID

30 (Client<->Server*)

Piqueserver bug
*As a complete and utter showing of pyspades' (and therefore PySnip's and piqueserver's) excellence, the only reason the server is capable of sending this packet is because it doesn't have a reason. All packets of this type sent from the server can be safely ignored.

◆ weaponID

uint8_t PacketChangeWeapon::weaponID

The weapon the player is changing to.

Possible values are:

  • WeaponTypeRifle = 0,
  • WeaponTypeSMG = 1,
  • WeaponTypeShotgun = 2

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