libspades
Ace of Spades library
PacketBlockAction Struct Reference

Creates or destroys blocks. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 13 (Client<->Server)
 
uint8_t playerID
 The ID of the player who created/destroyed the block(s)
 
uint8_t actionType
 The action to be performed on the block.
 
int32_t xPosition
 The X position of the block (left-to-right)
 
int32_t yPosition
 The Y position of the block (forward-to-backward)
 
int32_t zPosition
 The Z position of the block (up-to-down)
 

Detailed Description

Creates or destroys blocks.

Field Documentation

◆ actionType

uint8_t PacketBlockAction::actionType

The action to be performed on the block.

Possible values are:

  • BlockActionTypeBuild = 0,
  • BlockActionTypeSpadeGunDestroy = 1,
  • BlockActionTypeSpadeSecondaryDestroy = 2,
  • BlockActionTypeGrenadeDestroy = 3

    Piqueserver bug
    Any tool can use any action, however BlockActionTypeGrenadeDestroy (spadenade) was fixed after commit c3cc0963d9c7a16b424214ba02a5cab0cb0d7e1a
    Piqueserver bug
    In versions that have the BlockActionTypeGrenadeDestroy bug, removed blocks are client-side only
    Todo
    verify
    Piqueserver bug
    BlockActionTypeBuild does not check if a block already exists at the specified position, making it possible to "paint" blocks that already exist.

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