Actor Illus
{
//Creator: "pdxbla's "VDP-MonsterRandomizer" & ElAnexo
//Origin: Realm667
//Sprite: ILLS
//Title: "Illus"
  Species "Imps"
  Health 275
  Radius 20
  Height 56
  Mass 250
  Speed 12
  BloodColor "00 00 01"
  Monster
  RenderStyle Translucent
  Alpha 0.8
  MaxTargetRange 512
  MeleeDamage 8
  +FloorClip
  +MISSILEMORE
  +MISSILEEVENMORE
  DamageFactor 0.85
  DamageFactor "ImpComet", 0.0
  DamageFactor "Cyber10K", 0.5
  DamageFactor "PDTBFG", 0.6
  DamageFactor "PDTBFGTracer", 0.9
  SeeSound "Illus/Sight"
  DeathSound "Illus/Death"
  ActiveSound "Illus/Active"
  MeleeSound "Illus/Melee"
  Obituary "%o was forced clawed inside by an illus"
  tag "\c[black]Illusionist Imp\c-"
  DropItem "LifeEssence" 256
  DropItem "ArmorBonusMax" 256
  DropItem "DustMana" 128, 60
  DropItem "ElusiveSphere" 25
  States
  {
  Spawn:
    ILLS AAAAAAAAAABBBBBBBBBB 1 Bright A_Look
    Loop
  See:
    ILLS A 3 Bright A_Chase
    ILLS A 0 A_SpawnItemEx("IllusImageA", 0, 0, 0, 0, 0, 0, 0, 128)
    ILLS A 3 Bright A_Chase
    ILLS A 0 A_SpawnItemEx("IllusImageA", 0, 0, 0, 0, 0, 0, 0, 128)
    ILLS B 3 Bright A_Chase
    ILLS B 0 A_SpawnItemEx("IllusImageB", 0, 0, 0, 0, 0, 0, 0, 128)
    ILLS B 3 Bright A_Chase
    ILLS B 0 A_SpawnItemEx("IllusImageB", 0, 0, 0, 0, 0, 0, 0, 128)
    ILLS C 3 Bright A_Chase
    ILLS C 0 A_SpawnItemEx("IllusImageC", 0, 0, 0, 0, 0, 0, 0, 128)
    ILLS C 3 Bright A_Chase
    ILLS C 0 A_SpawnItemEx("IllusImageC", 0, 0, 0, 0, 0, 0, 0, 128)
    ILLS D 3 Bright A_Chase
    ILLS D 0 A_SpawnItemEx("IllusImageD", 0, 0, 0, 0, 0, 0, 0, 128)
    ILLS D 3 Bright A_Chase
    ILLS D 0 A_SpawnItemEx("IllusImageD", 0, 0, 0, 0, 0, 0, 0, 128)
    Loop
  Melee:
    ILLS EFG 5 Bright A_FaceTarget
    ILLS H 6 Bright A_MeleeAttack
    Goto See
  Missile:
    ILLS EFG 5 Bright A_FaceTarget
    ILLS H 6 Bright A_PainAttack("IllusGhost")
    Goto See
  Death:
    ILLS I 0 A_Scream
    ILLS I 0 A_NoBlocking
    ILLS I 3 Bright A_FadeOut(0.02)
    Goto Death+2
  }
}

Actor IllusGhost
{
  Radius 20
  Height 56
  Mass 250
  Speed 25
  Obituary "%o was clawed inside by an illus"
  RenderStyle Translucent
  Alpha 0.4
  MeleeDamage 16
  MeleeSound "Illus/Melee"
  +NoTeleport
  +FloorClip
  -Solid
  -Shootable
  +NonShootable
  +LookAllAround
  +Dropoff
  +NoClip
  States
  {
  Spawn:
    TNT1 A 0
  See:
    TNT1 A 0 A_JumpIfInventory("IllusCounter", 20, "Death")
    TNT1 AAAAAAAAAA 0 A_Chase
    TNT1 A 1 A_GiveInventory("IllusCounter", 1)
    Loop
  Melee:
    ILLS EFG 2 Bright A_FaceTarget
    ILLS H 4 Bright A_MeleeAttack
  Death:
    TNT1 A 1
    Stop
  }
}

Actor IllusCounter : Inventory { Inventory.MaxAmount 20 }

Actor IllusImageA
{
  Radius 4
  Height 8
  Speed 0
  Damage 0
  Mass 75
  RenderStyle "Translucent"
  Alpha 0.3
  Projectile
  States
  {
  Spawn:
    ILLS A 10 Bright
    Stop
  }
}

Actor IllusImageB
{
  Radius 4
  Height 8
  Speed 0
  Damage 0
  Mass 75
  RenderStyle "Translucent"
  Alpha 0.3
  Projectile
  States
  {
  Spawn:
    ILLS B 10 Bright
    Stop
  }
}

Actor IllusImageC
{
  Radius 4
  Height 8
  Speed 0
  Damage 0
  Mass 75
  RenderStyle "Translucent"
  Alpha 0.3
  Projectile
  States
  {
  Spawn:
    ILLS C 10 Bright
    Stop
  }
}

Actor IllusImageD
{
  Radius 4
  Height 8
  Speed 0
  Damage 0
  Mass 75
  RenderStyle "Translucent"
  Alpha 0.3
  Projectile
  States
  {
  Spawn:
    ILLS D 10 Bright
    Stop
  }
}
