Xonotic
All Classes Files Functions Variables Typedefs Enumerator Macros Pages
mlrs.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "mlrs_weapon.qh"
4 
7 /* mins */ ATTRIB(MLRSTurret, m_mins, vector, '-32 -32 0');
8 /* maxs */ ATTRIB(MLRSTurret, m_maxs, vector, '32 32 64');
9 /* modelname */ ATTRIB(MLRSTurret, mdl, string, "base.md3");
10 /* model */ ATTRIB_STRZONE(MLRSTurret, model, string, strcat("models/turrets/", this.mdl));
11 /* head_model */ ATTRIB_STRZONE(MLRSTurret, head_model, string, strcat("models/turrets/", "mlrs.md3"));
12 /* netname */ ATTRIB(MLRSTurret, netname, string, "mlrs");
13 /* fullname */ ATTRIB(MLRSTurret, turret_name, string, _("MLRS Turret"));
14  ATTRIB(MLRSTurret, m_weapon, Weapon, WEP_TUR_MLRS);
15 
16 #define X(BEGIN, P, END, class, prefix) \
17  BEGIN(class) \
18  TR_PROPS_COMMON(P, class, prefix) \
19  END()
20  TR_PROPS(X, MLRSTurret, mlrs)
21 #undef X
22 
23 ENDCLASS(MLRSTurret)
24 REGISTER_TURRET(MLRS, NEW(MLRSTurret));
#define NEW(cname,...)
Definition: oo.qh:105
const int TUR_FLAG_SPLASH
Definition: turret.qh:121
CLASS(Object) Object
Definition: oo.qh:318
#define X(BEGIN, P, END, class, prefix)
Definition: mlrs.qh:16
#define TR_PROPS(L, class, prefix)
Definition: all.qh:44
string netname
Definition: powerups.qc:20
const int TUR_FLAG_PLAYER
Definition: turret.qh:128
float spawnflags
Definition: progsdefs.qc:191
string model
Definition: csprogsdefs.qc:108
#define ATTRIB(...)
Definition: oo.qh:136
const int TUR_FLAG_MEDPROJ
Definition: turret.qh:126
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
entity this
Definition: self.qh:83
vector(float skel, float bonenum) _skel_get_boneabs_hidden
REGISTER_TURRET(MLRS, NEW(MLRSTurret))
#define ENDCLASS(cname)
Definition: oo.qh:269
#define ATTRIB_STRZONE(cname, name, type, val)
Definition: oo.qh:240
fields which are explicitly/manually set are marked with "M", fields set automatically are marked wit...
Definition: weapon.qh:41
Definition: turret.qh:5