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

#include <EventTypes.hpp>

Static Public Member Functions

static OtherDeath From (IGameEvent &e)
 

Public Attributes

int Otherid = 0
 other entity ID who died
 
std::string Othertype
 other entity type
 
int Attacker = 0
 user ID who killed
 
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 Penetrated = 0
 number of objects shot penetrated before killing target
 
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
 

Static Public Attributes

static constexpr std::string_view EventName = "other_death"
 

Detailed Description

Definition at line 1321 of file EventTypes.hpp.

Member Function Documentation

◆ From()

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

Definition at line 1250 of file EventTypes.cpp.

References Otherid, and VoltMod::ReadFile().

Member Data Documentation

◆ Attacker

int VoltMod::OtherDeath::Attacker = 0

user ID who killed

Definition at line 1326 of file EventTypes.hpp.

◆ Attackerblind

bool VoltMod::OtherDeath::Attackerblind = false

attacker was blind from flashbang

Definition at line 1335 of file EventTypes.hpp.

◆ EventName

constexpr std::string_view VoltMod::OtherDeath::EventName = "other_death"
staticconstexpr

Definition at line 1323 of file EventTypes.hpp.

◆ Headshot

bool VoltMod::OtherDeath::Headshot = false

singals a headshot

Definition at line 1331 of file EventTypes.hpp.

◆ Noscope

bool VoltMod::OtherDeath::Noscope = false

kill happened without a scope, used for death notice icon

Definition at line 1333 of file EventTypes.hpp.

◆ Otherid

int VoltMod::OtherDeath::Otherid = 0

other entity ID who died

Definition at line 1324 of file EventTypes.hpp.

Referenced by From().

◆ Othertype

std::string VoltMod::OtherDeath::Othertype

other entity type

Definition at line 1325 of file EventTypes.hpp.

◆ Penetrated

int VoltMod::OtherDeath::Penetrated = 0

number of objects shot penetrated before killing target

Definition at line 1332 of file EventTypes.hpp.

◆ Thrusmoke

bool VoltMod::OtherDeath::Thrusmoke = false

hitscan weapon went through smoke grenade

Definition at line 1334 of file EventTypes.hpp.

◆ Weapon

std::string VoltMod::OtherDeath::Weapon

weapon name killer used

Definition at line 1327 of file EventTypes.hpp.

◆ WeaponFauxitemid

std::string VoltMod::OtherDeath::WeaponFauxitemid

faux item id of weapon killer used

Definition at line 1329 of file EventTypes.hpp.

◆ WeaponItemid

std::string VoltMod::OtherDeath::WeaponItemid

inventory item id of weapon killer used

Definition at line 1328 of file EventTypes.hpp.

◆ WeaponOriginalownerXuid

std::string VoltMod::OtherDeath::WeaponOriginalownerXuid

Definition at line 1330 of file EventTypes.hpp.


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