]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/monsters/monster/spider.qh
Fix #2698 "arc is missing a suicide death message"
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / monsters / monster / spider.qh
1 #pragma once
2
3 #include "../all.qh"
4
5 #ifdef GAMEQC
6 MODEL(MON_SPIDER, M_Model("spider.dpm"));
7 #endif
8
9 CLASS(Spider, Monster)
10     ATTRIB(Spider, spawnflags, int, MON_FLAG_MELEE | MON_FLAG_RANGED | MON_FLAG_RIDE);
11     ATTRIB(Spider, m_mins, vector, '-18 -18 -25');
12     ATTRIB(Spider, m_maxs, vector, '18 18 30');
13 #ifdef GAMEQC
14     ATTRIB(Spider, m_model, Model, MDL_MON_SPIDER);
15 #endif
16     ATTRIB(Spider, netname, string, "spider");
17     ATTRIB(Spider, monster_name, string, _("Spider"));
18 ENDCLASS(Spider)
19
20 REGISTER_MONSTER(SPIDER, NEW(Spider));
21
22 #include <common/weapons/_all.qh>
23
24 CLASS(SpiderAttack, PortoLaunch)
25 /* flags     */ ATTRIB(SpiderAttack, spawnflags, int, WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK);
26 /* impulse   */ ATTRIB(SpiderAttack, impulse, int, 9);
27 /* refname   */ ATTRIB(SpiderAttack, netname, string, "spider");
28 /* wepname   */ ATTRIB(SpiderAttack, m_name, string, _("Spider attack"));
29 ENDCLASS(SpiderAttack)
30 REGISTER_WEAPON(SPIDER_ATTACK, NEW(SpiderAttack));
31
32 #include <common/mutators/mutator/status_effects/all.qh>
33
34 CLASS(Webbed, StatusEffects)
35     ATTRIB(Webbed, netname, string, "webbed");
36 #if 0
37     // NOTE: status effect name and icon disabled as they are not displayed
38     // re-enable if status effects are given a visual element
39     ATTRIB(Webbed, m_name, string, _("Webbed"));
40     ATTRIB(Webbed, m_icon, string, "buff_disability");
41 #endif
42     ATTRIB(Webbed, m_color, vector, '0.94 0.3 1');
43     ATTRIB(Webbed, m_hidden, bool, true);
44     ATTRIB(Webbed, m_lifetime, float, 10);
45 ENDCLASS(Webbed)
46 REGISTER_STATUSEFFECT(Webbed, NEW(Webbed));