Xonotic
oknex.qh
Go to the documentation of this file.
1 #pragma once
2 
4 /* spawnfunc */ ATTRIB(OverkillNex, m_canonical_spawnfunc, string, "weapon_oknex");
5 /* ammotype */ ATTRIB(OverkillNex, ammo_type, Resource, RES_CELLS);
6 /* impulse */ ATTRIB(OverkillNex, impulse, int, 7);
8 /* rating */ ATTRIB(OverkillNex, bot_pickupbasevalue, float, 8000);
9 /* color */ ATTRIB(OverkillNex, wpcolor, vector, '0.5 1 1');
10 /* modelname */ ATTRIB(OverkillNex, mdl, string, "ok_sniper");
11 #ifdef GAMEQC
12 /* model */ ATTRIB(OverkillNex, m_model, Model, MDL_OK_SNIPER_ITEM);
13 #endif
14 /* crosshair */ ATTRIB(OverkillNex, w_crosshair, string, "gfx/crosshairnex");
15 /* crosshair */ ATTRIB(OverkillNex, w_crosshair_size, float, 0.65);
16 /* reticle */ ATTRIB(OverkillNex, w_reticle, string, "gfx/reticle_nex");
17 /* wepimg */ ATTRIB(OverkillNex, model2, string, "ok_weapon_rail");
18 /* refname */ ATTRIB(OverkillNex, netname, string, "oknex");
19 /* wepname */ ATTRIB(OverkillNex, m_name, string, _("Overkill Nex"));
20 
21 #define X(BEGIN, P, END, class, prefix) \
22  BEGIN(class) \
23  P(class, prefix, ammo, float, PRI) \
24  P(class, prefix, animtime, float, PRI) \
25  P(class, prefix, chargepool, float, SEC) \
26  P(class, prefix, chargepool_pause_regen, float, SEC) \
27  P(class, prefix, chargepool_regen, float, SEC) \
28  P(class, prefix, charge, float, NONE) \
29  P(class, prefix, charge_animlimit, float, NONE) \
30  P(class, prefix, charge_limit, float, NONE) \
31  P(class, prefix, charge_maxspeed, float, NONE) \
32  P(class, prefix, charge_mindmg, float, NONE) \
33  P(class, prefix, charge_minspeed, float, NONE) \
34  P(class, prefix, charge_rate, float, NONE) \
35  P(class, prefix, charge_rot_pause, float, NONE) \
36  P(class, prefix, charge_rot_rate, float, NONE) \
37  P(class, prefix, charge_shot_multiplier, float, NONE) \
38  P(class, prefix, charge_start, float, NONE) \
39  P(class, prefix, charge_velocity_rate, float, NONE) \
40  P(class, prefix, damagefalloff_forcehalflife, float, BOTH) \
41  P(class, prefix, damagefalloff_halflife, float, BOTH) \
42  P(class, prefix, damagefalloff_maxdist, float, BOTH) \
43  P(class, prefix, damagefalloff_mindist, float, BOTH) \
44  P(class, prefix, damage, float, PRI) \
45  P(class, prefix, force, float, PRI) \
46  P(class, prefix, refire, float, PRI) \
47  P(class, prefix, secondary, float, NONE) \
48  P(class, prefix, reload_ammo, float, NONE) \
49  P(class, prefix, reload_time, float, NONE) \
50  P(class, prefix, switchdelay_raise, float, NONE) \
51  P(class, prefix, switchdelay_drop, float, NONE) \
52  P(class, prefix, weaponreplace, string, NONE) \
53  P(class, prefix, weaponstart, float, NONE) \
54  P(class, prefix, weaponstartoverride, float, NONE) \
55  P(class, prefix, weaponthrowable, float, NONE) \
56  P(class, prefix, ammo, float, SEC) \
57  P(class, prefix, animtime, float, SEC) \
58  P(class, prefix, damage, float, SEC) \
59  P(class, prefix, delay, float, SEC) \
60  P(class, prefix, edgedamage, float, SEC) \
61  P(class, prefix, force, float, SEC) \
62  P(class, prefix, force_zscale, float, SEC) \
63  P(class, prefix, lifetime, float, SEC) \
64  P(class, prefix, radius, float, SEC) \
65  P(class, prefix, refire, float, SEC) \
66  P(class, prefix, refire_type, float, SEC) \
67  P(class, prefix, shotangle, float, SEC) \
68  P(class, prefix, speed, float, SEC) \
69  P(class, prefix, spread, float, SEC) \
70  END()
71  W_PROPS(X, OverkillNex, oknex)
72 #undef X
73 
74 ENDCLASS(OverkillNex)
75 REGISTER_WEAPON(OVERKILL_NEX, oknex, NEW(OverkillNex));
76 
77 
78 //SPAWNFUNC_WEAPON(weapon_oknex, WEP_OVERKILL_NEX)
const int WEP_FLAG_RELOADABLE
Definition: weapon.qh:201
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
string netname
Definition: powerups.qc:20
float bot_pickupbasevalue
Definition: bot.qh:66
const int WEP_FLAG_HIDDEN
Definition: weapon.qh:200
float impulse
Definition: progsdefs.qc:158
float spawnflags
Definition: progsdefs.qc:191
#define ATTRIB(...)
Definition: oo.qh:136
Definition: model.qh:3
vector(float skel, float bonenum) _skel_get_boneabs_hidden
#define ENDCLASS(cname)
Definition: oo.qh:269
#define X(BEGIN, P, END, class, prefix)
Definition: oknex.qh:21
const int WEP_FLAG_MUTATORBLOCKED
Definition: weapon.qh:203
fields which are explicitly/manually set are marked with "M", fields set automatically are marked wit...
Definition: weapon.qh:41
REGISTER_WEAPON(OVERKILL_NEX, oknex, NEW(OverkillNex))
const int WEP_TYPE_HITSCAN
Definition: weapon.qh:197
#define W_PROPS(L, class, prefix)
Definition: all.qh:163
string m_name
Definition: scores.qh:135