Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
ewheel.qh
Go to the documentation of this file.
1#pragma once
2
3//#define EWHEEL_FANCYPATH
4
5#include "ewheel_weapon.qh"
6
8#ifdef GAMEQC
10/* mins */ ATTRIB(EWheel, m_mins, vector, '-32 -32 0');
11/* maxs */ ATTRIB(EWheel, m_maxs, vector, '32 32 48');
12/* modelname */ ATTRIB(EWheel, mdl, string, "ewheel-base2.md3");
13/* model */ ATTRIB_STRZONE(EWheel, model, string, strcat("models/turrets/", this.mdl));
14/* head_model */ ATTRIB_STRZONE(EWheel, head_model, string, strcat("models/turrets/", "ewheel-gun1.md3"));
15#endif
16/* netname */ ATTRIB(EWheel, netname, string, "ewheel");
17/* fullname */ ATTRIB(EWheel, m_name, string, _("eWheel Turret"));
18#ifdef SVQC
19/* weapon */ ATTRIB(EWheel, m_weapon, Weapon, WEP_EWHEEL);
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, speed_fast, float) \
26 P(class, prefix, speed_slow, float) \
27 P(class, prefix, speed_slower, float) \
28 P(class, prefix, speed_stop, float) \
29 P(class, prefix, turnrate, float) \
30 END()
31 TR_PROPS(X, EWheel, ewheel)
32#undef X
33
Weapon m_weapon
Definition ewheel.qh:19
string model
Definition ewheel.qh:13
string netname
Definition ewheel.qh:16
vector m_maxs
Definition ewheel.qh:11
int spawnflags
Definition ewheel.qh:9
string m_name
Definition ewheel.qh:17
string head_model
Definition ewheel.qh:14
string mdl
Definition ewheel.qh:12
vector m_mins
Definition ewheel.qh:10
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_ROAM
roams around if not attacking
Definition turret.qh:152
const int TUR_FLAG_PLAYER
can damage players
Definition turret.qh:146
const int TUR_FLAG_MOVE
can move
Definition turret.qh:151
#define TR_PROPS(L, class, prefix)
Definition all.qh:44
#define REGISTER_TURRET(id, inst)
Definition all.qh:119