Exemplo n.º 1
0
 public void OnRoundStart()
 {
     IsAutoWarheadStart = false;
     Timing.RunCoroutine(AutoWarheadSystem());
     Cassie.CassieMessage($"WARNING THE AUTOMATIC WARHEAD SYSTEM START IN {Configs.StartTime} MINUTES", true, true);
     Expansions.Broadcast(Configs.BroadcastTime, Configs.getRoundStart());
 }
Exemplo n.º 2
0
 public void OnWarheadStart(WarheadStartEvent ev)
 {
     if (!IsAutoWarheadStart)
     {
         Expansions.Broadcast(Configs.BroadcastTime, Configs.WarheadStart);
     }
 }
Exemplo n.º 3
0
        public IEnumerator <float> AutoWarheadSystem()
        {
            yield return(Timing.WaitForSeconds(Configs.getStartTime()));

            if (!Map.IsNukeDetonated)
            {
                IsAutoWarheadStart = true;
                Map.StartNuke();
                Expansions.Broadcast(Configs.BroadcastTime, Configs.AutoWarheadStart);
            }
        }
Exemplo n.º 4
0
 public void OnWarheadCancel(WarheadCancelEvent ev)
 {
     if (IsAutoWarheadStart)
     {
         ev.Allow = false;
     }
     else
     {
         Expansions.Broadcast(Configs.BroadcastTime, Configs.WarheadCancel);
     }
 }