qzdoom-gpl/wadsrc/static/zscript/doom/revenant.txt
Christoph Oelckers 784f7ed671 - converted all of Doom's actors.
- fixed a few problems that were encountered during conversion:
 * action specials as action functions were not recognized by the parser.
 * Player.StartItem could not be parsed.
 * disabled the naming hack for PowerupType. ZScript, unlike DECORATE will never prepend 'Power' to the power's name, it always needs to specified by its full name.
 * states and defaults were not checked for empty bodies.
 * the scope qualifier for goto labels was not properly converted to a string, because it is an ENamedName, not an FName.
2016-10-14 20:08:41 +02:00

122 lines
2 KiB
Text

//===========================================================================
//
// Revenant
//
//===========================================================================
class Revenant : Actor
{
Default
{
Health 300;
Radius 20;
Height 56;
Mass 500;
Speed 10;
PainChance 100;
Monster;
MeleeThreshold 196;
+MISSILEMORE
+FLOORCLIP
SeeSound "skeleton/sight";
PainSound "skeleton/pain";
DeathSound "skeleton/death";
ActiveSound "skeleton/active";
MeleeSound "skeleton/melee";
HitObituary "$OB_UNDEADHIT";
Obituary "$OB_UNDEAD";
}
States
{
Spawn:
SKEL AB 10 A_Look;
Loop;
See:
SKEL AABBCCDDEEFF 2 A_Chase;
Loop;
Melee:
SKEL G 0 A_FaceTarget;
SKEL G 6 A_SkelWhoosh;
SKEL H 6 A_FaceTarget;
SKEL I 6 A_SkelFist;
Goto See;
Missile:
SKEL J 0 BRIGHT A_FaceTarget;
SKEL J 10 BRIGHT A_FaceTarget;
SKEL K 10 A_SkelMissile;
SKEL K 10 A_FaceTarget;
Goto See;
Pain:
SKEL L 5;
SKEL L 5 A_Pain;
Goto See;
Death:
SKEL LM 7;
SKEL N 7 A_Scream;
SKEL O 7 A_NoBlocking;
SKEL P 7;
SKEL Q -1;
Stop;
Raise:
SKEL Q 5;
SKEL PONML 5;
Goto See;
}
}
//===========================================================================
//
// Revenant Tracer
//
//===========================================================================
class RevenantTracer : Actor
{
Default
{
Radius 11;
Height 8;
Speed 10;
Damage 10;
Projectile;
+SEEKERMISSILE
+RANDOMIZE
SeeSound "skeleton/attack";
DeathSound "skeleton/tracex";
RenderStyle "Add";
}
States
{
Spawn:
FATB AB 2 BRIGHT A_Tracer;
Loop;
Death:
FBXP A 8 BRIGHT;
FBXP B 6 BRIGHT;
FBXP C 4 BRIGHT;
Stop;
}
}
//===========================================================================
//
// Revenant Tracer Smoke
//
//===========================================================================
class RevenantTracerSmoke : Actor
{
Default
{
+NOBLOCKMAP
+NOGRAVITY
+NOTELEPORT
RenderStyle "Translucent";
Alpha 0.5;
}
States
{
Spawn:
PUFF ABABC 4;
Stop;
}
}