460301829892c08ca6fa8a592fbc81d36d4d472d
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / electro.qh
1 #pragma once
2
3 CLASS(Electro, Weapon)
4 /* spawnfunc */ ATTRIB(Electro, m_canonical_spawnfunc, string, "weapon_electro");
5 /* ammotype  */ ATTRIB(Electro, ammo_type, int, RES_CELLS);
6 /* impulse   */ ATTRIB(Electro, impulse, int, 5);
7 /* flags     */ ATTRIB(Electro, spawnflags, int, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_FLAG_CANCLIMB | WEP_TYPE_SPLASH);
8 /* rating    */ ATTRIB(Electro, bot_pickupbasevalue, float, 5000);
9 /* color     */ ATTRIB(Electro, wpcolor, vector, '0 0.5 1');
10 /* modelname */ ATTRIB(Electro, mdl, string, "electro");
11 #ifdef GAMEQC
12 /* model     */ ATTRIB(Electro, m_model, Model, MDL_ELECTRO_ITEM);
13 #endif
14 /* crosshair */ ATTRIB(Electro, w_crosshair, string, "gfx/crosshairelectro");
15 /* crosshair */ ATTRIB(Electro, w_crosshair_size, float, 0.6);
16 /* wepimg    */ ATTRIB(Electro, model2, string, "weaponelectro");
17 /* refname   */ ATTRIB(Electro, netname, string, "electro");
18 /* wepname   */ ATTRIB(Electro, m_name, string, _("Electro"));
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, bouncefactor, float, SEC) \
25                 P(class, prefix, bouncestop, float, SEC) \
26                 P(class, prefix, comboradius, float, PRI) \
27                 P(class, prefix, combo_comboradius, float, NONE) \
28                 P(class, prefix, combo_comboradius_thruwall, float, NONE) \
29                 P(class, prefix, combo_damage, float, NONE) \
30                 P(class, prefix, combo_edgedamage, float, NONE) \
31                 P(class, prefix, combo_force, float, NONE) \
32                 P(class, prefix, combo_radius, float, NONE) \
33                 P(class, prefix, combo_safeammocheck, float, NONE) \
34                 P(class, prefix, combo_speed, float, NONE) \
35                 P(class, prefix, count, float, SEC) \
36                 P(class, prefix, damagedbycontents, float, SEC) \
37                 P(class, prefix, damageforcescale, float, SEC) \
38                 P(class, prefix, damage, float, BOTH) \
39                 P(class, prefix, edgedamage, float, BOTH) \
40                 P(class, prefix, force, float, BOTH) \
41                 P(class, prefix, health, float, SEC) \
42                 P(class, prefix, lifetime, float, BOTH) \
43                 P(class, prefix, midaircombo_explode, float, PRI) \
44                 P(class, prefix, midaircombo_interval, float, PRI) \
45                 P(class, prefix, midaircombo_own, bool, PRI) \
46                 P(class, prefix, midaircombo_radius, float, PRI) \
47                 P(class, prefix, radius, float, BOTH) \
48                 P(class, prefix, refire2, float, SEC) \
49                 P(class, prefix, refire, float, BOTH) \
50                 P(class, prefix, reload_ammo, float, NONE) \
51                 P(class, prefix, reload_time, float, NONE) \
52                 P(class, prefix, speed, float, BOTH) \
53                 P(class, prefix, speed_up, float, SEC) \
54                 P(class, prefix, speed_z, float, SEC) \
55                 P(class, prefix, spread, float, BOTH) \
56                 P(class, prefix, stick, float, SEC) \
57                 P(class, prefix, switchdelay_drop, float, NONE) \
58                 P(class, prefix, switchdelay_raise, float, NONE) \
59                 P(class, prefix, touchexplode, float, SEC) \
60                 P(class, prefix, weaponreplace, string,NONE) \
61                 P(class, prefix, weaponstartoverride, float, NONE) \
62                 P(class, prefix, weaponstart, float, NONE) \
63                 P(class, prefix, weaponthrowable, float, NONE) \
64         END()
65         W_PROPS(X, Electro, electro)
66 #undef X
67
68 ENDCLASS(Electro)
69 REGISTER_WEAPON(ELECTRO, electro, NEW(Electro));
70
71 SPAWNFUNC_WEAPON(weapon_electro, WEP_ELECTRO)
72
73 #ifdef SVQC
74 .float electro_count;
75 .float electro_secondarytime;
76 void W_Electro_ExplodeCombo(entity this);
77 #endif