Esempio n. 1
0
 protected bool TrackedFire()
 {
     if (slideController != null)
     {
         if (slideController.IsLocked())
         {
             return(false);
         }
     }
     if (!roundChambered)
     {
         return(false);
     }
     // Round cycle sequence
     roundChambered = false;
     slideController.ChamberRoundVisible(roundChambered);
     Fire();
     if (ConsumeOneFromMagazine())
     {
         roundChambered = true;
         slideController.ChamberRoundVisible(roundChambered);
         slideController.BlowBack();
     }
     else
     {
         isRacked           = false;
         isPulledBack       = true;
         chamberRoundOnNext = true;
         // playSoundOnNext = true;
         slideController.LastShot();
     }
     UpdateAmmoCounter();
     return(true);
 }
        protected bool TrackedFire()
        {
            if (slideController != null)
            {
                if (slideController.IsLocked())
                {
                    return(false);
                }
            }
            if (!roundChambered || roundSpent)
            {
                return(false);
            }

            Fire();
            roundSpent = true;

            return(true);
        }