Exemplo n.º 1
0
        internal void OnDetonated()
        {
            AnnouncementSettings settings = SimpleCassie.Instance.Config.WarheadDetonation;

            Log.Info(
                $"RoundStart: {settings.Enabled}, roundStartMsg: {settings.Message}, roundStartDelay: {settings.Delay}, roundStartNoise: {settings.MakeNoise}");
            Timing.RunCoroutine(Extensions.CassieMessage(settings.Message, false, settings.MakeNoise,
                                                         settings.Delay));
        }
Exemplo n.º 2
0
        public void OnRoundEnded(RoundEndedEventArgs ev)
        {
            AnnouncementSettings settings = SimpleCassie.Instance.Config.RoundEnd;

            Log.Info(
                $"RoundStart: {settings.Enabled}, roundStartMsg: {settings.Message}, roundStartDelay: {settings.Delay}, roundStartNoise: {settings.MakeNoise}");
            Timing.RunCoroutine(Extensions.CassieMessage(settings.Message, false, settings.MakeNoise,
                                                         settings.Delay));
        }
Exemplo n.º 3
0
 internal void OnStarting(StartingEventArgs ev)
 {
     if (ev.IsAllowed)
     {
         AnnouncementSettings settings = SimpleCassie.Instance.Config.WarheadStart;
         Log.Info(
             $"RoundStart: {settings.Enabled}, roundStartMsg: {settings.Message}, roundStartDelay: {settings.Delay}, roundStartNoise: {settings.MakeNoise}");
         Timing.RunCoroutine(Extensions.CassieMessage(settings.Message, false, settings.MakeNoise,
                                                      settings.Delay));
     }
 }
Exemplo n.º 4
0
 public void OnRespawningTeam(RespawningTeamEventArgs ev)
 {
     if (ev.NextKnownTeam == SpawnableTeamType.ChaosInsurgency)
     {
         AnnouncementSettings settings = SimpleCassie.Instance.Config.ChaosRespawn;
         Log.Info(
             $"ChaosRespawn: {settings.Enabled}, roundStartMsg: {settings.Message}, roundStartDelay: {settings.Delay}, roundStartNoise: {settings.MakeNoise}");
         Timing.RunCoroutine(Extensions.CassieMessage(settings.Message, false, settings.MakeNoise,
                                                      settings.Delay));
     }
     else if (ev.NextKnownTeam == SpawnableTeamType.NineTailedFox)
     {
         AnnouncementSettings settings = SimpleCassie.Instance.Config.MtfRespawn;
         Log.Info(
             $"MtfRespawn: {settings.Enabled}, roundStartMsg: {settings.Message}, roundStartDelay: {settings.Delay}, roundStartNoise: {settings.MakeNoise}");
         Timing.RunCoroutine(Extensions.CassieMessage(settings.Message, false, settings.MakeNoise,
                                                      settings.Delay));
     }
 }