|
VoltMod
C++23 framework for CS2 server plugins
|
#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 |
Who deals the damage, how much, and of which kind.
Definition at line 35 of file Damage.hpp.
| float VoltMod::DamageInfo::Amount = 0.0f |
Definition at line 39 of file Damage.hpp.
| EntityRef VoltMod::DamageInfo::Attacker |
credited in the kill feed and player_death
Definition at line 37 of file Damage.hpp.
| 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.
| uint32_t VoltMod::DamageInfo::Type = DamageGeneric |
Damage type bits (DamageTypes_t); combine with |. bits
Definition at line 40 of file Damage.hpp.
| 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.
| 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.