;-------------;
; Stripper by ;
;  Pasas1345  ;
;-------------;

;Make the laser boss have hp depending on how many people are there.

add:
{
    "model" "*52"
    "targetname" "stripper_lasers_trigger_adderhp"
    "classname" "trigger_once"
    "origin" "-1520 2304 2336"
    "spawnflags" "1"
    "StartDisabled" "1"
    "filtername" "CTS"

    "OnStartTouch" "nrk1_laserboss_2_break,AddHealth,150,0,-1"
}

modify:
{
    match:
    {
        "targetname" "nrk1_laserboss_2_break"
        "classname" "func_breakable"
    }
    replace:
    {
        "health" "100"
    }
}

modify:
{
    match:
    {
        "targetname" "nrk1_room6_trigger"
        "classname" "logic_relay"
    }
    insert:
    {
        "OnTrigger" "stripper_lasers_trigger_adderhp,Enable,,10.50,-1"
    }
}

;Modify the lasers to make them reduce hp per human die

modify:
{
    match:
    {
        "targetname" "nrk1_laser2_hurt_L"
        "classname" "trigger_hurt"
    }
    insert:
    {
        "OnHurtPlayer" "nrk1_laserboss_2_break,RemoveHealth,100,0,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "nrk1_laser2_hurt_R"
        "classname" "trigger_hurt"
    }
    insert:
    {
        "OnHurtPlayer" "nrk1_laserboss_2_break,RemoveHealth,100,0,-1"
    }
}

modify:
{
    match:
    {
        "targetname" "nrk1_laser2_hurt"
        "classname" "trigger_hurt"
    }
    insert:
    {
        "OnHurtPlayer" "nrk1_laserboss_2_break,RemoveHealth,100,0,-1"
    }
}