Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
mlrs.qh
Go to the documentation of this file.
1#pragma once
2
3#include "mlrs_weapon.qh"
4
6#ifdef GAMEQC
8/* mins */ ATTRIB(MLRSTurret, m_mins, vector, '-32 -32 0');
9/* maxs */ ATTRIB(MLRSTurret, m_maxs, vector, '32 32 64');
10/* modelname */ ATTRIB(MLRSTurret, mdl, string, "base.md3");
11/* model */ ATTRIB_STRZONE(MLRSTurret, model, string, strcat("models/turrets/", this.mdl));
12/* head_model */ ATTRIB_STRZONE(MLRSTurret, head_model, string, strcat("models/turrets/", "mlrs.md3"));
13#endif
14/* netname */ ATTRIB(MLRSTurret, netname, string, "mlrs");
15/* fullname */ ATTRIB(MLRSTurret, m_name, string, _("MLRS Turret"));
16#ifdef SVQC
17/* weapon */ ATTRIB(MLRSTurret, m_weapon, Weapon, WEP_TUR_MLRS);
18#endif
19
20#define X(BEGIN, P, END, class, prefix) \
21 BEGIN(class) \
22 TR_PROPS_COMMON(P, class, prefix) \
23 END()
24 TR_PROPS(X, MLRSTurret, mlrs)
25#undef X
26
int spawnflags
Definition mlrs.qh:7
string netname
Definition mlrs.qh:14
string model
Definition mlrs.qh:11
vector m_mins
Definition mlrs.qh:8
string mdl
Definition mlrs.qh:10
Weapon m_weapon
Definition mlrs.qh:17
string head_model
Definition mlrs.qh:12
string m_name
Definition mlrs.qh:15
vector m_maxs
Definition mlrs.qh:9
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_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