Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
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, m_name, string, _("Hunter-Killer Turret"));
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()
28#undef X
29
int spawnflags
Definition hk.qh:8
string netname
Definition hk.qh:14
vector m_mins
Definition hk.qh:9
Weapon m_weapon
Definition hk.qh:16
string mdl
Definition hk.qh:11
string m_name
Definition hk.qh:15
string head_model
Definition hk.qh:13
string model
Definition hk.qh:12
vector m_maxs
Definition hk.qh:10
ATTRIB(Turret, m_icon, string)
icon
fields which are explicitly/manually set are marked with "M", fields set automatically are marked wit...
Definition weapon.qh:44
#define X()
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define NEW(cname,...)
Definition oo.qh:117
#define CLASS(...)
Definition oo.qh:145
#define ENDCLASS(cname)
Definition oo.qh:281
#define ATTRIB_STRZONE(cname, name, type, val)
Definition oo.qh:252
vector
Definition self.qh:92
entity this
Definition self.qh:72
const int TUR_FLAG_RECIEVETARGETS
Definition turret.qh:149
const int TUR_FLAG_PLAYER
Definition turret.qh:145
const int TUR_FLAG_SPLASH
Definition turret.qh:138
const int TUR_FLAG_MEDPROJ
Definition turret.qh:143
#define TR_PROPS(L, class, prefix)
Definition all.qh:44
#define REGISTER_TURRET(id, inst)
Definition all.qh:119