Esempio n. 1
0
        public static void Carpenter(Entity player)
        {
            Hud.BonusDropTakeHud(player, "Carpenter", "cardicon_biohazard");

            foreach (var item in MapEdit.doors)
            {
                item.SetField("hp", item.GetField <int>("maxhp"));
            }
        }
Esempio n. 2
0
 public static void MaxAmmo(Entity player)
 {
     Hud.BonusDropTakeHud(player, "Max Ammo", "waypoint_ammo_friendly");
     foreach (var item in Utility.GetPlayers())
     {
         if (item.GetTeam() == "allies")
         {
             item.GiveAmmo();
         }
     }
 }
Esempio n. 3
0
        public static void BonusPoints(Entity player)
        {
            Hud.BonusDropTakeHud(player, "Bonus Points", "cardicon_8ball");

            foreach (var item in Utility.GetPlayers())
            {
                if (item.GetTeam() == "allies" && item.IsAlive)
                {
                    item.WinPoint(5);
                }
            }
        }
Esempio n. 4
0
        public static void Nuke(Entity player)
        {
            player.WinCash(400);
            Hud.BonusDropTakeHud(player, "Nuke", "dpad_killstreak_nuke");

            foreach (var item in Utility.GetPlayers())
            {
                if (item.GetTeam() == "axis" && item.IsAlive)
                {
                    item.AfterDelay(600, e => item.SelfExploed());
                }
            }
        }