]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/weapons/weapon/shotgun.qh
f4afbc070c12911b6e942100e7f7a7de1f8e8558
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / shotgun.qh
1 #pragma once
2
3 CLASS(Shotgun, Weapon)
4 /* ammotype  */ ATTRIB(Shotgun, ammo_type, int, RESOURCE_SHELLS);
5 /* impulse   */ ATTRIB(Shotgun, impulse, int, 2);
6 /* flags     */ ATTRIB(Shotgun, spawnflags, int, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN | WEP_TYPE_MELEE_SEC);
7 /* rating    */ ATTRIB(Shotgun, bot_pickupbasevalue, float, 6000);
8 /* color     */ ATTRIB(Shotgun, wpcolor, vector, '0.5 0.25 0');
9 /* modelname */ ATTRIB(Shotgun, mdl, string, "shotgun");
10 #ifdef GAMEQC
11 /* model     */ ATTRIB(Shotgun, m_model, Model, MDL_SHOTGUN_ITEM);
12 #endif
13 /* crosshair */ ATTRIB(Shotgun, w_crosshair, string, "gfx/crosshairshotgun");
14 /* crosshair */ ATTRIB(Shotgun, w_crosshair_size, float, 0.65);
15 /* wepimg    */ ATTRIB(Shotgun, model2, string, "weaponshotgun");
16 /* refname   */ ATTRIB(Shotgun, netname, string, "shotgun");
17 /* wepname   */ ATTRIB(Shotgun, m_name, string, _("Shotgun"));
18
19 #define X(BEGIN, P, END, class, prefix) \
20         BEGIN(class) \
21                 P(class, prefix, alt_animtime, float, SEC) \
22                 P(class, prefix, alt_refire, float, SEC) \
23                 P(class, prefix, ammo, float, PRI) \
24                 P(class, prefix, animtime, float, BOTH) \
25                 P(class, prefix, bullets, float, PRI) \
26                 P(class, prefix, damage, float, BOTH) \
27                 P(class, prefix, force, float, BOTH) \
28                 P(class, prefix, melee_delay, float, SEC) \
29                 P(class, prefix, melee_multihit, float, SEC) \
30                 P(class, prefix, melee_nonplayerdamage, float, SEC) \
31                 P(class, prefix, melee_no_doubleslap, float, SEC) \
32                 P(class, prefix, melee_range, float, SEC) \
33                 P(class, prefix, melee_swing_side, float, SEC) \
34                 P(class, prefix, melee_swing_up, float, SEC) \
35                 P(class, prefix, melee_time, float, SEC) \
36                 P(class, prefix, melee_traces, float, SEC) \
37                 P(class, prefix, refire, float, BOTH) \
38                 P(class, prefix, reload_ammo, float, NONE) \
39         P(class, prefix, reload_time, float, NONE) \
40                 P(class, prefix, secondary, float, NONE) \
41                 P(class, prefix, solidpenetration, float, PRI) \
42                 P(class, prefix, spread, float, PRI) \
43         P(class, prefix, switchdelay_drop, float, NONE) \
44         P(class, prefix, switchdelay_raise, float, NONE) \
45         P(class, prefix, weaponreplace, string,NONE) \
46         P(class, prefix, weaponstartoverride, float, NONE) \
47         P(class, prefix, weaponstart, float, NONE) \
48         P(class, prefix, weaponthrowable, float, NONE) \
49         END()
50     W_PROPS(X, Shotgun, shotgun)
51 #undef X
52
53 ENDCLASS(Shotgun)
54 REGISTER_WEAPON(SHOTGUN, shotgun, NEW(Shotgun));
55
56 #ifdef SVQC
57 spawnfunc(weapon_shotgun);
58 #endif