Xonotic
hagar.qh
Go to the documentation of this file.
1 #pragma once
2 
4 /* spawnfunc */ ATTRIB(Hagar, m_canonical_spawnfunc, string, "weapon_hagar");
5 /* ammotype */ ATTRIB(Hagar, ammo_type, Resource, RES_ROCKETS);
6 /* impulse */ ATTRIB(Hagar, impulse, int, 8);
8 /* rating */ ATTRIB(Hagar, bot_pickupbasevalue, float, 6000);
9 /* color */ ATTRIB(Hagar, wpcolor, vector, '1 1 0.5');
10 /* modelname */ ATTRIB(Hagar, mdl, string, "hagar");
11 #ifdef GAMEQC
12 /* model */ ATTRIB(Hagar, m_model, Model, MDL_HAGAR_ITEM);
13 /* flash mdl */ ATTRIB(Hagar, m_muzzlemodel, Model, MDL_Null);
14 /* flash eff */ ATTRIB(Hagar, m_muzzleeffect, entity, EFFECT_HAGAR_MUZZLEFLASH);
15 #endif
16 /* crosshair */ ATTRIB(Hagar, w_crosshair, string, "gfx/crosshairhagar");
17 /* crosshair */ ATTRIB(Hagar, w_crosshair_size, float, 0.8);
18 /* wepimg */ ATTRIB(Hagar, model2, string, "weaponhagar");
19 /* refname */ ATTRIB(Hagar, netname, string, "hagar");
20 /* wepname */ ATTRIB(Hagar, m_name, string, _("Hagar"));
21 
22 #define X(BEGIN, P, END, class, prefix) \
23  BEGIN(class) \
24  P(class, prefix, ammo, float, BOTH) \
25  P(class, prefix, damageforcescale, float, BOTH) \
26  P(class, prefix, damage, float, BOTH) \
27  P(class, prefix, edgedamage, float, BOTH) \
28  P(class, prefix, force, float, BOTH) \
29  P(class, prefix, health, float, BOTH) \
30  P(class, prefix, lifetime, float, PRI) \
31  P(class, prefix, lifetime_min, float, SEC) \
32  P(class, prefix, lifetime_rand, float, SEC) \
33  P(class, prefix, load, float, SEC) \
34  P(class, prefix, load_abort, float, SEC) \
35  P(class, prefix, load_animtime, float, SEC) \
36  P(class, prefix, load_hold, float, SEC) \
37  P(class, prefix, load_linkexplode, float, SEC) \
38  P(class, prefix, load_max, float, SEC) \
39  P(class, prefix, load_releasedeath, float, SEC) \
40  P(class, prefix, load_speed, float, SEC) \
41  P(class, prefix, load_spread, float, SEC) \
42  P(class, prefix, load_spread_bias, float, SEC) \
43  P(class, prefix, radius, float, BOTH) \
44  P(class, prefix, refire, float, BOTH) \
45  P(class, prefix, reload_ammo, float, NONE) \
46  P(class, prefix, reload_time, float, NONE) \
47  P(class, prefix, secondary, float, NONE) \
48  P(class, prefix, speed, float, BOTH) \
49  P(class, prefix, spread, float, BOTH) \
50  P(class, prefix, switchdelay_drop, float, NONE) \
51  P(class, prefix, switchdelay_raise, float, NONE) \
52  P(class, prefix, weaponreplace, string,NONE) \
53  P(class, prefix, weaponstartoverride, float, NONE) \
54  P(class, prefix, weaponstart, float, NONE) \
55  P(class, prefix, weaponthrowable, float, NONE) \
56  END()
57  W_PROPS(X, Hagar, hagar)
58 #undef X
59 
60 ENDCLASS(Hagar)
61 REGISTER_WEAPON(HAGAR, hagar, NEW(Hagar));
62 
63 SPAWNFUNC_WEAPON(weapon_hagar, WEP_HAGAR)
const int WEP_FLAG_RELOADABLE
Definition: weapon.qh:201
#define NEW(cname,...)
Definition: oo.qh:105
CLASS(Object) Object
Definition: oo.qh:318
#define X(BEGIN, P, END, class, prefix)
Definition: hagar.qh:22
Definition: hagar.qh:3
entity() spawn
string netname
Definition: powerups.qc:20
float bot_pickupbasevalue
Definition: bot.qh:66
const int WEP_TYPE_SPLASH
Definition: weapon.qh:196
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
const int WEP_FLAG_CANCLIMB
Definition: weapon.qh:198
REGISTER_WEAPON(HAGAR, hagar, NEW(Hagar))
#define SPAWNFUNC_WEAPON(name, weapon)
Definition: weapon.qh:143
#define ENDCLASS(cname)
Definition: oo.qh:269
const int WEP_FLAG_NORMAL
Definition: weapon.qh:199
fields which are explicitly/manually set are marked with "M", fields set automatically are marked wit...
Definition: weapon.qh:41
#define W_PROPS(L, class, prefix)
Definition: all.qh:163
string m_name
Definition: scores.qh:135