110 void HookDeathEvents();
Every entity's damage, from CBaseEntity::TakeDamageOld, and a way to deal it.
Event< DamageHit & > Before
void Apply(const Entity &victim, const DamageInfo &info)
Damage(const Damage &)=delete
Damage & operator=(const Damage &)=delete
runtime.Entities: finds and creates entities. Everything it returns is valid for this frame only; see...
A live entity, valid for this frame only.
A multicast signal with a fixed handler signature: the one way to subscribe in VoltMod.
Creates, fires and listens to game events.
A hook before-handler's verdict.
An engine hook that exists only while one of its events has handlers.
Owns one registration and releases it on destruction.
constexpr uint32_t DamageCrush
constexpr uint32_t DamageBullet
constexpr uint32_t DamageFall
constexpr uint32_t DamageHeadshot
constexpr uint32_t DamageBurn
constexpr uint32_t DamageShock
constexpr uint32_t DamageSlash
constexpr uint32_t DamageClub
constexpr uint32_t DamageGeneric
constexpr uint32_t DamageBlast
static std::string ReadFile(const std::filesystem::path &path)
std::expected< void, Error > Status
std::expected< T, Error > Result
const EntityRef Inflictor
uint32_t Type
Damage type bits (DamageTypes_t); combine with |. bits
EntityRef Inflictor
what did it, such as a grenade or a turret; empty means the attacker
uint32_t Type
Damage type bits (DamageTypes_t); combine with |. bits
EntityRef Attacker
credited in the kill feed and player_death
std::string_view VictimWeapon
Centralized holder for all HL2SDK interface pointers.