Classes:CentaurLeader

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.
Slaughtaurs
Actor type Monster Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number 115 Class Name CentaurLeader
Spawn ID 2 Identifier T_CENTAURLEADER


CentaurCentaurLeader

Slaughtaurs are the elite caste of centaurs. They have 25% more hit points, a lower pain chance, and they know how to use their magic shields not only to gain temporary invulnerability, but also to shoot volleys of energy projectiles at a distant target. This can make them even more frustrating enemies than their lesser brethren.

DECORATE definition

ACTOR CentaurLeader : Centaur
{
  Health 250
  PainChance 96
  Speed 10
  Obituary "$OB_SLAUGHTAUR"
  HitObituary "$OB_SLAUGHTAURHIT"
  States
  {
  Missile:
    CENT E 10 A_FaceTarget
    CENT F 8 Bright A_CustomMissile("CentaurFX", 45, 0, 0, CMF_AIMOFFSET)
    CENT E 10 A_FaceTarget
    CENT F 8 Bright A_CustomMissile("CentaurFX", 45, 0, 0, CMF_AIMOFFSET)
    Goto See
  }
}

Related Classes

Centaur, the parent class, is of course required, as well as the classes for the shield and sword that are spawned in case of gibbing death.