public void NukeFacility(bool silent = false)
        {
            if (!AlphaActivated)
            {
                if (!silent)
                {
                    Cassie.Message("P B 5 Protocol has been activated . activating alpha warhead . attention to all facility personnel . alpha warhead can not be deactivated", false, false);
                    Timing.CallDelayed(16f, () =>
                    {
                        alpha.StartDetonation();
                        alphaPanel.Networkenabled = true;

                        Type t             = alpha.GetType();
                        FieldInfo[] fields = t.GetFields(BindingFlags.NonPublic | BindingFlags.Instance);

                        foreach (FieldInfo fi in fields)
                        {
                            if (fi.Name == "_isLocked")
                            {
                                fi.SetValue(alpha, true);
                            }
                        }
                    });
                }
                else
                {
                    alpha.StartDetonation();
                    alphaPanel.Networkenabled = true;

                    Type        t      = alpha.GetType();
                    FieldInfo[] fields = t.GetFields(BindingFlags.NonPublic | BindingFlags.Instance);

                    foreach (FieldInfo fi in fields)
                    {
                        if (fi.Name == "_isLocked")
                        {
                            fi.SetValue(alpha, true);
                        }
                    }
                }
                AlphaActivated = true;
            }
        }
Esempio n. 2
0
 public void Start()
 {
     AlphaWarheadController[] WarheadController = Object.FindObjectsOfType <AlphaWarheadController>();
     for (int j = 0; j < WarheadController.Length; j++)
     {
         AlphaWarheadController alphaWarheadController = WarheadController[j];
         if (alphaWarheadController != null)
         {
             alphaWarheadController.StartDetonation();
         }
     }
 }
Esempio n. 3
0
File: Map.cs Progetto: js6pak/EXILED
 /// <summary>
 /// Starts the nuke.
 /// </summary>
 public static void StartNuke()
 {
     AlphaWarheadController.InstantPrepare();
     AlphaWarheadController.StartDetonation();
 }
Esempio n. 4
0
 /// <summary>
 /// Starts the nuke.
 /// </summary>
 public static void StartNuke() => AlphaWarheadController.StartDetonation();