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

#include <Damage.hpp>

Public Attributes

EntityRef Attacker
 credited in the kill feed and player_death
 
EntityRef Inflictor
 what did it, such as a grenade or a turret; empty means the attacker
 
float Amount = 0.0f
 
uint32_t Type = DamageGeneric
 Damage type bits (DamageTypes_t); combine with |. bits
 
std::string_view Weapon
 
std::string_view VictimWeapon
 

Detailed Description

Who deals the damage, how much, and of which kind.

Definition at line 35 of file Damage.hpp.

Member Data Documentation

◆ Amount

float VoltMod::DamageInfo::Amount = 0.0f

Definition at line 39 of file Damage.hpp.

◆ Attacker

EntityRef VoltMod::DamageInfo::Attacker

credited in the kill feed and player_death

Definition at line 37 of file Damage.hpp.

◆ Inflictor

EntityRef VoltMod::DamageInfo::Inflictor

what did it, such as a grenade or a turret; empty means the attacker

Definition at line 38 of file Damage.hpp.

◆ Type

uint32_t VoltMod::DamageInfo::Type = DamageGeneric

◆ VictimWeapon

std::string_view VoltMod::DamageInfo::VictimWeapon

What the victim's own player_death names, for their death panel; empty sends everyone Weapon.

Definition at line 45 of file Damage.hpp.

◆ Weapon

std::string_view VoltMod::DamageInfo::Weapon

The weapon a kill's player_death names, and so the kill feed's icon (panorama/images/icons/equipment/<Weapon>.svg); empty keeps the engine's.

Definition at line 43 of file Damage.hpp.


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