Definition at line 57 of file strength.qh.
◆ ATTRIB() [1/2]
◆ ATTRIB() [2/2]
◆ m_active()
| void StatusEffect::m_active |
( |
| ) |
|
|
virtualinherited |
◆ m_apply()
| void StatusEffect::m_apply |
( |
| ) |
|
|
virtualinherited |
◆ m_persistent()
| virtual void StatusEffect::m_persistent |
( |
| ) |
|
|
inlinevirtualinherited |
◆ m_remove()
| void StatusEffect::m_remove |
( |
| ) |
|
|
virtualinherited |
Definition at line 40 of file sv_status_effects.qc.
41{
42 StatusEffect data = actor.statuseffects;
43 if(!data)
44 return;
45
51}
int statuseffect_flags[REGISTRY_MAX(StatusEffects)]
float statuseffect_time[REGISTRY_MAX(StatusEffects)]
Stores times of status effects, the id being the index.
@ STATUSEFFECT_REMOVE_NORMAL
Effect is being removed by a function, calls regular removal mechanics.
@ STATUSEFFECT_FLAG_PERSISTENT
Effect is currently being granted passively.
#define sound(e, c, s, v, a)
References ATTEN_NORM, CH_TRIGGER, entity(), m_id, m_remove(), m_sound_rm, sound, STATUSEFFECT_FLAG_PERSISTENT, statuseffect_flags, STATUSEFFECT_REMOVE_NORMAL, statuseffect_time, StatusEffects_update(), and VOL_BASE.
Referenced by m_remove().
◆ m_tick()
| void StatusEffect::m_tick |
( |
| ) |
|
|
virtualinherited |
Definition at line 13 of file cl_status_effects.qc.
14{
16 return;
17
18 float currentTime =
bound(0, actor.statuseffect_time[
this.m_id] -
time, 99);
20}
bool m_hidden
Whether the effect is displayed in the HUD.
float m_lifetime
Lifetime scale for HUD progress bars.
void addPowerupItem(string name, string icon, vector color, float currentTime, float lifeTime, bool isInfinite)
bool autocvar__hud_configure
References addPowerupItem(), autocvar__hud_configure, bound(), entity(), m_color, m_hidden, m_lifetime, m_name, m_tick(), STATUSEFFECT_FLAG_PERSISTENT, and time.
Referenced by m_tick().
◆ m_color
| vector StatusEffect::m_color = '1 1 1' |
|
inherited |
◆ m_hidden
Whether the effect is displayed in the HUD.
Definition at line 39 of file all.qh.
Referenced by m_tick().
◆ m_icon
| string StrengthStatusEffect::m_icon = "strength" |
◆ m_id
| int StatusEffect::m_id = 0 |
|
inherited |
◆ m_lifetime
| float StatusEffect::m_lifetime = 30 |
|
inherited |
Lifetime scale for HUD progress bars.
Definition at line 41 of file all.qh.
Referenced by m_tick().
◆ m_name
| string StrengthStatusEffect::m_name = _("Strength") |
◆ m_sound
| Sound StatusEffect::m_sound = SND_Null |
|
inherited |
◆ m_sound_rm
| Sound PowerupStatusEffect::m_sound_rm = SND_POWEROFF |
|
inherited |
◆ netname
| string StrengthStatusEffect::netname = "strength" |
◆ statuseffect_flags
◆ statuseffect_time
The documentation for this class was generated from the following file: