libspades
Ace of Spades library
PacketKillAction Struct Reference

Informs the client about the death of a player. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 16 (Client<--Server)
 
uint8_t playerID
 The ID of the player who died.
 
uint8_t killerID
 The ID of the killer.
 
uint8_t killType
 How the player died.
 
uint8_t respawnTime
 The time in seconds until the player respawns.
 

Detailed Description

Informs the client about the death of a player.

Field Documentation

◆ killType

uint8_t PacketKillAction::killType

How the player died.

Possible values are:

  • KillTypeWeapon = 0,
  • KillTypeHeadshot = 1,
  • KillTypeMelee = 2,
  • KillTypeGrenade = 3,
  • KillTypeFall = 4,
  • KillTypeTeamChange = 5,
  • KillTypeClassChange = 6

    Classic easter egg
    Values not in the range of 0 to 6 will display as "Derpy Kill Message".
    Todo
    verify

◆ respawnTime

uint8_t PacketKillAction::respawnTime

The time in seconds until the player respawns.

Note
Respawning is handled server-side and this should only be used for countdown timers and the like.

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