libspades
Ace of Spades library
PacketHit Struct Reference

Tells the server that a player has been hit. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 5 (Client-->Server)
 
uint8_t playerID
 The ID of the player who has been hit.
 
uint8_t hitType
 Where/how the player has been hit.
 

Detailed Description

Tells the server that a player has been hit.

Field Documentation

◆ hitType

uint8_t PacketHit::hitType

Where/how the player has been hit.

Possible values are:

  • HitTypeTorso = 0,
  • HitTypeHead = 1,
  • HitTypeArms = 2,
  • HitTypeLegs = 3,
  • HitTypeMelee = 4

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