Xonotic
okhmg.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/weapons/all.qh>
4 
6 /* spawnfunc */ ATTRIB(OverkillHeavyMachineGun, m_canonical_spawnfunc, string, "weapon_okhmg");
7 /* ammotype */ ATTRIB(OverkillHeavyMachineGun, ammo_type, Resource, RES_BULLETS);
8 /* impulse */ ATTRIB(OverkillHeavyMachineGun, impulse, int, 3);
10 /* rating */ ATTRIB(OverkillHeavyMachineGun, bot_pickupbasevalue, float, 10000);
11 /* color */ ATTRIB(OverkillHeavyMachineGun, wpcolor, vector, '0.5 0.5 0');
12 /* modelname */ ATTRIB(OverkillHeavyMachineGun, mdl, string, "ok_hmg");
13 #ifdef GAMEQC
14 /* model */ ATTRIB(OverkillHeavyMachineGun, m_model, Model, MDL_HMG_ITEM);
15 /* flash mdl */ ATTRIB(OverkillHeavyMachineGun, m_muzzlemodel, Model, MDL_MACHINEGUN_MUZZLEFLASH);
16 /* flash eff */ ATTRIB(OverkillHeavyMachineGun, m_muzzleeffect, entity, EFFECT_MACHINEGUN_MUZZLEFLASH);
17 #endif
18 /* crosshair */ ATTRIB(OverkillHeavyMachineGun, w_crosshair, string, "gfx/crosshairuzi");
19 /* crosshair */ ATTRIB(OverkillHeavyMachineGun, w_crosshair_size, float, 0.6);
20 /* wepimg */ ATTRIB(OverkillHeavyMachineGun, model2, string, "weaponhmg");
21 /* refname */ ATTRIB(OverkillHeavyMachineGun, netname, string, "okhmg");
22 /* wepname */ ATTRIB(OverkillHeavyMachineGun, m_name, string, _("Overkill Heavy Machine Gun"));
23 
24 #define X(BEGIN, P, END, class, prefix) \
25  BEGIN(class) \
26  P(class, prefix, ammo, float, PRI) \
27  P(class, prefix, damage, float, PRI) \
28  P(class, prefix, force, float, PRI) \
29  P(class, prefix, refire, float, PRI) \
30  P(class, prefix, solidpenetration, float, PRI) \
31  P(class, prefix, spread_add, float, PRI) \
32  P(class, prefix, spread_max, float, PRI) \
33  P(class, prefix, spread_min, float, PRI) \
34  P(class, prefix, ammo, float, SEC) \
35  P(class, prefix, animtime, float, SEC) \
36  P(class, prefix, damage, float, SEC) \
37  P(class, prefix, delay, float, SEC) \
38  P(class, prefix, edgedamage, float, SEC) \
39  P(class, prefix, force, float, SEC) \
40  P(class, prefix, force_zscale, float, SEC) \
41  P(class, prefix, lifetime, float, SEC) \
42  P(class, prefix, radius, float, SEC) \
43  P(class, prefix, refire, float, SEC) \
44  P(class, prefix, refire_type, float, SEC) \
45  P(class, prefix, shotangle, float, SEC) \
46  P(class, prefix, speed, float, SEC) \
47  P(class, prefix, spread, float, SEC) \
48  P(class, prefix, reload_ammo, float, NONE) \
49  P(class, prefix, reload_time, float, NONE) \
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, OverkillHeavyMachineGun, okhmg)
58 #undef X
59 
60 ENDCLASS(OverkillHeavyMachineGun)
61 REGISTER_WEAPON(OVERKILL_HMG, okhmg, NEW(OverkillHeavyMachineGun));
62 
63 //SPAWNFUNC_WEAPON(weapon_okhmg, WEP_OVERKILL_HMG)
64 //SPAWNFUNC_WEAPON(weapon_hmg, WEP_OVERKILL_HMG)
const int WEP_FLAG_PENETRATEWALLS
Definition: weapon.qh:208
const int WEP_FLAG_RELOADABLE
Definition: weapon.qh:201
#define NEW(cname,...)
Definition: oo.qh:105
#define X(BEGIN, P, END, class, prefix)
Definition: okhmg.qh:24
CLASS(Object) Object
Definition: oo.qh:318
REGISTER_WEAPON(OVERKILL_HMG, okhmg, NEW(OverkillHeavyMachineGun))
entity() spawn
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
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
const int WEP_TYPE_HITSCAN
Definition: weapon.qh:197
#define W_PROPS(L, class, prefix)
Definition: all.qh:163
const int WEP_FLAG_SUPERWEAPON
Definition: weapon.qh:202
string m_name
Definition: scores.qh:135