Example #1
0
        public void StopFiringSound(object o = null)
        {
            if (FiringEmitter == null)
            {
                return;
            }

            FiringEmitter.StopSound(false);
        }
Example #2
0
        public void StopFiringSound(object o = null)
        {
            if (FiringEmitter == null)
            {
                return;
            }

            if (FiringEmitter.Loop)
            {
                FiringEmitter.StopSound(true);
            }
            else
            {
                FiringEmitter.StopSound(false);
            }
        }
Example #3
0
        public void StopFiringSound(object o = null)
        {
            if (FiringEmitter == null)
            {
                return;
            }

            if (FiringEmitter.Loop)
            {
                FiringEmitter.StopSound(true);
                FiringEmitter.PlaySound(FiringSound, stopPrevious: false, skipIntro: true, force2D: false, alwaysHearOnRealistic: false, skipToEnd: true);
            }
            else
            {
                FiringEmitter.StopSound(false);
            }
        }
Example #4
0
 public void StopFiringSound(bool force)
 {
     FiringEmitter?.StopSound(force);
 }