Xonotic
wyvern.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../all.qh"
4 
5 #ifdef GAMEQC
6 MODEL(MON_WYVERN, M_Model("wizard.mdl"));
7 #endif
8 
11  ATTRIB(Wyvern, m_mins, vector, '-20 -20 -58');
12  ATTRIB(Wyvern, m_maxs, vector, '20 20 20');
13 #ifdef GAMEQC
14  ATTRIB(Wyvern, m_model, Model, MDL_MON_WYVERN);
15 #endif
16  ATTRIB(Wyvern, netname, string, "wyvern");
17  ATTRIB(Wyvern, monster_name, string, _("Wyvern"));
18 ENDCLASS(Wyvern)
19 
20 REGISTER_MONSTER(WYVERN, NEW(Wyvern));
21 
22 #include <common/weapons/_all.qh>
23 
25 /* flags */ ATTRIB(WyvernAttack, spawnflags, int, WEP_FLAG_HIDDEN | WEP_FLAG_SPECIALATTACK);
26 /* impulse */ ATTRIB(WyvernAttack, impulse, int, 9);
27 /* refname */ ATTRIB(WyvernAttack, netname, string, "wyvern");
28 /* wepname */ ATTRIB(WyvernAttack, m_name, string, _("Wyvern attack"));
29 ENDCLASS(WyvernAttack)
30 REGISTER_WEAPON(WYVERN_ATTACK, NEW(WyvernAttack));
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
REGISTER_MONSTER(WYVERN, NEW(Wyvern))
const int MON_FLAG_RANGED
Definition: monster.qh:9
string netname
Definition: powerups.qc:20
const int MONSTER_SIZE_BROKEN
Definition: monster.qh:7
const int WEP_FLAG_HIDDEN
Definition: weapon.qh:200
const int MONSTER_TYPE_FLY
Definition: monster.qh:5
string M_Model(string m_mdl)
Definition: all.qc:3
float impulse
Definition: progsdefs.qc:158
float spawnflags
Definition: progsdefs.qc:191
REGISTER_WEAPON(WYVERN_ATTACK, NEW(WyvernAttack))
#define ATTRIB(...)
Definition: oo.qh:136
const int MON_FLAG_RIDE
Definition: monster.qh:12
Definition: model.qh:3
#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
#define ENDCLASS(cname)
Definition: oo.qh:269
Definition: wyvern.qh:9
string m_name
Definition: scores.qh:135