]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/turrets/turret/hk.qh
Merge branch 'master' into Mario/qc_camstuff
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / turret / hk.qh
1 #pragma once
2
3 //#define TURRET_DEBUG_HK
4
5 #include "hk_weapon.qh"
6
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);
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));