3 CLASS(Fireball, Weapon)
4 /* spawnfunc */ ATTRIB(Fireball, m_canonical_spawnfunc, string, "weapon_fireball");
5 /* ammotype */ //ATTRIB(Fireball, ammo_type, int, RESOURCE_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");
12 /* model */ ATTRIB(Fireball, m_model, Model, MDL_FIREBALL_ITEM);
14 /* crosshair */ ATTRIB(Fireball, w_crosshair, string, "gfx/crosshairfireball");
15 /* crosshair */ //ATTRIB(Fireball, w_crosshair_size, float, 0.65);
16 /* wepimg */ ATTRIB(Fireball, model2, string, "weaponfireball");
17 /* refname */ ATTRIB(Fireball, netname, string, "fireball");
18 /* wepname */ ATTRIB(Fireball, m_name, string, _("Fireball"));
20 #define X(BEGIN, P, END, class, prefix) \
22 P(class, prefix, animtime, float, BOTH) \
23 P(class, prefix, bfgdamage, float, PRI) \
24 P(class, prefix, bfgforce, float, PRI) \
25 P(class, prefix, bfgradius, float, PRI) \
26 P(class, prefix, damageforcescale, float, BOTH) \
27 P(class, prefix, damagetime, float, SEC) \
28 P(class, prefix, damage, float, BOTH) \
29 P(class, prefix, edgedamage, float, PRI) \
30 P(class, prefix, force, float, PRI) \
31 P(class, prefix, health, float, PRI) \
32 P(class, prefix, laserburntime, float, BOTH) \
33 P(class, prefix, laserdamage, float, BOTH) \
34 P(class, prefix, laseredgedamage, float, BOTH) \
35 P(class, prefix, laserradius, float, BOTH) \
36 P(class, prefix, lifetime, float, BOTH) \
37 P(class, prefix, radius, float, PRI) \
38 P(class, prefix, refire2, float, PRI) \
39 P(class, prefix, refire, float, BOTH) \
40 P(class, prefix, speed, float, BOTH) \
41 P(class, prefix, speed_up, float, SEC) \
42 P(class, prefix, speed_z, float, SEC) \
43 P(class, prefix, spread, float, BOTH) \
44 P(class, prefix, switchdelay_drop, float, NONE) \
45 P(class, prefix, switchdelay_raise, float, NONE) \
46 P(class, prefix, weaponreplace, string,NONE) \
47 P(class, prefix, weaponstartoverride, float, NONE) \
48 P(class, prefix, weaponstart, float, NONE) \
49 P(class, prefix, weaponthrowable, float, NONE) \
51 W_PROPS(X, Fireball, fireball)
55 REGISTER_WEAPON(FIREBALL, fireball, NEW(Fireball));
57 SPAWNFUNC_WEAPON(weapon_fireball, WEP_FIREBALL)
60 .float bot_primary_fireballmooth; // whatever a mooth is
61 .vector fireball_impactvec;
62 .float fireball_primarytime;