Пример #1
0
 public void OnSetRoleMaxHP(SetRoleMaxHPEvent ev)
 {
     /// <summary>
     /// Called when the max HP of each role is being set. This happens every round.
     /// <summary>
     plugin.SendMessageAsync(plugin.GetConfigString("discord_channel_onsetrolemaxhp"), plugin.MultiLanguage(8) + ev.Role + plugin.MultiLanguage(9) + ev.MaxHP + ".");
 }
Пример #2
0
 public void OnSetRoleMaxHP(SetRoleMaxHPEvent ev)
 {
     if (GamemodeManager.GamemodeManager.GetCurrentMode().Equals(plugin))
     {
         if (ev.Role == Role.SCP_049)
         {
             ev.MaxHP = 3000;
         }
     }
 }
Пример #3
0
        /// <summary>
        /// Called when the max HP of each role is being set. This happens every round.
        /// </summary>
        public void OnSetRoleMaxHP(SetRoleMaxHPEvent ev)
        {
            Dictionary <string, string> variables = new Dictionary <string, string>
            {
                { "maxhp", ev.MaxHP.ToString() },
                { "role", ev.Role.ToString() }
            };

            this.plugin.SendMessage(Config.GetArray("channels.onsetrolemaxhp"), "team.onsetrolemaxhp", variables);
        }
Пример #4
0
 public void OnSetRoleMaxHP(SetRoleMaxHPEvent e)
 {
     if (e.Role == Role.SCP_106 && SCP457.HasSCP457())
     {
         e.MaxHP = this.plugin.GetConfigInt("scp457_health");
         this.plugin.Info(string.Concat(new object[]
         {
             "Setting max health for SCP-457 to ", e.MaxHP, " for ", e.Role
         }));
     }
 }
Пример #5
0
        public void OnSetRoleMaxHP(SetRoleMaxHPEvent ev)
        {
            /// <summary>
            /// Called when the max HP of each role is being set. This happens every round.
            /// <summary>
            Dictionary <string, string> variables = new Dictionary <string, string>
            {
                { "maxhp", ev.MaxHP.ToString() },
                { "role", ev.Role.ToString() }
            };

            plugin.SendMessage(Config.GetArray("channels.onsetrolemaxhp"), "team.onsetrolemaxhp", variables);
        }
Пример #6
0
        public void OnSetRoleMaxHP(SetRoleMaxHPEvent ev)
        {
            //if (Config.GetBoolValue("po_gamemodemanager", true))
            //{
            //    if (GamemodeManager.GamemodeManager.CurrentMode != plugin) return;
            //}
            //else
            //{
            //    if (!plugin.isActive) return;
            //}

            //if (ev.Role == Role.SCP_173)
            //{
            //    ev.MaxHP = 310;
            //}
        }
        public void OnSetRoleMaxHP(SetRoleMaxHPEvent ev)
        {
            if (Config.GetBoolValue("po_gamemodemanager", true))
            {
                if (GamemodeManager.GamemodeManager.CurrentMode != plugin)
                {
                    return;
                }
            }
            else
            {
                if (!plugin.isActive)
                {
                    return;
                }
            }

            if (ev.Role == Role.SCP_173)
            {
                ev.MaxHP = 310;
            }
        }