F4MP/tiltedcode/Code/client/Events/HealthChangeEvent.h
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

21 lines
453 B
C

#pragma once
struct TESObjectREFR;
/**
* @brief Dispatched when a local or remote actor's health changes locally.
*
* The exact hueristics for what hit is registered by who can be found in
* the Actor::HookDamageActor() hook.
*/
struct HealthChangeEvent
{
HealthChangeEvent(uint32_t aHitteeId, float aDeltaHealth)
: HitteeId(aHitteeId)
, DeltaHealth(aDeltaHealth)
{
}
uint32_t HitteeId;
float DeltaHealth;
};