ACTOR PhaseImp 24105
{
//$Category Stronghold_Monsters
    painchance "Stunner", 128

    SpawnID 232
    Health 150
    Radius 20
    Height 56
    Mass 120
    Speed 8
    PainChance 192
    MeleeDamage 4
    MONSTER
    +FLOORCLIP
    SeeSound "neodarkimp/sight"
    PainSound "neodarkimp/pain"
    DeathSound "neodarkimp/death"
    ActiveSound "neodarkimp/active"
    MeleeSound "neodarkimp/melee"
    Obituary "%o was incinerated by a phase imp."
    HitObituary "%o was scratched by a phase imp."
    MissileType DarkImpBall
	Tag "Phase Imp"
    States
    {
    Spawn:
        DIMP AB 10 A_Look
        Loop
    See:
        DIMP AABBCCDD 3 A_Chase
        Loop
        DIMP AABBCCDDAABBCCDDAABBCCDDAABBCCDD 1 A_ExtChase(0,0)
        DIMP AABBCCDDAABBCCDD 1 A_Chase
        Goto See+40
    Melee:
        DIMP E 0 A_UnHideThing
        DIMP E 0 A_SetTranslucent(1)
        DIMP EF 8 A_FaceTarget
        DIMP G 6 A_ComboAttack
        Goto See
    Missile:
        DIMP E 0 A_Jump (64,6)
        DIMP E 0 A_UnHideThing
        DIMP E 0 A_SetTranslucent(1)
        DIMP EF 8 A_FaceTarget
        DIMP G 6 A_ComboAttack
        Goto See
        DIMP E 0
        DIMP E 0 A_PlaySound("neodarkimp/teleport")
        DIMP E 8 Bright A_FaceTarget
        DIMP E 0 A_FaceTarget
        DIMP E 1 Bright A_SetTranslucent(0.9)
        DIMP E 1 Bright A_SetTranslucent(0.8)
        DIMP E 1 Bright A_SetTranslucent(0.7)
        DIMP E 1 Bright A_SetTranslucent(0.6)
        DIMP E 1 Bright A_SetTranslucent(0.5)
        DIMP E 1 Bright A_SetTranslucent(0.4)
        DIMP E 1 Bright A_SetTranslucent(0.3)
        DIMP E 1 Bright A_SetTranslucent(0.2)
        DIMP E 1 Bright A_SetTranslucent(0.1)
        DIMP E 0 A_HideThing
        Goto See+8
    Pain:
        DIMP H 0 A_UnHideThing
        DIMP H 2 A_SetTranslucent(1)
        DIMP H 2 A_Pain
        Goto See
    Pain.Stunner:
       	DIMP H 2 A_ChangeFlag("NoPain", 1)
       	DIMP H 300 A_Pain
       	DIMP H 0 A_ChangeFlag("NoPain", 0)
       	goto See
    Death:
        TNT1 A 0 A_GiveToTarget("AwardItem", 7)
        DIMP I 0 A_UnHideThing
        DIMP I 8 A_SetTranslucent(1)
        DIMP J 8 A_Scream
        DIMP K 6
        DIMP L 6 A_Fall
        DIMP M 3000 CanRaise
        DIMO MMMMMMMMMMMM 2 A_FadeOut(0.1)
        Stop
    XDeath:
        TNT1 A 0 A_GiveToTarget("AwardItem", 10)
        DIMP N 0 A_UnHideThing
        DIMP N 5 A_SetTranslucent(1)
        DIMP O 5 A_XScream
        DIMP P 5 A_Fall
        DIMP RST 5
        DIMP U 3000 CanRaise
        DIMP UUUUUUUUUUUU 2 A_FadeOut(0.1)
        Stop
    Raise:
        DIMP LK 8
        DIMP JI 6
        Goto See
    }
}

ACTOR DarkImpBall
{
    Radius 6
    Height 8
    Speed 10
    Damage 4
    PROJECTILE
    +SEEKERMISSILE
    SeeSound "neodarkimp/attack"
    DeathSound "neodarkimp/shotx"
    RenderStyle Add
    Alpha 0.75
    States
    {
    Spawn:
        DIMB AB 4 Bright A_SeekerMissile (20,0)
        Loop
    Death:
        DIMB CDE 6 Bright
        Stop
    }
}
