Beispiel #1
0
        private void Paused()
        {
            Pause = true;
            Log.Line($"Stopping all AV due to pause");

            /*
             * foreach (var aiPair in GridTargetingAIs)
             * {
             *  var gridAi = aiPair.Value;
             *  foreach (var comp in gridAi.WeaponBase.Values)
             *      comp.StopAllAv();
             * }
             *
             * foreach (var p in Projectiles.ActiveProjetiles)
             * {
             *  p.ParticleStopped = true;
             *  if (p.AmmoEffect != null)
             *  {
             *      p.AmmoEffect.Stop();
             *      p.AmmoEffect = null;
             *  }
             *
             *  if (p.Info.AvShot?.HitEffect != null)
             *  {
             *      p.Info.AvShot.HitEffect.Stop();
             *      p.Info.AvShot.HitEffect = null;
             *  }
             *
             * }
             */
            if (WheelUi.WheelActive && WheelUi.Ai != null)
            {
                WheelUi.CloseWheel();
            }
        }
Beispiel #2
0
 private void Paused()
 {
     Pause = true;
     Log.Line($"Stopping all AV due to pause");
     if (WheelUi.WheelActive && WheelUi.Ai != null)
     {
         WheelUi.CloseWheel();
     }
 }