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
9/* mins */ ATTRIB(EWheel, m_mins, vector, '-32 -32 0');
10/* maxs */ ATTRIB(EWheel, m_maxs, vector, '32 32 48');
11/* modelname */ ATTRIB(EWheel, mdl, string, "ewheel-base2.md3");
12/* model */ ATTRIB_STRZONE(EWheel, model, string, strcat("models/turrets/", this.mdl));
13/* head_model */ ATTRIB_STRZONE(EWheel, head_model, string, strcat("models/turrets/", "ewheel-gun1.md3"));
14/* netname */ ATTRIB(EWheel, netname, string, "ewheel");
15/* fullname */ ATTRIB(EWheel, m_name, string, _("eWheel Turret"));
16 ATTRIB(EWheel, m_weapon, Weapon, WEP_EWHEEL);
17
18#define X(BEGIN, P, END, class, prefix) \
19 BEGIN(class) \
20 TR_PROPS_COMMON(P, class, prefix) \
21 P(class, prefix, speed_fast, float) \
22 P(class, prefix, speed_slow, float) \
23 P(class, prefix, speed_slower, float) \
24 P(class, prefix, speed_stop, float) \
25 P(class, prefix, turnrate, float) \
26 END()
27 TR_PROPS(X, EWheel, ewheel)
28#undef X
29
Weapon m_weapon
Definition ewheel.qh:16
string model
Definition ewheel.qh:12
string netname
Definition ewheel.qh:14
vector m_maxs
Definition ewheel.qh:10
int spawnflags
Definition ewheel.qh:8
string m_name
Definition ewheel.qh:15
string head_model
Definition ewheel.qh:13
string mdl
Definition ewheel.qh:11
vector m_mins
Definition ewheel.qh:9
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_ROAM
Definition turret.qh:151
const int TUR_FLAG_PLAYER
Definition turret.qh:145
const int TUR_FLAG_MOVE
Definition turret.qh:150
#define TR_PROPS(L, class, prefix)
Definition all.qh:44
#define REGISTER_TURRET(id, inst)
Definition all.qh:119