]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/weapons/weapon/machinegun.qh
give MG WEP_FLAG_PENETRATEWALLS
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / machinegun.qh
1 #pragma once
2
3 CLASS(MachineGun, Weapon)
4 /* ammotype  */ ATTRIB(MachineGun, ammo_field, .int, ammo_nails);
5 /* impulse   */ ATTRIB(MachineGun, impulse, int, 3);
6 /* flags     */ ATTRIB(MachineGun, spawnflags, int, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN | WEP_FLAG_PENETRATEWALLS);
7 /* rating    */ ATTRIB(MachineGun, bot_pickupbasevalue, float, 7000);
8 /* color     */ ATTRIB(MachineGun, wpcolor, vector, '1 1 0');
9 /* modelname */ ATTRIB(MachineGun, mdl, string, "uzi");
10 #ifdef GAMEQC
11 /* model     */ ATTRIB(MachineGun, m_model, Model, MDL_MACHINEGUN_ITEM);
12 #endif
13 /* crosshair */ ATTRIB(MachineGun, w_crosshair, string, "gfx/crosshairuzi");
14 /* crosshair */ ATTRIB(MachineGun, w_crosshair_size, float, 0.6);
15 /* wepimg    */ ATTRIB(MachineGun, model2, string, "weaponuzi");
16 /* refname   */ ATTRIB(MachineGun, netname, string, "machinegun");
17 /* wepname   */ ATTRIB(MachineGun, m_name, string, _("MachineGun"));
18
19 #define X(BEGIN, P, END, class, prefix) \
20         BEGIN(class) \
21                 P(class, prefix, burst, float, NONE) \
22                 P(class, prefix, burst_ammo, float, NONE) \
23                 P(class, prefix, burst_animtime, float, NONE) \
24                 P(class, prefix, burst_refire2, float, NONE) \
25                 P(class, prefix, burst_refire, float, NONE) \
26                 P(class, prefix, burst_speed, float, NONE) \
27                 P(class, prefix, first, float, NONE) \
28                 P(class, prefix, first_ammo, float, NONE) \
29                 P(class, prefix, first_damage, float, NONE) \
30                 P(class, prefix, first_force, float, NONE) \
31                 P(class, prefix, first_refire, float, NONE) \
32                 P(class, prefix, first_spread, float, NONE) \
33                 P(class, prefix, mode, float, NONE) \
34                 P(class, prefix, reload_ammo, float, NONE) \
35         P(class, prefix, reload_time, float, NONE) \
36                 P(class, prefix, solidpenetration, float, NONE) \
37                 P(class, prefix, spread_add, float, NONE) \
38                 P(class, prefix, spread_max, float, NONE) \
39                 P(class, prefix, spread_min, float, NONE) \
40                 P(class, prefix, sustained_ammo, float, NONE) \
41                 P(class, prefix, sustained_damage, float, NONE) \
42                 P(class, prefix, sustained_force, float, NONE) \
43                 P(class, prefix, sustained_refire, float, NONE) \
44                 P(class, prefix, sustained_spread, 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, MachineGun, machinegun)
53 #undef X
54
55 ENDCLASS(MachineGun)
56 REGISTER_WEAPON(MACHINEGUN, machinegun, NEW(MachineGun));