Пример #1
0
    private static void nukeDeath()
    {
        Notify("nuke_death");

        GSCFunctions.AmbientStop(1);

        foreach (Entity player in Players)
        {
            if (!player.IsPlayer)
            {
                continue;
            }
            if (isTeamBased)
            {
                if (nukeInfo.HasField("team") && player.SessionTeam == nukeInfo.GetField <string>("team"))
                {
                    continue;
                }
            }
            else
            {
                if (nukeInfo.HasField("player") && player == nukeInfo.GetField <Entity>("player"))
                {
                    continue;
                }
            }

            player.SetField("nuked", true);
            if (player.IsAlive)
            {
                player.FinishPlayerDamage(nukeInfo.GetField <Entity>("player"), nukeInfo.GetField <Entity>("player"), 999999, 0, "MOD_EXPLOSIVE", "nuke_mp", player.Origin, player.Origin, "none", 0);
            }
        }

        nuke_EMPJam();

        nukeIncoming = false;
    }