mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-06 04:50:26 +00:00
784f7ed671
- 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.
44 lines
670 B
Text
44 lines
670 B
Text
//===========================================================================
|
|
//
|
|
// Commander Keen
|
|
//
|
|
//===========================================================================
|
|
class CommanderKeen : Actor
|
|
{
|
|
Default
|
|
{
|
|
Health 100;
|
|
Radius 16;
|
|
Height 72;
|
|
Mass 10000000;
|
|
PainChance 256;
|
|
+SOLID
|
|
+SPAWNCEILING
|
|
+NOGRAVITY
|
|
+SHOOTABLE
|
|
+COUNTKILL
|
|
+NOICEDEATH
|
|
+ISMONSTER
|
|
PainSound "keen/pain";
|
|
DeathSound "keen/death";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
KEEN A -1;
|
|
Loop;
|
|
Death:
|
|
KEEN AB 6;
|
|
KEEN C 6 A_Scream;
|
|
KEEN DEFGH 6;
|
|
KEEN I 6;
|
|
KEEN J 6;
|
|
KEEN K 6 A_KeenDie;
|
|
KEEN L -1;
|
|
Stop;
|
|
Pain:
|
|
KEEN M 4;
|
|
KEEN M 8 A_Pain;
|
|
Goto Spawn;
|
|
}
|
|
}
|