#include "inc_misc_tools"
void main()
    {
    object oPC = GetLastPlayerDying();
    int iHP = GetCurrentHitPoints(oPC);
    GeneratePCLootBag(oPC);
    SetLocalInt(oPC,"HP",iHP);
    PlayVoiceChat(VOICE_CHAT_NEARDEATH ,oPC);
    if (iHP == 0)
        SetLocalInt(oPC,"Disabled",TRUE);
    if (iHP < 0)
        SetLocalInt(oPC,"Unstable",TRUE);
    if (!GetLocalInt(oPC,"Minus10Rule"))
        {
        SetLocalInt(oPC,"Minus10Rule",TRUE);
        DelayCommand(RoundsToSeconds(1),AssignCommand(oPC,ExecuteScript("minus10rule",oPC)));
        }
    }
