gzdoom-gles/wadsrc/static/zscript/doom/doomimp.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

93 lines
1.4 KiB
Text

//===========================================================================
//
// Imp
//
//===========================================================================
class DoomImp : Actor
{
Default
{
Health 60;
Radius 20;
Height 56;
Mass 100;
Speed 8;
PainChance 200;
Monster;
+FLOORCLIP
SeeSound "imp/sight";
PainSound "imp/pain";
DeathSound "imp/death";
ActiveSound "imp/active";
HitObituary "$OB_IMPHIT";
Obituary "$OB_IMP";
}
States
{
Spawn:
TROO AB 10 A_Look;
Loop;
See:
TROO AABBCCDD 3 A_Chase;
Loop;
Melee:
Missile:
TROO EF 8 A_FaceTarget;
TROO G 6 A_TroopAttack ;
Goto See;
Pain:
TROO H 2;
TROO H 2 A_Pain;
Goto See;
Death:
TROO I 8;
TROO J 8 A_Scream;
TROO K 6;
TROO L 6 A_NoBlocking;
TROO M -1;
Stop;
XDeath:
TROO N 5;
TROO O 5 A_XScream;
TROO P 5;
TROO Q 5 A_NoBlocking;
TROO RST 5;
TROO U -1;
Stop;
Raise:
TROO MLKJI 8;
Goto See;
}
}
//===========================================================================
//
// Imp fireball
//
//===========================================================================
class DoomImpBall : Actor
{
Default
{
Radius 6;
Height 8;
Speed 10;
FastSpeed 20;
Damage 3;
Projectile;
+RANDOMIZE
RenderStyle "Add";
Alpha 1;
SeeSound "imp/attack";
DeathSound "imp/shotx";
}
States
{
Spawn:
BAL1 AB 4 BRIGHT;
Loop;
Death:
BAL1 CDE 6 BRIGHT;
Stop;
}
}