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")); } }
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(); } } }
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); } } }
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()); } } }