3 //#define TURRET_DEBUG_HK
5 #include "hk_weapon.qh"
7 CLASS(HunterKiller, Turret)
8 /* spawnflags */ ATTRIB(HunterKiller, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER | TUR_FLAG_RECIEVETARGETS);
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);
18 #define X(BEGIN, P, END, class, prefix) \
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) \
27 TR_PROPS(X, HunterKiller, hk)
30 ENDCLASS(HunterKiller)
31 REGISTER_TURRET(HK, NEW(HunterKiller));