]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/weapons/weapon/vortex.qh
Merge branch 'martin-t/angles' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / vortex.qh
1 #pragma once
2
3 CLASS(Vortex, Weapon)
4 /* ammotype  */ ATTRIB(Vortex, ammo_field, .int, ammo_cells);
5 /* impulse   */ ATTRIB(Vortex, impulse, int, 7);
6 /* flags     */ ATTRIB(Vortex, spawnflags, int, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN | WEP_FLAG_NODUAL);
7 /* rating    */ ATTRIB(Vortex, bot_pickupbasevalue, float, 8000);
8 /* color     */ ATTRIB(Vortex, wpcolor, vector, '0.5 1 1');
9 /* modelname */ ATTRIB(Vortex, mdl, string, "nex");
10 #ifdef GAMEQC
11 /* model     */ ATTRIB(Vortex, m_model, Model, MDL_VORTEX_ITEM);
12 #endif
13 /* crosshair */ ATTRIB(Vortex, w_crosshair, string, "gfx/crosshairnex");
14 /* crosshair */ ATTRIB(Vortex, w_crosshair_size, float, 0.65);
15 /* reticle   */ ATTRIB(Vortex, w_reticle, string, "gfx/reticle_nex");
16 /* wepimg    */ ATTRIB(Vortex, model2, string, "weaponnex");
17 /* refname   */ ATTRIB(Vortex, netname, string, "vortex");
18 /* wepname   */ ATTRIB(Vortex, m_name, string, _("Vortex"));
19
20 #define X(BEGIN, P, END, class, prefix) \
21         BEGIN(class) \
22                 P(class, prefix, ammo, float, BOTH) \
23                 P(class, prefix, animtime, float, BOTH) \
24                 P(class, prefix, chargepool, float, SEC) \
25                 P(class, prefix, chargepool_pause_regen, float, SEC) \
26                 P(class, prefix, chargepool_regen, float, SEC) \
27                 P(class, prefix, charge, float, NONE) \
28                 P(class, prefix, charge_animlimit, float, NONE) \
29                 P(class, prefix, charge_limit, float, NONE) \
30                 P(class, prefix, charge_maxspeed, float, NONE) \
31                 P(class, prefix, charge_mindmg, float, NONE) \
32                 P(class, prefix, charge_minspeed, float, NONE) \
33                 P(class, prefix, charge_rate, float, NONE) \
34                 P(class, prefix, charge_rot_pause, float, NONE) \
35                 P(class, prefix, charge_rot_rate, float, NONE) \
36                 P(class, prefix, charge_shot_multiplier, float, NONE) \
37                 P(class, prefix, charge_start, float, NONE) \
38                 P(class, prefix, charge_velocity_rate, float, NONE) \
39                 P(class, prefix, damagefalloff_forcehalflife, float, BOTH) \
40                 P(class, prefix, damagefalloff_halflife, float, BOTH) \
41                 P(class, prefix, damagefalloff_maxdist, float, BOTH) \
42                 P(class, prefix, damagefalloff_mindist, float, BOTH) \
43                 P(class, prefix, damage, float, BOTH) \
44                 P(class, prefix, force, float, BOTH) \
45                 P(class, prefix, refire, float, BOTH) \
46                 P(class, prefix, secondary, float, NONE) \
47                 P(class, prefix, reload_ammo, float, NONE) \
48         P(class, prefix, reload_time, float, NONE) \
49         P(class, prefix, switchdelay_raise, float, NONE) \
50         P(class, prefix, switchdelay_drop, float, NONE) \
51         P(class, prefix, weaponreplace, string, NONE) \
52         P(class, prefix, weaponstart, float, NONE) \
53         P(class, prefix, weaponstartoverride, float, NONE) \
54         P(class, prefix, weaponthrowable, float, NONE) \
55         END()
56     W_PROPS(X, Vortex, vortex)
57 #undef X
58
59 ENDCLASS(Vortex)
60 REGISTER_WEAPON(VORTEX, vortex, NEW(Vortex));
61
62
63 #ifdef SVQC
64
65 .float vortex_lasthit;
66 #endif