Classes:CommanderKeen

From ZDoom Wiki
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.
Commander Keen
Actor type Monster Game MiniDoom2LogoIcon.png (Doom2)
DoomEd Number 72 Class Name CommanderKeen


Classes: CommanderKeen

A character from the Commander Keen series, he just hangs from the ceiling and doesn't do anything. When all Keens present on a level are killed, any door tagged 666 is opened.


DECORATE definition

ACTOR CommanderKeen
{
  Health 100
  Radius 16
  Height 72
  Mass 10000000
  PainChance 256
  +SOLID
  +SPAWNCEILING
  +NOGRAVITY
  +SHOOTABLE
  +COUNTKILL
  +NOICEDEATH
  +ISMONSTER
  PainSound "keen/pain"
  DeathSound "keen/death"
  States
  {
  Spawn:
    KEEN A -1
    Loop
  Death:
    KEEN AB 6
    KEEN C 6 A_Scream
    KEEN DEFGH	6
    KEEN I 6
    KEEN J 6
    KEEN K 6 A_KeenDie
    KEEN L -1
    Stop
  Pain:
    KEEN M 4
    KEEN M 8 A_Pain
    Goto Spawn
  }
}