Classes:KnightGhost: Difference between revisions

From ZDoom Wiki
Jump to navigation Jump to search
Content deleted Content added
Kenon (talk | contribs)
New page: The Undead Warriors are enemies from Heretic. They look like skeletons in armor with horned helmets and red capes. When attacking from a distance, they throw green enchanted axes, or blood...
 
Blue Shadow (talk | contribs)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Actor|
The Undead Warriors are enemies from Heretic. They look like skeletons in armor with horned helmets and red capes. When attacking from a distance, they throw green enchanted axes, or bloody red axes that deal extra damage. At close range, they slash with their axe. There is also a ghost version, which throws only red axes. When killed, Undead Warriors sometimes drop Ethereal Arrows.
| 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]], 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.
Some source ports refer to the Undead Warrior as "Knight" or "Skeleton".


==== [[DECORATE]] definition ====
ACTOR FKnightGhost 3001
ACTOR <u>KnightGhost</u> : {{Class|Knight}}
{
{
+{{Flag|SHADOW}}
Health 200
+{{Flag|GHOST}}
Radius 24
{{Property|RenderStyle}} Translucent
Height 78
{{Property|Alpha}} 0.4
Mass 150
Speed 12
PainChance 33
MONSTER
+GHOST
SeeSound "Knight/sight"
AttackSound "Knight/attack"
PainSound "Knight/pain"
DeathSound "Knight/death"
ActiveSound "Knight/active"
States
{
Spawn:
KNIG A 5 A_Look
KNIG B 5 A_Look
Loop
See:
KNIG A 4 A_CHASE
KNIG B 4 A_CHASE
KNIG C 4 A_CHASE
KNIG D 4 A_CHASE
Loop
Missile:
KNIG E 10 A_FACETARGET
KNIG F 8 A_FACETARGET
KNIG G 0 A_Jump(43, 3)
KNIG G 8 A_CustomMissile("[[Classes:GreenAxe|GreenAxe]]",32,0,0,0)
goto see
//GreenAxe
KNIG G 8 A_CustomMissile("[[Classes:GreenAxe|GreenAxe]]",32,0,0,0)
goto see
//RedAxe
KNIG G 8 A_CustomMissile("[[Classes:GreenAxe|RedAxe]]",32,0,0,0)
goto see
Pain:
KNIG H 3
KNIG H 3 A_PlaySound("knight/pain")
goto see
Death:
KNIG I 6 A_PlaySound("knight/death")
KNIG J 6
KNIG K 6
KNIG L 6 A_NoBlocking
KNIG M 6
KNIG N 6
KNIG O -1
Stop
}
}
}

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
}