libspades
Ace of Spades library
PacketSetHP Struct Reference

Changes the client player's HP. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 5 (Client<--Server)
 
uint8_t HP
 The amount of HP to change the client player to.
 
uint8_t type
 The reason for the damage.
 
float sourceX
 The X position of the damage source (left-to-right)
 
float sourceY
 The Y position of the damage source (forward-to-backward)
 
float sourceZ
 The Z position of the damage source (up-to-down)
 

Detailed Description

Changes the client player's HP.

Field Documentation

◆ type

uint8_t PacketSetHP::type

The reason for the damage.

Possible values are:

  • HurtTypeFall = 0,
  • HurtTypeWeapon = 1

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