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
8#ifdef GAMEQC
10/* mins */ ATTRIB(HunterKiller, m_mins, vector, '-32 -32 0');
11/* maxs */ ATTRIB(HunterKiller, m_maxs, vector, '32 32 64');
12/* modelname */ ATTRIB(HunterKiller, mdl, string, "base.md3");
13/* model */ ATTRIB_STRZONE(HunterKiller, model, string, strcat("models/turrets/", this.mdl));
14/* head_model */ ATTRIB_STRZONE(HunterKiller, head_model, string, strcat("models/turrets/", "hk.md3"));
15#endif
16/* netname */ ATTRIB(HunterKiller, netname, string, "hk");
17/* fullname */ ATTRIB(HunterKiller, m_name, string, _("Hunter-Killer Turret"));
18#ifdef SVQC
19/* weapon */ ATTRIB(HunterKiller, m_weapon, Weapon, WEP_HK);
20#endif
21
22#define X(BEGIN, P, END, class, prefix) \
23 BEGIN(class) \
24 TR_PROPS_COMMON(P, class, prefix) \
25 P(class, prefix, shot_speed_accel, float) \
26 P(class, prefix, shot_speed_accel2, float) \
27 P(class, prefix, shot_speed_decel, float) \
28 P(class, prefix, shot_speed_max, float) \
29 P(class, prefix, shot_speed_turnrate, float) \
30 END()
32#undef X
33
int spawnflags
Definition hk.qh:9
string netname
Definition hk.qh:16
vector m_mins
Definition hk.qh:10
Weapon m_weapon
Definition hk.qh:19
string mdl
Definition hk.qh:12
string m_name
Definition hk.qh:17
string head_model
Definition hk.qh:14
string model
Definition hk.qh:13
vector m_maxs
Definition hk.qh:11
fields which are explicitly/manually set are marked with "M", fields set automatically are marked wit...
Definition weapon.qh:42
#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(...)
Definition oo.qh:148
#define ATTRIB_STRZONE(cname, name, type, val)
Definition oo.qh:252
vector
Definition self.qh:92
const int TUR_FLAG_RECIEVETARGETS
can recieve targets from external sources
Definition turret.qh:150
const int TUR_FLAG_PLAYER
can damage players
Definition turret.qh:146
const int TUR_FLAG_SPLASH
can deal splash damage
Definition turret.qh:139
const int TUR_FLAG_MEDPROJ
turret fires medium projectiles
Definition turret.qh:144
#define TR_PROPS(L, class, prefix)
Definition all.qh:44
#define REGISTER_TURRET(id, inst)
Definition all.qh:119