Classes:Ironlich

From ZDoom Wiki
(Redirected from Classes:IronLich)
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
Iron lich
Actor type Monster Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number 6 Class Name IronLich
Spawn ID 20 Identifier T_IRONLICH


Classes: IronLich

An iron lich looks nothing like the traditional fantasy lich: they are gigantic helmeted iron skulls, animated by magic and blasting their targets with elemental attacks. Their native action A_LichAttack will result either in a powerful bite if the target is close enough, or in a spell otherwise: either a whirlwind, a ice ball that explodes into tiny shards, or a column of fireballs.

In Heretic.wad, the sprites are actually named HEAD* and are renamed at load-time by ZDoom.

DECORATE definition

ACTOR Ironlich
{
  Health 700
  Radius 40
  Height 72
  Mass 325
  Speed 6
  PainChance 32
  Monster
  +NOBLOOD
  +DONTMORPH
  +DONTSQUASH
  +BOSSDEATH
  SeeSound "ironlich/sight"
  AttackSound "ironlich/attack"
  PainSound "ironlich/pain"
  DeathSound "ironlich/death"
  ActiveSound "ironlich/active"
  Obituary "$OB_IRONLICH"
  HitObituary "$OB_IRONLICHHIT"
  DropItem "BlasterAmmo", 84, 10
  DropItem "ArtiEgg", 51, 0

  action native A_LichAttack();

  States
  {
  Spawn:
    LICH A 10 A_Look
    Loop
  See:
    LICH A 4 A_Chase
    Loop
  Missile:
    LICH A 5 A_FaceTarget
    LICH B 20 A_LichAttack
    Goto See
  Pain:
    LICH A 4
    LICH A 4 A_Pain
    Goto See
  Death:
    LICH C 7
    LICH D 7 A_Scream
    LICH EF 7
    LICH G 7 A_NoBlocking
    LICH H 7
    LICH I -1 A_BossDeath
    Stop
  }
}