// note: the fabs call is just there to hide "if result is constant" warning
#define REGISTER_WEAPON_2(id,bit,func,ammotype,i,weapontype,pickupbasevalue,modelname,shortname,wname) \
float id; \
- float bit; \
float func(float); \
void RegisterWeapons_##id() \
{ \
}
}
- if (g_jetpack || (g_grappling_hook && WEPSET_CONTAINS_AW(start_weapons, WEPBIT_HOOK)))
+ if (g_jetpack || (g_grappling_hook && WEPSET_CONTAINS_AW(start_weapons, WEP_HOOK)))
{
g_grappling_hook = 0; // these two can't coexist, as they use the same button
start_items |= IT_FUEL_REGEN;
// else if(item.items == IT_CELLS)
// AnnounceTo(player, "ammo");
- if (item.weapons & WEPBIT_MINSTANEX)
+ if (WEPSET_CONTAINS_EW(item, WEP_MINSTANEX))
W_GiveWeapon (player, WEP_MINSTANEX, item.netname);
if (item.ammo_cells)
player.ammo_cells = bound(player.ammo_cells, 999, player.ammo_cells + autocvar_g_minstagib_ammo_drop);