6 if(!actor.statuseffects)
14 .int flg = statuseffect_flags[this.
m_id];
15 int oldflag = data.(flg);
17 if(oldflag != data.(flg))
22 if(
time > actor.statuseffects.statuseffect_time[
this.m_id])
31 if(!actor.statuseffects)
35 actor.statuseffects.statuseffect_time[this.
m_id] = eff_time;
36 actor.statuseffects.statuseffect_flags[this.
m_id] = eff_flags;
61 if (it.move_movetype == MOVETYPE_NOCLIP || !it.statuseffects) continue;
62 StatusEffects_tick(it);
85 if(player.statuseffects && player.statuseffects.owner == player)
99 if(player.statuseffects && player.statuseffects.owner == player)
110 if(player.statuseffects && player.statuseffects.owner == player)
118 StatusEffects_removeall(it, STATUSEFFECT_REMOVE_NORMAL);
119 StatusEffects_clearall(it.statuseffects);
120 StatusEffects_update(it);
130 client.statuseffects = spectatee.statuseffects;
137 if(player.statuseffects && player.statuseffects.owner == player)
145 player.statuseffects =
NULL;
#define MUTATOR_HOOKFUNCTION(...)
#define BITSET(var, mask, flag)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
int statuseffect_flags[REGISTRY_MAX(StatusEffects)]
float statuseffect_time[REGISTRY_MAX(StatusEffects)]
Stores times of status effects, the id being the index.
IntrusiveList g_damagedbycontents
#define IL_EACH(this, cond, body)
#define PutClientInServer
@ 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 METHOD(cname, name, prototype)
void SpectateCopy(entity this, entity spectatee)
#define sound(e, c, s, v, a)
void StatusEffects_removeall(entity actor, int removal_type)
void StatusEffects_new(entity this)
void StatusEffects_update(entity e)
void StatusEffects_delete(entity e)
void StatusEffects_clearall(entity store)
#define FOREACH_CLIENT(cond, body)