public void OnDecideTeamRespawnQueue(DecideRespawnQueueEvent ev)
 {
     /// <summary>
     /// Called at the start, when the team respawn queue is being read. This happens BEFORE it fills it to full with filler_team_id.
     /// <summary>
     plugin.SendMessageAsync(plugin.GetConfigString("discord_channel_ondecideteamrespawnqueue"), plugin.MultiLanguage(5));
 }
 public void OnDecideTeamRespawnQueue(DecideRespawnQueueEvent ev)
 {
     if (altroundnumber > RoundNumber)
     {
         plugin.Error("OnRoundStart event is not working! Using alternate event for $round_number");
     }
     altroundnumber++;
 }
Esempio n. 3
0
        /// <summary>
        /// Called at the start, when the team respawn queue is being read. This happens BEFORE it fills it to full with filler_team_id.
        /// </summary>
        public void OnDecideTeamRespawnQueue(DecideRespawnQueueEvent ev)
        {
            Dictionary <string, string> variables = new Dictionary <string, string>
            {
                { "teams", ev.Teams.ToString() },
            };

            this.plugin.SendMessage(Config.GetArray("channels.ondecideteamrespawnqueue"), "team.ondecideteamrespawnqueue", variables);
        }
Esempio n. 4
0
        public void OnDecideTeamRespawnQueue(DecideRespawnQueueEvent ev)
        {
            /// <summary>
            /// Called at the start, when the team respawn queue is being read. This happens BEFORE it fills it to full with filler_team_id.
            /// <summary>
            Dictionary <string, string> variables = new Dictionary <string, string>
            {
                { "teams", ev.Teams.ToString() },
            };

            plugin.SendMessage(Config.GetArray("channels.ondecideteamrespawnqueue"), "team.ondecideteamrespawnqueue", variables);
        }
 public void OnDecideTeamRespawnQueue(DecideRespawnQueueEvent ev)
 {
     if (GamemodeManager.GamemodeManager.ModeList.Count > 0 && !GamemodeManager.GamemodeManager.DisableAll)
     {
         string result = "";
         foreach (Team team in ev.Teams)
         {
             result = result + (int)team;
         }
         ev.Teams = GamemodeManager.GamemodeManager.CurrentQueue;
     }
 }
Esempio n. 6
0
        public void OnDecideTeamRespawnQueue(DecideRespawnQueueEvent ev)
        {
            if (!isQueue)
            {
                return;
            }
            List <TeamType> teams = ev.Teams.ToList();

            if (teams.Contains(TeamType.CHAOS_INSURGENCY))
            {
                teams.Remove(TeamType.CHAOS_INSURGENCY);
            }
            if (teams.Contains(TeamType.NINETAILFOX))
            {
                teams.Remove(TeamType.NINETAILFOX);
            }
            ev.Teams = teams.ToArray();
        }
Esempio n. 7
0
 void IEventHandlerDecideTeamRespawnQueue.OnDecideTeamRespawnQueue(DecideRespawnQueueEvent ev)
 {
     if (!waiting)
     {
         return;
     }
     CalcEvent();
     waiting = false;
     eMan.Server.Map.ClearBroadcasts();
     eMan.Info(eMan.curEvent);
     if (eMan.use_config_files)
     {
         eMan.Server.Map.Broadcast(3, "Event: " + cache[eMan.curEvent].name, false);
     }
     else
     {
         eMan.Server.Map.Broadcast(3, "Event: " + PluginManager.Manager.GetPlugin(eMan.curEvent).Details.name, false);
     }
     //CalcEvent();
     Smod2.Events.EventManager.Manager.HandleEvent <IEventHandlerDecideTeamRespawnQueue>(ev);
 }
Esempio n. 8
0
 public void OnDecideTeamRespawnQueue(DecideRespawnQueueEvent ev)
 {
     send(ev, new IdMapping());
 }