12#define REGISTER_STATUSEFFECT(id, inst) REGISTER(StatusEffects, STATUSEFFECT, id, m_id, inst)
61 returns(this.m_name, icon_path_from_HUDskin(this.m_icon));
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
int statuseffect_flags[REGISTRY_MAX(StatusEffects)]
bool m_hidden
Whether the effect is displayed in the HUD.
ATTRIB(StatusEffect, m_name, string)
float statuseffect_time[REGISTRY_MAX(StatusEffects)]
Stores times of status effects, the id being the index.
float m_lifetime
Lifetime scale for HUD progress bars.
virtual void m_persistent()
Sets the persistent flag and updates client side if returning true.
#define FOREACH(list, cond, body)
@ STATUSEFFECT_REMOVE_CLEAR
Effect is being forcibly removed without calling any additional mechanics.
@ STATUSEFFECT_REMOVE_NORMAL
Effect is being removed by a function, calls regular removal mechanics.
@ STATUSEFFECT_REMOVE_TIMEOUT
@ STATUSEFFECT_FLAG_PERSISTENT
Effect is currently being granted passively.
@ STATUSEFFECT_FLAG_ACTIVE
#define ATTRIBARRAY(cname, name, type, cnt)
#define METHOD(cname, name, prototype)
#define REGISTRY_SORT(...)
#define REGISTER_REGISTRY(id)
#define REGISTRY(id, max)
Declare a new registry.
#define REGISTRY_CHECK(id)
#define REGISTRY_DEFINE_GET(id, null)
#define STATIC_INIT(func)
during worldspawn