Xonotic
spider.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../all.qh"
4 
5 #ifdef GAMEQC
6 MODEL(MON_SPIDER, M_Model("spider.dpm"));
7 #endif
8 
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 
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 
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));
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
const int MON_FLAG_RANGED
Definition: monster.qh:9
Definition: spider.qh:9
string netname
Definition: powerups.qc:20
const int WEP_FLAG_HIDDEN
Definition: weapon.qh:200
string M_Model(string m_mdl)
Definition: all.qc:3
float impulse
Definition: progsdefs.qc:158
float spawnflags
Definition: progsdefs.qc:191
#define ATTRIB(...)
Definition: oo.qh:136
REGISTER_WEAPON(SPIDER_ATTACK, NEW(SpiderAttack))
const int MON_FLAG_RIDE
Definition: monster.qh:12
Definition: spider.qh:34
Definition: model.qh:3
REGISTER_MONSTER(SPIDER, NEW(Spider))
#define MODEL(name, path)
Definition: all.qh:8
vector(float skel, float bonenum) _skel_get_boneabs_hidden
const int WEP_FLAG_SPECIALATTACK
Definition: weapon.qh:211
const int MON_FLAG_MELEE
Definition: monster.qh:10
#define ENDCLASS(cname)
Definition: oo.qh:269
REGISTER_STATUSEFFECT(Webbed, NEW(Webbed))
string m_name
Definition: scores.qh:135