Xonotic
ewheel.qh
Go to the documentation of this file.
1 #pragma once
2 
3 //#define EWHEEL_FANCYPATH
4 
5 #include "ewheel_weapon.qh"
6 
9 /* mins */ ATTRIB(EWheel, m_mins, vector, '-32 -32 0');
10 /* maxs */ ATTRIB(EWheel, m_maxs, vector, '32 32 48');
11 /* modelname */ ATTRIB(EWheel, mdl, string, "ewheel-base2.md3");
12 /* model */ ATTRIB_STRZONE(EWheel, model, string, strcat("models/turrets/", this.mdl));
13 /* head_model */ ATTRIB_STRZONE(EWheel, head_model, string, strcat("models/turrets/", "ewheel-gun1.md3"));
14 /* netname */ ATTRIB(EWheel, netname, string, "ewheel");
15 /* fullname */ ATTRIB(EWheel, turret_name, string, _("eWheel Turret"));
16  ATTRIB(EWheel, m_weapon, Weapon, WEP_EWHEEL);
17 
18 #define X(BEGIN, P, END, class, prefix) \
19  BEGIN(class) \
20  TR_PROPS_COMMON(P, class, prefix) \
21  P(class, prefix, speed_fast, float) \
22  P(class, prefix, speed_slow, float) \
23  P(class, prefix, speed_slower, float) \
24  P(class, prefix, speed_stop, float) \
25  P(class, prefix, turnrate, float) \
26  END()
27  TR_PROPS(X, EWheel, ewheel)
28 #undef X
29 
30 ENDCLASS(EWheel)
31 REGISTER_TURRET(EWHEEL, NEW(EWheel));
#define NEW(cname,...)
Definition: oo.qh:105
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
float spawnflags
Definition: progsdefs.qc:191
string model
Definition: csprogsdefs.qc:108
#define ATTRIB(...)
Definition: oo.qh:136
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
const int TUR_FLAG_MOVE
Definition: turret.qh:133
#define ENDCLASS(cname)
Definition: oo.qh:269
const int TUR_FLAG_ROAM
Definition: turret.qh:134
#define X(BEGIN, P, END, class, prefix)
Definition: ewheel.qh:18
#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
REGISTER_TURRET(EWHEEL, NEW(EWheel))
Definition: ewheel.qh:7
Definition: turret.qh:5