]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/weapons/weapon/hlac.qh
Merge branch 'master' into Lyberta/KillSound
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / hlac.qh
1 #pragma once
2
3 CLASS(HLAC, Weapon)
4 /* ammotype  */ ATTRIB(HLAC, ammo_field, .int, ammo_cells);
5 /* impulse   */ ATTRIB(HLAC, impulse, int, 6);
6 /* flags     */ ATTRIB(HLAC, spawnflags, int, WEP_FLAG_MUTATORBLOCKED | WEP_FLAG_RELOADABLE | WEP_TYPE_SPLASH);
7 /* rating    */ ATTRIB(HLAC, bot_pickupbasevalue, float, 4000);
8 /* color     */ ATTRIB(HLAC, wpcolor, vector, '0 1 0');
9 /* modelname */ ATTRIB(HLAC, mdl, string, "hlac");
10 #ifdef GAMEQC
11 /* model     */ ATTRIB(HLAC, m_model, Model, MDL_HLAC_ITEM);
12 #endif
13 /* crosshair */ ATTRIB(HLAC, w_crosshair, string, "gfx/crosshairhlac");
14 /* crosshair */ ATTRIB(HLAC, w_crosshair_size, float, 0.6);
15 /* wepimg    */ ATTRIB(HLAC, model2, string, "weaponhlac");
16 /* refname   */ ATTRIB(HLAC, netname, string, "hlac");
17 /* wepname   */ ATTRIB(HLAC, m_name, string, _("Heavy Laser Assault Cannon"));
18
19 #define X(BEGIN, P, END, class, prefix) \
20         BEGIN(class) \
21                 P(class, prefix, ammo, float, BOTH) \
22                 P(class, prefix, animtime, float, BOTH) \
23                 P(class, prefix, damage, float, BOTH) \
24                 P(class, prefix, edgedamage, float, BOTH) \
25                 P(class, prefix, force, float, BOTH) \
26                 P(class, prefix, lifetime, float, BOTH) \
27                 P(class, prefix, radius, float, BOTH) \
28                 P(class, prefix, refire, float, BOTH) \
29                 P(class, prefix, reload_ammo, float, NONE) \
30                 P(class, prefix, reload_time, float, NONE) \
31                 P(class, prefix, secondary, float, NONE) \
32                 P(class, prefix, shots, float, SEC) \
33                 P(class, prefix, speed, float, BOTH) \
34                 P(class, prefix, spread, float, SEC) \
35                 P(class, prefix, spread_add, float, PRI) \
36                 P(class, prefix, spread_crouchmod, float, BOTH) \
37                 P(class, prefix, spread_max, float, PRI) \
38                 P(class, prefix, spread_min, float, PRI) \
39                 P(class, prefix, switchdelay_drop, float, NONE) \
40                 P(class, prefix, switchdelay_raise, float, NONE) \
41                 P(class, prefix, weaponreplace, string,NONE) \
42                 P(class, prefix, weaponstartoverride, float, NONE) \
43                 P(class, prefix, weaponstart, float, NONE) \
44                 P(class, prefix, weaponthrowable, float, NONE) \
45         END()
46     W_PROPS(X, HLAC, hlac)
47 #undef X
48
49 ENDCLASS(HLAC)
50 REGISTER_WEAPON(HLAC, hlac, NEW(HLAC));