Xonotic
mage.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../all.qh"
4 
5 #ifdef GAMEQC
6 MODEL(MON_MAGE, M_Model("mage.dpm"));
7 #endif
8 
11  ATTRIB(Mage, m_mins, vector, '-36 -36 -24');
12  ATTRIB(Mage, m_maxs, vector, '36 36 50');
13 #ifdef GAMEQC
14  ATTRIB(Mage, m_model, Model, MDL_MON_MAGE);
15 #endif
16  ATTRIB(Mage, netname, string, "mage");
17  ATTRIB(Mage, monster_name, string, _("Mage"));
18 ENDCLASS(Mage)
19 
20 REGISTER_MONSTER(MAGE, NEW(Mage));
21 
22 #include <common/weapons/_all.qh>
23 #include <common/items/_mod.qh>
24 
26 /* flags */ ATTRIB(MageSpike, spawnflags, int, WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK);
27 /* impulse */ ATTRIB(MageSpike, impulse, int, 9);
28 /* refname */ ATTRIB(MageSpike, netname, string, "magespike");
29 /* wepname */ ATTRIB(MageSpike, m_name, string, _("Mage spike"));
30 ENDCLASS(MageSpike)
31 REGISTER_WEAPON(MAGE_SPIKE, NEW(MageSpike));
#define NEW(cname,...)
Definition: oo.qh:105
Definition: mage.qh:9
CLASS(Object) Object
Definition: oo.qh:318
const int MON_FLAG_RANGED
Definition: monster.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
Definition: model.qh:3
REGISTER_MONSTER(MAGE, NEW(Mage))
#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_WEAPON(MAGE_SPIKE, NEW(MageSpike))
string m_name
Definition: scores.qh:135