]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/weapons/weapon/fireball.qh
Merge branch 'terencehill/noclip_death_fix' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / fireball.qh
1 #pragma once
2
3 CLASS(Fireball, Weapon)
4 /* spawnfunc */ ATTRIB(Fireball, m_canonical_spawnfunc, string, "weapon_fireball");
5 /* ammotype  */ //ATTRIB(Fireball, ammo_type, int, RES_NONE);
6 /* impulse   */ ATTRIB(Fireball, impulse, int, 9);
7 /* flags     */ ATTRIB(Fireball, spawnflags, int, WEP_FLAG_SUPERWEAPON | WEP_TYPE_SPLASH | WEP_FLAG_NODUAL);
8 /* rating    */ ATTRIB(Fireball, bot_pickupbasevalue, float, 5000);
9 /* color     */ ATTRIB(Fireball, wpcolor, vector, '1 0.5 0');
10 /* modelname */ ATTRIB(Fireball, mdl, string, "fireball");
11 #ifdef GAMEQC
12 /* model     */ ATTRIB(Fireball, m_model, Model, MDL_FIREBALL_ITEM);
13 /* flash mdl */ ATTRIB(Fireball, m_muzzlemodel, Model, MDL_Null);
14 /* flash eff */ ATTRIB(Fireball, m_muzzleeffect, entity, EFFECT_FIREBALL_MUZZLEFLASH);
15 #endif
16 /* crosshair */ ATTRIB(Fireball, w_crosshair, string, "gfx/crosshairfireball");
17 /* crosshair */ //ATTRIB(Fireball, w_crosshair_size, float, 0.65);
18 /* wepimg    */ ATTRIB(Fireball, model2, string, "weaponfireball");
19 /* refname   */ ATTRIB(Fireball, netname, string, "fireball");
20 /* wepname   */ ATTRIB(Fireball, m_name, string, _("Fireball"));
21
22 #define X(BEGIN, P, END, class, prefix) \
23         BEGIN(class) \
24                 P(class, prefix, animtime, float, BOTH) \
25                 P(class, prefix, bfgdamage, float, PRI) \
26                 P(class, prefix, bfgforce, float, PRI) \
27                 P(class, prefix, bfgradius, float, PRI) \
28                 P(class, prefix, damageforcescale, float, BOTH) \
29                 P(class, prefix, damagetime, float, SEC) \
30                 P(class, prefix, damage, float, BOTH) \
31                 P(class, prefix, edgedamage, float, PRI) \
32                 P(class, prefix, force, float, PRI) \
33                 P(class, prefix, health, float, PRI) \
34                 P(class, prefix, laserburntime, float, BOTH) \
35                 P(class, prefix, laserdamage, float, BOTH) \
36                 P(class, prefix, laseredgedamage, float, BOTH) \
37                 P(class, prefix, laserradius, float, BOTH) \
38                 P(class, prefix, lifetime, float, BOTH) \
39                 P(class, prefix, radius, float, PRI) \
40                 P(class, prefix, refire2, float, PRI) \
41                 P(class, prefix, refire, float, BOTH) \
42                 P(class, prefix, speed, float, BOTH) \
43                 P(class, prefix, speed_up, float, SEC) \
44                 P(class, prefix, speed_z, float, SEC) \
45                 P(class, prefix, spread, float, BOTH) \
46                 P(class, prefix, switchdelay_drop, float, NONE) \
47                 P(class, prefix, switchdelay_raise, float, NONE) \
48                 P(class, prefix, weaponreplace, string,NONE) \
49                 P(class, prefix, weaponstartoverride, float, NONE) \
50                 P(class, prefix, weaponstart, float, NONE) \
51                 P(class, prefix, weaponthrowable, float, NONE) \
52         END()
53         W_PROPS(X, Fireball, fireball)
54 #undef X
55
56 ENDCLASS(Fireball)
57 REGISTER_WEAPON(FIREBALL, fireball, NEW(Fireball));
58
59 SPAWNFUNC_WEAPON(weapon_fireball, WEP_FIREBALL)
60
61 #ifdef SVQC
62 .float bot_primary_fireballmooth; // whatever a mooth is
63 .vector fireball_impactvec;
64 .float fireball_primarytime;
65 #endif