FullAmmo() public method

public FullAmmo ( ) : bool
return bool
Esempio n. 1
0
        protected virtual void Reload(Actor self, int reloadDelay, int reloadCount, string sound)
        {
            if (!ammoPool.FullAmmo() && --remainingTicks == 0)
            {
                remainingTicks = reloadDelay;
                if (!string.IsNullOrEmpty(sound))
                {
                    Game.Sound.PlayToPlayer(SoundType.World, self.Owner, sound, self.CenterPosition);
                }

                ammoPool.GiveAmmo(self, reloadCount);
            }
        }
Esempio n. 2
0
        protected virtual void Reload(Actor self, int reloadDelay, int reloadCount, string sound)
        {
            if (!ammoPool.FullAmmo() && --remainingTicks == 0)
            {
                remainingTicks = Util.ApplyPercentageModifiers(reloadDelay, modifiers.Select(m => m.GetReloadAmmoModifier()));
                if (!string.IsNullOrEmpty(sound))
                {
                    Game.Sound.PlayToPlayer(SoundType.World, self.Owner, sound, self.CenterPosition);
                }

                ammoPool.GiveAmmo(self, reloadCount);
            }
        }