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