libspades
Ace of Spades library
PacketGrenade Struct Reference

Creates a grenade somewhere in the world. More...

#include <protocol.h>

Data Fields

uint8_t packetID
 6 (Client<->Server)
 
uint8_t playerID
 The ID of the player who threw the grenade.
 
float fuseLength
 The time in seconds from grenade creation until it detonates.
 
float xPosition
 The X position to spawn the grenade (left-to-right)
 
float yPosition
 The Y position to spawn the grenade (forward-to-backward)
 
float zPosition
 The Z position to spawn the grenade (up-to-down)
 
float xVelocity
 The X velocity of the grenade (left-to-right)
 
float yVelocity
 The Y velocity of the grenade (forward-to-backward)
 
float zVelocity
 The Z velocity of the grenade (up-to-down)
 

Detailed Description

Creates a grenade somewhere in the world.

Piqueserver bug
Piqueserver removes grenades of players who have left, but most clients do not remove these grenades from their local world, causing them to appear as "duds" when they explode on the client-side. This behaviour is not present in SpadesX.
Todo
test classic
Piqueserver bug
Trusted players can teleport grenades wherever they please, making it an even more deadly weapon than killaura on a shotgun/SMG, and an even more destructive tool than a hacked SMG.
Piqueserver bug
Grenades do not count towards griefing team-kill.
Todo
find a way to bypass pique #708, or just barely meet requirements, or maybe chuck it in a stupid direction. perhaps i can turn it into a heat-seeking missile?

Field Documentation

◆ fuseLength

float PacketGrenade::fuseLength

The time in seconds from grenade creation until it detonates.

Piqueserver bug
Piqueserver commits before 13b5c322e3c557c8a4b24c61020e43d5d6463642 allow any time to be used, despite the fact that normally the maximum should be 3.

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