Classes:KnightGhost: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
Content deleted Content added
Grimm (talk | contribs)
added decorate def
No edit summary
Line 1: Line 1:
{{Actor|
| type = Monster
| name = Ghost Warrior
| class = KnightGhost
| game = Heretic
| doomednum = 65
| spawnid = 129
| spawnname = T_KNIGHTGHOST
}}
[[Classes]]: [[Classes:Knight|Knight]]&rarr;<u>KnightGhost</u>
[[Classes]]: [[Classes:Knight|Knight]]&rarr;<u>KnightGhost</u>



Revision as of 22:35, 30 June 2008

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.
Ghost Warrior
Actor type Monster Game (Heretic)
DoomEd Number 65 Class Name KnightGhost
Spawn ID 129 Identifier T_KNIGHTGHOST


Classes: KnightKnightGhost

The Ghost version of the Undead Warrior. Contrarily to its Skeletal variant, all his attacks use the more powerful bloody axe rather than the usual ethereal axe. Being a ghost, physical projectiles, such as the Phoenix shot or the Firemace's attacks, pass through him without causing any harm.

DECORATE definition

Note: The Undead Warrior Ghost's code has not been officially exported from the ZDoom EXE into the Decorate format. The definition below was provided by a user and may not be a 100% accurate recreation.


ACTOR KnightGhost : Knight 65
{
  +SHADOW
  +GHOST
  renderstyle translucent
  alpha 0.4
  States
  {
  Melee:
  Missile:
     KNIG E 10 A_FaceTarget
     KNIG F 8 A_FaceTarget
     KNIG G 8 A_CustomComboAttack("RedAxe",36,(3*random(1,10)),"hknight/melee")
     KNIG E 10 A_FaceTarget
     KNIG F 8 A_FaceTarget
     KNIG G 8 A_CustomComboAttack("RedAxe",36,(3*random(1,10)),"hknight/melee")
     goto See
  }
}