Classes:Beast

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.
Weredragon
Actor type Monster Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number 70 Class Name Beast
Spawn ID 3 Identifier T_BEAST


Classes: Beast
The Weredragon is a reasonably tough monster exclusive to the registered version of Heretic, appearing as soon as E2M1. It has a powerful ranged attack: a spitted fireball that leaves a trail of smoke. It sometimes drop ethereal crossbows when slain.

DECORATE definition

ACTOR Beast
{
  Health 220
  Radius 32
  Height 74
  Mass 200
  Speed 14
  Painchance 100
  Monster
  +FLOORCLIP
  SeeSound "beast/sight"
  AttackSound "beast/attack"
  PainSound "beast/pain"
  DeathSound "beast/death"
  ActiveSound "beast/active"
  Obituary "$OB_BEAST"
  DropItem "CrossbowAmmo", 84, 10
  States
  {
  Spawn:
    BEAS AB 10 A_Look
    Loop
  See:
    BEAS ABCDEF 3 A_Chase
    Loop
  Missile:
    BEAS H 10 A_FaceTarget
    BEAS I 10 A_CustomComboAttack("BeastBall", 32, random[BeastAttack](1,8)*3, "beast/attack")
    Goto See
  Pain:
    BEAS G 3
    BEAS G 3 A_Pain
    Goto See
  Death:
    BEAS R 6
    BEAS S 6 A_Scream
    BEAS TUV 6
    BEAS W 6 A_NoBlocking
    BEAS XY 6
    BEAS Z -1
    Stop
  XDeath:
    BEAS J 5
    BEAS K 6 A_Scream
    BEAS L 5
    BEAS M 6
    BEAS N 5
    BEAS O 6 A_NoBlocking
    BEAS P 5
    BEAS Q -1
    Stop
  }
}