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

#include <Damage.hpp>

Public Attributes

Entity Victim
 
const EntityRef Attacker
 
const EntityRef Inflictor
 
float Amount = 0.0f
 
uint32_t Type = DamageGeneric
 Damage type bits (DamageTypes_t); combine with |. bits
 
bool Blocked = false
 

Detailed Description

One hit on its way to the engine, as a Damage::Before handler sees it.

Definition at line 49 of file Damage.hpp.

Member Data Documentation

◆ Amount

float VoltMod::DamageHit::Amount = 0.0f

Edits to Amount and Type reach the engine.

Definition at line 56 of file Damage.hpp.

◆ Attacker

const EntityRef VoltMod::DamageHit::Attacker

Read-only: the engine keeps its own copy of who is credited.

Definition at line 53 of file Damage.hpp.

◆ Blocked

bool VoltMod::DamageHit::Blocked = false

Set to cancel the hit; nothing is dealt and no damage event fires.

Definition at line 59 of file Damage.hpp.

◆ Inflictor

const EntityRef VoltMod::DamageHit::Inflictor

Definition at line 54 of file Damage.hpp.

◆ Type

uint32_t VoltMod::DamageHit::Type = DamageGeneric

◆ Victim

Entity VoltMod::DamageHit::Victim

Definition at line 51 of file Damage.hpp.


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