VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
VoltMod::PlayerDeath Struct Reference

#include <EventTypes.hpp>

Static Public Member Functions

static PlayerDeath From (IGameEvent &e)
 

Public Attributes

int Slot = -1
 user who died
 
int AttackerSlot = -1
 player who killed
 
int AssisterSlot = -1
 player who assisted in the kill
 
bool Assistedflash = false
 assister helped with a flash
 
std::string Weapon
 weapon name killer used
 
std::string WeaponItemid
 inventory item id of weapon killer used
 
std::string WeaponFauxitemid
 faux item id of weapon killer used
 
std::string WeaponOriginalownerXuid
 
bool Headshot = false
 singals a headshot
 
int Dominated = 0
 did killer dominate victim with this kill
 
int Revenge = 0
 did killer get revenge on victim with this kill
 
int Wipe = 0
 is the kill resulting in squad wipe
 
int Penetrated = 0
 number of objects shot penetrated before killing target
 
bool Noreplay = false
 if replay data is unavailable, this will be present and set to false
 
bool Noscope = false
 kill happened without a scope, used for death notice icon
 
bool Thrusmoke = false
 hitscan weapon went through smoke grenade
 
bool Attackerblind = false
 attacker was blind from flashbang
 
float Distance = 0.0f
 distance to victim in meters
 
int DmgHealth = 0
 damage done to health
 
int DmgArmor = 0
 damage done to armor
 
VoltMod::HitGroup Hitgroup = VoltMod::HitGroup::Generic
 hitgroup that was damaged
 
bool Attackerinair = false
 attacker was in midair
 

Static Public Attributes

static constexpr std::string_view EventName = "player_death"
 

Detailed Description

a game event, name may be 32 characters long

Definition at line 1425 of file EventTypes.hpp.

Member Function Documentation

◆ From()

PlayerDeath VoltMod::PlayerDeath::From ( IGameEvent &  e)
static

Definition at line 1348 of file EventTypes.cpp.

References Attackerinair, VoltMod::ReadFile(), and Slot.

Member Data Documentation

◆ Assistedflash

bool VoltMod::PlayerDeath::Assistedflash = false

assister helped with a flash

Definition at line 1431 of file EventTypes.hpp.

◆ AssisterSlot

int VoltMod::PlayerDeath::AssisterSlot = -1

player who assisted in the kill

Definition at line 1430 of file EventTypes.hpp.

◆ Attackerblind

bool VoltMod::PlayerDeath::Attackerblind = false

attacker was blind from flashbang

Definition at line 1444 of file EventTypes.hpp.

◆ Attackerinair

bool VoltMod::PlayerDeath::Attackerinair = false

attacker was in midair

Definition at line 1449 of file EventTypes.hpp.

Referenced by From().

◆ AttackerSlot

int VoltMod::PlayerDeath::AttackerSlot = -1

player who killed

Definition at line 1429 of file EventTypes.hpp.

◆ Distance

float VoltMod::PlayerDeath::Distance = 0.0f

distance to victim in meters

Definition at line 1445 of file EventTypes.hpp.

◆ DmgArmor

int VoltMod::PlayerDeath::DmgArmor = 0

damage done to armor

Definition at line 1447 of file EventTypes.hpp.

◆ DmgHealth

int VoltMod::PlayerDeath::DmgHealth = 0

damage done to health

Definition at line 1446 of file EventTypes.hpp.

◆ Dominated

int VoltMod::PlayerDeath::Dominated = 0

did killer dominate victim with this kill

Definition at line 1437 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::PlayerDeath::EventName = "player_death"
staticconstexpr

Definition at line 1427 of file EventTypes.hpp.

◆ Headshot

bool VoltMod::PlayerDeath::Headshot = false

singals a headshot

Definition at line 1436 of file EventTypes.hpp.

◆ Hitgroup

VoltMod::HitGroup VoltMod::PlayerDeath::Hitgroup = VoltMod::HitGroup::Generic

hitgroup that was damaged

Definition at line 1448 of file EventTypes.hpp.

◆ Noreplay

bool VoltMod::PlayerDeath::Noreplay = false

if replay data is unavailable, this will be present and set to false

Definition at line 1441 of file EventTypes.hpp.

◆ Noscope

bool VoltMod::PlayerDeath::Noscope = false

kill happened without a scope, used for death notice icon

Definition at line 1442 of file EventTypes.hpp.

◆ Penetrated

int VoltMod::PlayerDeath::Penetrated = 0

number of objects shot penetrated before killing target

Definition at line 1440 of file EventTypes.hpp.

◆ Revenge

int VoltMod::PlayerDeath::Revenge = 0

did killer get revenge on victim with this kill

Definition at line 1438 of file EventTypes.hpp.

◆ Slot

int VoltMod::PlayerDeath::Slot = -1

user who died

Definition at line 1428 of file EventTypes.hpp.

Referenced by From().

◆ Thrusmoke

bool VoltMod::PlayerDeath::Thrusmoke = false

hitscan weapon went through smoke grenade

Definition at line 1443 of file EventTypes.hpp.

◆ Weapon

std::string VoltMod::PlayerDeath::Weapon

weapon name killer used

Definition at line 1432 of file EventTypes.hpp.

◆ WeaponFauxitemid

std::string VoltMod::PlayerDeath::WeaponFauxitemid

faux item id of weapon killer used

Definition at line 1434 of file EventTypes.hpp.

◆ WeaponItemid

std::string VoltMod::PlayerDeath::WeaponItemid

inventory item id of weapon killer used

Definition at line 1433 of file EventTypes.hpp.

◆ WeaponOriginalownerXuid

std::string VoltMod::PlayerDeath::WeaponOriginalownerXuid

Definition at line 1435 of file EventTypes.hpp.

◆ Wipe

int VoltMod::PlayerDeath::Wipe = 0

is the kill resulting in squad wipe

Definition at line 1439 of file EventTypes.hpp.


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