]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mutators/mutator/status_effects/status_effect/stunned.qh
New electricity effect
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / status_effects / status_effect / stunned.qh
1 #pragma once
2
3 #include <common/mutators/mutator/status_effects/all.qh>
4
5 #ifdef SVQC
6 //void Shock_ApplyDamage(entity e);
7 #endif
8 #ifdef GAMEQC
9 SOUND(Stunned_Remove, "onslaught/ons_spark1");
10 #endif
11 CLASS(Stunned, StatusEffects)
12     ATTRIB(Stunned, netname, string, "stunned");
13 #if 0
14     // NOTE: status effect name and icon disabled as they are not displayed
15     // re-enable if status effects are given a visual element
16     ATTRIB(Stunned, m_name, string, _("Stunned"));
17     ATTRIB(Stunned, m_icon, string, "buff_disability");
18 #endif
19     ATTRIB(Stunned, m_color, vector, '0.67 0.84 1');
20     ATTRIB(Stunned, m_hidden, bool, true);
21     ATTRIB(Stunned, m_lifetime, float, 10);
22 #ifdef GAMEQC
23     ATTRIB(Stunned, m_sound_rm, Sound, SND_Stunned_Remove);
24 #endif
25 ENDCLASS(Stunned)
26 REGISTER_STATUSEFFECT(Stunned, NEW(Stunned));