Xonotic
plasma_dual.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "plasma_weapon.qh"
4 
7 /* refname */ ATTRIB(PlasmaDualAttack, netname, string, "turret_plasma_dual");
8 /* wepname */ ATTRIB(PlasmaDualAttack, m_name, string, _("Dual plasma"));
9 ENDCLASS(PlasmaDualAttack)
10 REGISTER_WEAPON(PLASMA_DUAL, NEW(PlasmaDualAttack));
11 
13 /* spawnflags */ ATTRIB(DualPlasmaTurret, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER);
14 /* mins */ ATTRIB(DualPlasmaTurret, m_mins, vector, '-32 -32 0');
15 /* maxs */ ATTRIB(DualPlasmaTurret, m_maxs, vector, '32 32 64');
16 /* modelname */ ATTRIB(DualPlasmaTurret, mdl, string, "base.md3");
17 /* model */ ATTRIB_STRZONE(DualPlasmaTurret, model, string, strcat("models/turrets/", this.mdl));
18 /* head_model */ ATTRIB_STRZONE(DualPlasmaTurret, head_model, string, strcat("models/turrets/", "plasmad.md3"));
19 /* netname */ ATTRIB(DualPlasmaTurret, netname, string, "plasma_dual");
20 /* fullname */ ATTRIB(DualPlasmaTurret, turret_name, string, _("Dual Plasma Cannon"));
21  ATTRIB(DualPlasmaTurret, m_weapon, Weapon, WEP_PLASMA_DUAL);
22 
23 #define X(BEGIN, P, END, class, prefix) \
24  BEGIN(class) \
25  TR_PROPS_COMMON(P, class, prefix) \
26  END()
27  TR_PROPS(X, DualPlasmaTurret, plasma_dual)
28 #undef X
29 
30 ENDCLASS(DualPlasmaTurret)
31 REGISTER_TURRET(PLASMA_DUAL, NEW(DualPlasmaTurret));
#define NEW(cname,...)
Definition: oo.qh:105
const int TUR_FLAG_SPLASH
Definition: turret.qh:121
CLASS(Object) Object
Definition: oo.qh:318
#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
#define X(BEGIN, P, END, class, prefix)
Definition: plasma_dual.qh:23
const int WEP_FLAG_HIDDEN
Definition: weapon.qh:200
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"))
REGISTER_WEAPON(PLASMA_DUAL, NEW(PlasmaDualAttack))
REGISTER_TURRET(PLASMA_DUAL, NEW(DualPlasmaTurret))
entity this
Definition: self.qh:83
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
#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
string m_name
Definition: scores.qh:135