{
e = get_weaponinfo(i);
if(want_weapon("g_start_weapon_", e, FALSE))
- WEPSET_OR_AW(start_weapons, e.weapons);
+ WEPSET_OR_AW(start_weapons, i);
}
}
{
e = get_weaponinfo(i);
if(want_weapon("g_start_weapon_", e, cvar("g_warmup_allguns")))
- WEPSET_OR_AW(warmup_start_weapons, j);
+ WEPSET_OR_AW(warmup_start_weapons, i);
}
}
}
ownr = self;
self = plyr;
- self.weaponentity.weapons = self.weapons;
+ WEPSET_COPY_EE(self.weaponentity, self);
self.weaponentity.switchweapon = self.weapon;
WEPSET_COPY_EW(self, WEP_PORTO);
weapon_action(WEP_PORTO, WR_RESETPLAYER);
}
else
{
- if(self.weaponentity.weapons)
+ if(!WEPSET_EMPTY_E(self.weaponentity))
{
- self.weapons = self.weaponentity.weapons;
+ WEPSET_COPY_EE(self, self.weaponentity);
weapon_action(WEP_PORTO, WR_RESETPLAYER);
self.switchweapon = self.weaponentity.switchweapon;
W_SwitchWeapon(self.switchweapon);
- self.weaponentity.weapons = 0;
+ WEPSET_CLEAR_E(self.weaponentity);
}
}
MUTATOR_HOOKFUNCTION(nexball_PlayerSpawn)
{
- self.weaponentity.weapons = 0;
+ WEPSET_CLEAR_E(self.weaponentity);
if(nexball_mode & NBM_BASKETBALL)
WEPSET_OR_EW(self, WEP_PORTO);
{
entity e;
e = get_weaponinfo(wpn);
- if(!e.weapons) // skip dummies
+ if(!e.weapon) // skip dummies
return FALSE;
if(g_weaponarena)
{
- if not(g_weaponarena & e.weapons)
+ if not(WEPSET_CONTAINS_AW(g_weaponarena_weapons, wpn))
return FALSE;
}
else
self.nix_nextincr = time + autocvar_g_balance_nix_incrtime;
}
- self.weapons = 0;
+ WEPSET_CLEAR_E(self);
if(g_nix_with_laser)
WEPSET_ANDNOT_EW(self, WEP_LASER);
WEPSET_OR_EW(self, nix_weapon);