#undef X
ENDCLASS(OverkillHeavyMachineGun)
-REGISTER_WEAPON(OVERKILL_HMG, okhmg, NEW(OverkillHeavyMachineGun));
+REGISTER_WEAPON(OVERKILL_HMG, NEW(OverkillHeavyMachineGun));
//SPAWNFUNC_WEAPON(weapon_okhmg, WEP_OVERKILL_HMG)
//SPAWNFUNC_WEAPON(weapon_hmg, WEP_OVERKILL_HMG)
#undef X
ENDCLASS(OverkillMachineGun)
-REGISTER_WEAPON(OVERKILL_MACHINEGUN, okmachinegun, NEW(OverkillMachineGun));
+REGISTER_WEAPON(OVERKILL_MACHINEGUN, NEW(OverkillMachineGun));
//SPAWNFUNC_WEAPON(weapon_okmachinegun, WEP_OVERKILL_MACHINEGUN)
#undef X
ENDCLASS(OverkillNex)
-REGISTER_WEAPON(OVERKILL_NEX, oknex, NEW(OverkillNex));
+REGISTER_WEAPON(OVERKILL_NEX, NEW(OverkillNex));
//SPAWNFUNC_WEAPON(weapon_oknex, WEP_OVERKILL_NEX)
#undef X
ENDCLASS(OverkillRocketPropelledChainsaw)
-REGISTER_WEAPON(OVERKILL_RPC, okrpc, NEW(OverkillRocketPropelledChainsaw));
+REGISTER_WEAPON(OVERKILL_RPC, NEW(OverkillRocketPropelledChainsaw));
//SPAWNFUNC_WEAPON(weapon_okrpc, WEP_OVERKILL_RPC)
//SPAWNFUNC_WEAPON(weapon_rpc, WEP_OVERKILL_RPC)
#undef X
ENDCLASS(OverkillShotgun)
-REGISTER_WEAPON(OVERKILL_SHOTGUN, okshotgun, NEW(OverkillShotgun));
+REGISTER_WEAPON(OVERKILL_SHOTGUN, NEW(OverkillShotgun));
//SPAWNFUNC_WEAPON(weapon_okshotgun, WEP_OVERKILL_SHOTGUN)
}
#endif
-#define REGISTER_WEAPON(...) EVAL_REGISTER_WEAPON(OVERLOAD(REGISTER_WEAPON, __VA_ARGS__))
-#define EVAL_REGISTER_WEAPON(...) __VA_ARGS__
-#define REGISTER_WEAPON_2(id, inst) REGISTER(Weapons, WEP, id, m_id, inst)
-/** TODO: deprecated - remove */
-#define REGISTER_WEAPON_3(id, sname, inst) \
- REGISTER_WEAPON_2(id, inst); \
- [[alias("WEP_" #id)]] Weapon _wep_##sname
+#define REGISTER_WEAPON(id, inst) REGISTER(Weapons, WEP, id, m_id, inst)
REGISTER_WEAPON(Null, NEW(Weapon));
REGISTRY_DEFINE_GET(Weapons, WEP_Null)
#undef X
ENDCLASS(Arc)
-REGISTER_WEAPON(ARC, arc, NEW(Arc));
+REGISTER_WEAPON(ARC, NEW(Arc));
SPAWNFUNC_WEAPON(weapon_arc, WEP_ARC)
#undef X
ENDCLASS(Blaster)
-REGISTER_WEAPON(BLASTER, blaster, NEW(Blaster));
+REGISTER_WEAPON(BLASTER, NEW(Blaster));
SPAWNFUNC_WEAPON(weapon_blaster, WEP_BLASTER)
SPAWNFUNC_WEAPON(weapon_laser, WEP_BLASTER)
#undef X
ENDCLASS(Crylink)
-REGISTER_WEAPON(CRYLINK, crylink, NEW(Crylink));
+REGISTER_WEAPON(CRYLINK, NEW(Crylink));
SPAWNFUNC_WEAPON(weapon_crylink, WEP_CRYLINK)
#undef X
ENDCLASS(Devastator)
-REGISTER_WEAPON(DEVASTATOR, devastator, NEW(Devastator));
+REGISTER_WEAPON(DEVASTATOR, NEW(Devastator));
SPAWNFUNC_WEAPON(weapon_devastator, WEP_DEVASTATOR)
SPAWNFUNC_WEAPON(weapon_rocketlauncher, WEP_DEVASTATOR)
#undef X
ENDCLASS(Electro)
-REGISTER_WEAPON(ELECTRO, electro, NEW(Electro));
+REGISTER_WEAPON(ELECTRO, NEW(Electro));
SPAWNFUNC_WEAPON(weapon_electro, WEP_ELECTRO)
#undef X
ENDCLASS(Fireball)
-REGISTER_WEAPON(FIREBALL, fireball, NEW(Fireball));
+REGISTER_WEAPON(FIREBALL, NEW(Fireball));
SPAWNFUNC_WEAPON(weapon_fireball, WEP_FIREBALL)
#undef X
ENDCLASS(Hagar)
-REGISTER_WEAPON(HAGAR, hagar, NEW(Hagar));
+REGISTER_WEAPON(HAGAR, NEW(Hagar));
SPAWNFUNC_WEAPON(weapon_hagar, WEP_HAGAR)
#undef X
ENDCLASS(HLAC)
-REGISTER_WEAPON(HLAC, hlac, NEW(HLAC));
+REGISTER_WEAPON(HLAC, NEW(HLAC));
SPAWNFUNC_WEAPON(weapon_hlac, WEP_HLAC)
#undef X
ENDCLASS(Hook)
-REGISTER_WEAPON(HOOK, hook, NEW(Hook));
+REGISTER_WEAPON(HOOK, NEW(Hook));
SPAWNFUNC_WEAPON(weapon_hook, WEP_HOOK)
#undef X
ENDCLASS(MachineGun)
-REGISTER_WEAPON(MACHINEGUN, machinegun, NEW(MachineGun));
+REGISTER_WEAPON(MACHINEGUN, NEW(MachineGun));
SPAWNFUNC_WEAPON(weapon_machinegun, WEP_MACHINEGUN)
SPAWNFUNC_WEAPON(weapon_uzi, WEP_MACHINEGUN)
W_PROPS(X, MineLayer, minelayer)
#undef X
ENDCLASS(MineLayer)
-REGISTER_WEAPON(MINE_LAYER, minelayer, NEW(MineLayer));
+REGISTER_WEAPON(MINE_LAYER, NEW(MineLayer));
SPAWNFUNC_WEAPON(weapon_minelayer, WEP_MINE_LAYER)
W_PROPS(X, Mortar, mortar)
#undef X
ENDCLASS(Mortar)
-REGISTER_WEAPON(MORTAR, mortar, NEW(Mortar));
+REGISTER_WEAPON(MORTAR, NEW(Mortar));
SPAWNFUNC_WEAPON(weapon_mortar, WEP_MORTAR)
SPAWNFUNC_WEAPON(weapon_grenadelauncher, WEP_MORTAR)
W_PROPS(X, PortoLaunch, porto)
#undef X
ENDCLASS(PortoLaunch)
-REGISTER_WEAPON(PORTO, porto, NEW(PortoLaunch));
+REGISTER_WEAPON(PORTO, NEW(PortoLaunch));
SPAWNFUNC_WEAPON(weapon_porto, WEP_PORTO)
W_PROPS(X, Rifle, rifle)
#undef X
ENDCLASS(Rifle)
-REGISTER_WEAPON(RIFLE, rifle, NEW(Rifle));
+REGISTER_WEAPON(RIFLE, NEW(Rifle));
SPAWNFUNC_WEAPON(weapon_rifle, WEP_RIFLE)
SPAWNFUNC_WEAPON(weapon_campingrifle, WEP_RIFLE)
W_PROPS(X, Seeker, seeker)
#undef X
ENDCLASS(Seeker)
-REGISTER_WEAPON(SEEKER, seeker, NEW(Seeker));
+REGISTER_WEAPON(SEEKER, NEW(Seeker));
SPAWNFUNC_WEAPON(weapon_seeker, WEP_SEEKER)
#undef X
ENDCLASS(Shockwave)
-REGISTER_WEAPON(SHOCKWAVE, shockwave, NEW(Shockwave));
+REGISTER_WEAPON(SHOCKWAVE, NEW(Shockwave));
SPAWNFUNC_WEAPON(weapon_shockwave, WEP_SHOCKWAVE)
#undef X
ENDCLASS(Shotgun)
-REGISTER_WEAPON(SHOTGUN, shotgun, NEW(Shotgun));
+REGISTER_WEAPON(SHOTGUN, NEW(Shotgun));
W_PROPS(X, Tuba, tuba)
#undef X
ENDCLASS(Tuba)
-REGISTER_WEAPON(TUBA, tuba, NEW(Tuba));
+REGISTER_WEAPON(TUBA, NEW(Tuba));
SPAWNFUNC_WEAPON(weapon_tuba, WEP_TUBA)
#undef X
ENDCLASS(Vaporizer)
-REGISTER_WEAPON(VAPORIZER, vaporizer, NEW(Vaporizer));
+REGISTER_WEAPON(VAPORIZER, NEW(Vaporizer));
SPAWNFUNC_WEAPON(weapon_vaporizer, WEP_VAPORIZER)
SPAWNFUNC_WEAPON(weapon_minstanex, WEP_VAPORIZER)
#undef X
ENDCLASS(Vortex)
-REGISTER_WEAPON(VORTEX, vortex, NEW(Vortex));
+REGISTER_WEAPON(VORTEX, NEW(Vortex));
SPAWNFUNC_WEAPON(weapon_vortex, WEP_VORTEX)
SPAWNFUNC_WEAPON(weapon_nex, WEP_VORTEX)