#include "../../weapons/all.qh"
CLASS(MageSpike, PortoLaunch)
-/* flags */ ATTRIB(MageSpike, spawnflags, int, WEP_TYPE_OTHER);
+/* flags */ ATTRIB(MageSpike, spawnflags, int, WEP_TYPE_OTHER | WEP_FLAG_HIDDEN);
/* impulse */ ATTRIB(MageSpike, impulse, int, 9);
/* refname */ ATTRIB(MageSpike, netname, string, "magespike");
/* wepname */ ATTRIB(MageSpike, message, string, _("Mage spike"));
void M_Mage_Attack_Spike(vector dir);
void M_Mage_Attack_Push();
-METHOD(MageSpike, wr_think, bool(MageSpike thiswep, bool fire1, bool fire2)) {
+METHOD(MageSpike, wr_think, void(MageSpike thiswep, bool fire1, bool fire2)) {
SELFPARAM();
if (fire1)
if (!IS_PLAYER(self) || weapon_prepareattack(false, 0.2)) {
M_Mage_Attack_Push();
weapon_thinkf(WFRAME_FIRE2, 0, w_ready);
}
- return true;
}
void M_Mage_Attack_Teleport();