From a7e3d8f5b89c9af8ef5a8365bd36445e9affd84d Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 16 Jun 2021 09:30:51 +1000 Subject: [PATCH] Add notes to the hidden status effects and disable their icons, matching master --- qcsrc/common/monsters/monster/spider.qh | 4 ++++ qcsrc/common/mutators/mutator/buffs/all.inc | 4 ++++ .../mutator/status_effects/status_effect/spawnshield.qh | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/qcsrc/common/monsters/monster/spider.qh b/qcsrc/common/monsters/monster/spider.qh index ac4770517..943833f99 100644 --- a/qcsrc/common/monsters/monster/spider.qh +++ b/qcsrc/common/monsters/monster/spider.qh @@ -33,8 +33,12 @@ REGISTER_WEAPON(SPIDER_ATTACK, NEW(SpiderAttack)); CLASS(Webbed, StatusEffects) ATTRIB(Webbed, netname, string, "webbed"); +#if 0 + // NOTE: status effect name and icon disabled as they are not displayed + // re-enable if status effects are given a visual element ATTRIB(Webbed, m_name, string, _("Webbed")); ATTRIB(Webbed, m_icon, string, "buff_disability"); +#endif ATTRIB(Webbed, m_color, vector, '0.94 0.3 1'); ATTRIB(Webbed, m_hidden, bool, true); ATTRIB(Webbed, m_lifetime, float, 10); diff --git a/qcsrc/common/mutators/mutator/buffs/all.inc b/qcsrc/common/mutators/mutator/buffs/all.inc index 8739c3a40..72f54dcd2 100644 --- a/qcsrc/common/mutators/mutator/buffs/all.inc +++ b/qcsrc/common/mutators/mutator/buffs/all.inc @@ -77,8 +77,12 @@ BUFF_SPAWNFUNCS(disability, BUFF_DISABILITY) // status effect applied to targets by the disability buff CLASS(Disabled, StatusEffects) ATTRIB(Disabled, netname, string, "disabled"); +#if 0 + // NOTE: status effect name and icon disabled as they are not displayed + // re-enable if status effects are given a visual element ATTRIB(Disabled, m_name, string, _("Disabled")); ATTRIB(Disabled, m_icon, string, "buff_disability"); +#endif ATTRIB(Disabled, m_color, vector, '0.94 0.3 1'); ATTRIB(Disabled, m_hidden, bool, true); ATTRIB(Disabled, m_lifetime, float, 10); diff --git a/qcsrc/common/mutators/mutator/status_effects/status_effect/spawnshield.qh b/qcsrc/common/mutators/mutator/status_effects/status_effect/spawnshield.qh index af31e7b34..14db80807 100644 --- a/qcsrc/common/mutators/mutator/status_effects/status_effect/spawnshield.qh +++ b/qcsrc/common/mutators/mutator/status_effects/status_effect/spawnshield.qh @@ -4,8 +4,12 @@ CLASS(SpawnShield, StatusEffects) ATTRIB(SpawnShield, netname, string, "spawnshield"); +#if 0 + // NOTE: status effect name and icon disabled as they are not displayed + // re-enable if status effects are given a visual element ATTRIB(SpawnShield, m_name, string, _("Spawn Shield")); ATTRIB(SpawnShield, m_icon, string, "shield"); +#endif ATTRIB(SpawnShield, m_color, vector, '0.36 1 0.07'); ATTRIB(SpawnShield, m_hidden, bool, true); ATTRIB(SpawnShield, m_lifetime, float, 10); -- 2.39.2