]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mutators/mutator/overkill/okshotgun.qh
Restore parity to the weapon balance configs
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / overkill / okshotgun.qh
1 #pragma once
2
3 CLASS(OverkillShotgun, Weapon)
4 /* spawnfunc */ ATTRIB(OverkillShotgun, m_canonical_spawnfunc, string, "weapon_okshotgun");
5 /* ammotype  */ ATTRIB(OverkillShotgun, ammo_type, int, RES_SHELLS);
6 /* impulse   */ ATTRIB(OverkillShotgun, impulse, int, 2);
7 /* flags     */ ATTRIB(OverkillShotgun, spawnflags, int, WEP_FLAG_HIDDEN | WEP_FLAG_RELOADABLE | WEP_FLAG_NORMAL | WEP_TYPE_HITSCAN | WEP_FLAG_MUTATORBLOCKED);
8 /* rating    */ ATTRIB(OverkillShotgun, bot_pickupbasevalue, float, 6000);
9 /* color     */ ATTRIB(OverkillShotgun, wpcolor, vector, '0.5 0.25 0');
10 /* modelname */ ATTRIB(OverkillShotgun, mdl, string, "ok_shotgun");
11 #ifdef GAMEQC
12 /* model     */ ATTRIB(OverkillShotgun, m_model, Model, MDL_OK_SHOTGUN_ITEM);
13 #endif
14 /* crosshair */ ATTRIB(OverkillShotgun, w_crosshair, string, "gfx/crosshairshotgun");
15 /* crosshair */ ATTRIB(OverkillShotgun, w_crosshair_size, float, 0.65);
16 /* wepimg    */ ATTRIB(OverkillShotgun, model2, string, "ok_weapon_shotgun");
17 /* refname   */ ATTRIB(OverkillShotgun, netname, string, "okshotgun");
18 /* wepname   */ ATTRIB(OverkillShotgun, m_name, string, _("Overkill Shotgun"));
19
20 #define X(BEGIN, P, END, class, prefix) \
21         BEGIN(class) \
22                 P(class, prefix, ammo, float, PRI) \
23                 P(class, prefix, animtime, float, PRI) \
24                 P(class, prefix, bot_range, float, PRI) \
25                 P(class, prefix, bullets, float, PRI) \
26                 P(class, prefix, damage, float, PRI) \
27                 P(class, prefix, force, float, PRI) \
28                 P(class, prefix, refire, float, PRI) \
29                 P(class, prefix, solidpenetration, float, PRI) \
30                 P(class, prefix, spread, float, PRI) \
31                 P(class, prefix, animtime, float, SEC) \
32                 P(class, prefix, damage, float, SEC) \
33                 P(class, prefix, delay, float, SEC) \
34                 P(class, prefix, edgedamage, float, SEC) \
35                 P(class, prefix, force, float, SEC) \
36                 P(class, prefix, lifetime, float, SEC) \
37                 P(class, prefix, radius, float, SEC) \
38                 P(class, prefix, refire, float, SEC) \
39                 P(class, prefix, refire_type, float, SEC) \
40                 P(class, prefix, shotangle, float, SEC) \
41                 P(class, prefix, speed, float, SEC) \
42                 P(class, prefix, spread, float, SEC) \
43                 P(class, prefix, reload_ammo, float, NONE) \
44                 P(class, prefix, reload_time, float, NONE) \
45                 P(class, prefix, switchdelay_drop, float, NONE) \
46                 P(class, prefix, switchdelay_raise, float, NONE) \
47                 P(class, prefix, weaponreplace, string,NONE) \
48                 P(class, prefix, weaponstartoverride, float, NONE) \
49                 P(class, prefix, weaponstart, float, NONE) \
50                 P(class, prefix, weaponthrowable, float, NONE) \
51         END()
52         W_PROPS(X, OverkillShotgun, okshotgun)
53 #undef X
54
55 ENDCLASS(OverkillShotgun)
56 REGISTER_WEAPON(OVERKILL_SHOTGUN, okshotgun, NEW(OverkillShotgun));
57
58 //SPAWNFUNC_WEAPON(weapon_okshotgun, WEP_OVERKILL_SHOTGUN)