Classes:KnightGhost: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
Content deleted Content added
Grimm (talk | contribs)
added decorate def
Blue Shadow (talk | contribs)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Actor|
[[Classes]]: [[Classes:Knight|Knight]]&rarr;<u>KnightGhost</u>
| type = Monster
| name = Ghost warrior
| class = KnightGhost
| game = Heretic
| doomednum = 65
| spawnid = 129
| spawnname = T_KNIGHTGHOST
}}[[Classes]]: [[Classes:Knight|Knight]]&rarr;<u>KnightGhost</u>


The Ghost version of the [[Classes:Knight|Undead Warrior]]. Contrarily to its Skeletal variant, all his attacks use the more powerful [[Classes:RedAxe|bloody axe]] rather than the usual [[Classes:KnightAxe|ethereal axe]]. Being a ghost, physical projectiles, such as the [[Classes:PhoenixFX1|Phoenix shot]] or the [[Classes:Mace|Firemace]]'s attacks, pass through him without causing any harm.
The ghost version of the [[Classes:Knight|undead warrior]]. Contrarily to its skeletal variant, all his attacks use the more powerful [[Classes:RedAxe|bloody axe]] rather than the usual [[Classes:KnightAxe|ethereal axe]], this difference in behavior is handled by the native action [[A_KnightAttack]] rather than by the actor's [[DECORATE]] code. Being a ghost, physical projectiles, such as the [[Classes:PhoenixFX1|phoenix shot]] or the [[Classes:Mace|firemace]]'s attacks, pass through him without causing any harm.


==== [[DECORATE]] definition ====
==== [[DECORATE]] definition ====
ACTOR <u>KnightGhost</u> : {{Class|Knight}}

{{Note|text=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
+{{Flag|SHADOW}}
+GHOST
+{{Flag|GHOST}}
{{Property|RenderStyle}} Translucent
renderstyle translucent
alpha 0.4
{{Property|Alpha}} 0.4
States
{
Melee:
Missile:
KNIG E 10 A_FaceTarget
KNIG F 8 A_FaceTarget
KNIG G 8 A_CustomComboAttack("[[Classes:RedAxe|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
}
}
}

Latest revision as of 21:02, 30 April 2015

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, this difference in behavior is handled by the native action A_KnightAttack rather than by the actor's DECORATE code. Being a ghost, physical projectiles, such as the phoenix shot or the firemace's attacks, pass through him without causing any harm.

DECORATE definition

ACTOR KnightGhost : Knight
{
  +SHADOW
  +GHOST
  RenderStyle Translucent
  Alpha 0.4
}