Xonotic
hk.qh
Go to the documentation of this file.
1 #pragma once
2 
3 //#define TURRET_DEBUG_HK
4 
5 #include "hk_weapon.qh"
6 
9 /* mins */ ATTRIB(HunterKiller, m_mins, vector, '-32 -32 0');
10 /* maxs */ ATTRIB(HunterKiller, m_maxs, vector, '32 32 64');
11 /* modelname */ ATTRIB(HunterKiller, mdl, string, "base.md3");
12 /* model */ ATTRIB_STRZONE(HunterKiller, model, string, strcat("models/turrets/", this.mdl));
13 /* head_model */ ATTRIB_STRZONE(HunterKiller, head_model, string, strcat("models/turrets/", "hk.md3"));
14 /* netname */ ATTRIB(HunterKiller, netname, string, "hk");
15 /* fullname */ ATTRIB(HunterKiller, turret_name, string, _("Hunter-Killer Turret"));
16  ATTRIB(HunterKiller, m_weapon, Weapon, WEP_HK);
17 
18 #define X(BEGIN, P, END, class, prefix) \
19  BEGIN(class) \
20  TR_PROPS_COMMON(P, class, prefix) \
21  P(class, prefix, shot_speed_accel, float) \
22  P(class, prefix, shot_speed_accel2, float) \
23  P(class, prefix, shot_speed_decel, float) \
24  P(class, prefix, shot_speed_max, float) \
25  P(class, prefix, shot_speed_turnrate, float) \
26  END()
27  TR_PROPS(X, HunterKiller, hk)
28 #undef X
29 
30 ENDCLASS(HunterKiller)
31 REGISTER_TURRET(HK, NEW(HunterKiller));
#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: hk.qh:18
#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
REGISTER_TURRET(HK, NEW(HunterKiller))
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_RECIEVETARGETS
Definition: turret.qh:132
#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