]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/monsters/monster/spider.qh
908f0f942070cd758715adbf72024759e248d62d
[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_MUTATORBLOCKED);
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));