Exemple #1
0
 void IEventHandlerGeneratorFinish.OnGeneratorFinish(GeneratorFinishEvent ev)
 {
     send(ev, new IdMapping()
          .appendId(Lib.EVENT_GENERATOR_ID, ev.Generator)
          .appendId(Lib.EVENT_GENERATOR_ROOM_ID, ev.Generator.Room)
          );
 }
        public void OnGeneratorFinish(GeneratorFinishEvent ev)
        {
            generatorCount++;

            genLocalTimeInfo.SetValue(ev.Generator.GetComponent() as Generator079, 1f);

            Timing.RunCoroutine(GeneratorActivated());
        }
Exemple #3
0
        public void OnGeneratorFinish(GeneratorFinishEvent ev)
        {
            Dictionary <string, string> variables = new Dictionary <string, string>
            {
                { "room", ev.Generator.Room.RoomType.ToString() }
            };

            this.plugin.SendMessage(Config.GetArray("channels.ongeneratorfinish"), "environment.ongeneratorfinish", variables);
        }
Exemple #4
0
        public void OnGeneratorFinish(GeneratorFinishEvent ev)
        {
            if (plugin.Active)
            {
                generatorPowerups++;

                foreach (Player player in scientists.Values.Concat(slendies.Values))
                {
                    player.PersonalBroadcast(5, $"<b><color=#ccc>Generator {ev.Generator.Room.RoomType.ToString().Replace('_', ' ')} has successfully powered up.</color></b>", false);
                }
            }
        }
 public void OnGeneratorFinish(GeneratorFinishEvent ev)
 {
     if (Status.gamemodeRoundActive)
     {
         Status.generatorsFinished++;
         if (Status.generatorsFinished == 5)
         {
             Status.generatorsFinished = 0;
             plugin.Server.Map.AnnounceCustomMessage("Lockdown disabled");
             plugin.Server.Map.Broadcast(10, "Lockdown disabled, LCZ IS OPEN!, Go get an O5 to escape!", false);
             Functions.Lockdown(false);
         }
     }
 }
Exemple #6
0
        public void OnGeneratorFinish(GeneratorFinishEvent ev)
        {
            if (cm.GetBoolValue("rank_enabled", true))
            {
                DBConnection db = new DBConnection(main);

                var ntfs = PluginManager.Manager.Server.GetPlayers().Where(palive => palive.TeamRole.Team == Smod2.API.Team.NINETAILFOX || palive.TeamRole.Team == Smod2.API.Team.SCIENTIST);
                var scps = PluginManager.Manager.Server.GetPlayers().Where(palive => palive.TeamRole.Team == Smod2.API.Team.SCP);

                foreach (Player ntf in ntfs)
                {
                    db.AddPoint(ntf.SteamId, main.GetConfigInt("rank_point_generator_finish_ntf"));
                }

                foreach (Player scp in scps)
                {
                    db.AddPoint(scp.SteamId, main.GetConfigInt("rank_point_generator_finish_scp"));
                }
            }
        }
 public void OnGeneratorFinish(GeneratorFinishEvent ev)
 {
     this.plugin.VerboseError("Event not yet implemented");
 }