mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-12-11 04:41:06 +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.
119 lines
1.6 KiB
Text
119 lines
1.6 KiB
Text
|
|
class DoomKey : Key
|
|
{
|
|
Default
|
|
{
|
|
Radius 20;
|
|
Height 16;
|
|
+NOTDMATCH
|
|
}
|
|
}
|
|
|
|
// Blue key card ------------------------------------------------------------
|
|
|
|
class BlueCard : DoomKey
|
|
{
|
|
Default
|
|
{
|
|
Inventory.Pickupmessage "$GOTBLUECARD";
|
|
Inventory.Icon "STKEYS0";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
BKEY A 10;
|
|
BKEY B 10 bright;
|
|
loop;
|
|
}
|
|
}
|
|
|
|
// Yellow key card ----------------------------------------------------------
|
|
|
|
class YellowCard : DoomKey
|
|
{
|
|
Default
|
|
{
|
|
Inventory.Pickupmessage "$GOTYELWCARD";
|
|
Inventory.Icon "STKEYS1";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
YKEY A 10;
|
|
YKEY B 10 bright;
|
|
loop;
|
|
}
|
|
}
|
|
|
|
// Red key card -------------------------------------------------------------
|
|
|
|
class RedCard : DoomKey
|
|
{
|
|
Default
|
|
{
|
|
Inventory.Pickupmessage "$GOTREDCARD";
|
|
Inventory.Icon "STKEYS2";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
RKEY A 10;
|
|
RKEY B 10 bright;
|
|
loop;
|
|
}
|
|
}
|
|
|
|
// Blue skull key -----------------------------------------------------------
|
|
|
|
class BlueSkull : DoomKey
|
|
{
|
|
Default
|
|
{
|
|
Inventory.Pickupmessage "$GOTBLUESKUL";
|
|
Inventory.Icon "STKEYS3";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
BSKU A 10;
|
|
BSKU B 10 bright;
|
|
loop;
|
|
}
|
|
}
|
|
|
|
// Yellow skull key ---------------------------------------------------------
|
|
|
|
class YellowSkull : DoomKey
|
|
{
|
|
Default
|
|
{
|
|
Inventory.Pickupmessage "$GOTYELWSKUL";
|
|
Inventory.Icon "STKEYS4";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
YSKU A 10;
|
|
YSKU B 10 bright;
|
|
loop;
|
|
}
|
|
}
|
|
|
|
// Red skull key ------------------------------------------------------------
|
|
|
|
class RedSkull : DoomKey
|
|
{
|
|
Default
|
|
{
|
|
Inventory.Pickupmessage "$GOTREDSKUL";
|
|
Inventory.Icon "STKEYS5";
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
RSKU A 10;
|
|
RSKU B 10 bright;
|
|
loop;
|
|
}
|
|
}
|
|
|