Classes:Demon

From ZDoom Wiki
Revision as of 20:26, 30 June 2008 by Gez (talk | contribs)
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.
Demon
Actor type Monster Game MiniDoomLogoIcon.png (Doom)
DoomEd Number 3001 Class Name Demon
Spawn ID 8 Identifier T_DEMON


Classes: Demon
 →DeadDemon
 →Spectre
 →StealthDemon


The Demon also known as Pinky Demon, is the first and only monster which won't shoot or fire at you from a distance. Instead, it will hunt you down and get up close and personal to bite you. Can be a low to high threat, depending on the number of Demons.


DECORATE definition

actor Demon 3002
{
  spawnid 8
  hitobituary "%o was bit by a demon."
  health 150
  painchance 180
  speed 10
  radius 30
  height 56
  mass 400
  seesound "demon/sight"
  attacksound "demon/melee"
  painsound "demon/pain"
  deathsound "demon/death"
  activesound "demon/active"
  MONSTER
  +FLOORCLIP
  states
  {
  Spawn:
    SARG AB 10 A_Look
    loop
  See:
    SARG AABBCCDD 2 A_Chase
    loop
  Melee:
    SARG EF 8 A_FaceTarget
    SARG G 8 A_SargAttack
    goto See
  Pain:
    SARG H 2
    SARG H 2 A_Pain
    goto See
  Death:
    SARG I 8
    SARG J 8 A_Scream
    SARG K 4
    SARG L 4 A_NoBlocking
    SARG M 4
    SARG N -1
    stop
  Raise:
    SARG NMLKJI 5
    goto See
  }
}

note: On nightmare skill all states durations are divided by 2.