From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do not need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it's actually harmful as it can cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
  5. There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
Undead warrior
Actor type Monster Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number 64 Class Name Knight
Spawn ID 6 Identifier T_KNIGHT

Classes: Knight

The skeletal undead warrior is a common foe throughout Heretic. It wears a magical axe that can throw ethereal throwing axes and sometimes the more powerful blood-dripping red axes. When defeated, it may yield ethereal arrows.

DECORATE definition

ACTOR Knight
  Health 200
  Radius 24
  Height 78
  Mass 150
  Speed 12
  PainChance 100
  SeeSound "hknight/sight"
  AttackSound "hknight/attack"
  PainSound "hknight/pain"
  DeathSound "hknight/death"
  ActiveSound "hknight/active"
  Obituary "$OB_BONEKNIGHT"
  DropItem "CrossbowAmmo", 84, 5

  action native A_KnightAttack();

    KNIG AB 10 A_Look
    KNIG ABCD 4 A_Chase
    KNIG E 10 A_FaceTarget
    KNIG F 8 A_FaceTarget
    KNIG G 8 A_KnightAttack
    KNIG E 10 A_FaceTarget
    KNIG F 8 A_FaceTarget
    KNIG G 8 A_KnightAttack
    Goto See
    KNIG H 3
    KNIG H 3 A_Pain
    Goto See
    KNIG I 6
    KNIG J 6 A_Scream
    KNIG K 6
    KNIG L 6 A_NoBlocking
    KNIG MN 6
    KNIG O -1