ownr = self;
self = plyr;
- self.weaponentity.weapons = self.weapons;
+ WEPSET_COPY_EE(self.weaponentity, self);
self.weaponentity.switchweapon = self.weapon;
- self.weapons = W_WeaponBit(WEP_PORTO);
+ WEPSET_COPY_EW(self, WEP_PORTO);
weapon_action(WEP_PORTO, WR_RESETPLAYER);
self.switchweapon = WEP_PORTO;
W_SwitchWeapon(WEP_PORTO);
}
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)
- self.weapons |= W_WeaponBit(WEP_PORTO);
+ WEPSET_OR_EW(self, WEP_PORTO);
else
- self.weapons = 0; // W_WeaponBit(WEP_PORTO);
+ WEPSET_CLEAR_E(self);
return FALSE;
}