Classes:MinotaurFriend

From ZDoom Wiki
Revision as of 03:57, 14 November 2012 by Blue Shadow (talk | contribs) (→‎DECORATE definition: Updated.)
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.
Dark Servant
Actor type Monster Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number None Class Name MinotaurFriend


Classes: MinotaurMinotaurFriend

Dark servants are maulotaurs summoned through the dark servant artifact who attack the foes of his invoker. Excepted for this change of allegiance, they behave identically to Heretic's maulotaurs, but vanish in a puff of smoke when vanquished, and leave neither corpse nor items behind.

For this reason, Hexen does not have all the frames corresponding to the Maulotaur's death, and as a consequence the other sprites are labeled differently. However, ZDoom renames the Hexen attack sprites to prevent conflicts and it is thus possible to use maulotaurs in Hexen and dark servants in Heretic with all their correct animations, as long as the needed sprites are provided.

Minotaur friends use the following actor fields for specific purposes:

StartTime
moment it was summoned — this field is absent from other actors
tracer
player that summoned it

DECORATE definition

ACTOR MinotaurFriend : Minotaur native
{
  Health 2500
  -DROPOFF
  -BOSS
  -DONTMORPH
  +FRIENDLY
  +NOTARGETSWITCH
  +STAYMORPHED
  +TELESTOMP
  +SUMMONEDMONSTER
  RenderStyle Translucent
  Alpha 0.3333
  DropItem "None"
  States
  {
  Spawn:
    MNTR A 15
    MNTR A 15 A_SetTranslucent(0.66, 0)
    MNTR A 3 A_SetTranslucent(1, 0)
    Goto Super::Spawn
  Idle:
    Goto Super::Spawn
  Death:
    Goto FadeOut
  }
}

Related Classes

The parent class Minotaur is of course needed, as well as its own related classes. Also needed are MinotaurSmoke and MinotaurSmokeExit for the Dark Servant's summoning and unsummoning special effects.