if(WEP_CVAR(shotgun, reload_ammo) && self.clip_load < WEP_CVAR_PRI(shotgun, ammo)) // forced reload
{
// don't force reload an empty shotgun if its melee attack is active
- if (!(WEP_CVAR(shotgun, secondary) && self.ammo_shells < WEP_CVAR_PRI(shotgun, ammo)))
+ if (!WEP_CVAR(shotgun, secondary))
WEP_ACTION(self.weapon, WR_RELOAD);
}
else
self.clip_load = self.old_clip_load; // restore the ammo counter, in case we still had ammo in the weapon before reloading
// if the gun uses no ammo, max out weapon load, else decrease ammo as we increase weapon load
- if(!self.reload_ammo_min || self.items & IT_UNLIMITED_WEAPON_AMMO)
+ if(!self.reload_ammo_min || self.items & IT_UNLIMITED_WEAPON_AMMO || self.current_ammo == ammo_none)
self.clip_load = self.reload_ammo_amount;
else
{
return;
// no ammo, so nothing to load
+ if(self.current_ammo != ammo_none)
if(!self.(self.current_ammo) && self.reload_ammo_min)
if (!(self.items & IT_UNLIMITED_WEAPON_AMMO))
{