mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 17:21:24 +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.
69 lines
1 KiB
Text
69 lines
1 KiB
Text
|
|
// Armor bonus --------------------------------------------------------------
|
|
|
|
class ArmorBonus : BasicArmorBonus
|
|
{
|
|
Default
|
|
{
|
|
Radius 20;
|
|
Height 16;
|
|
Inventory.Pickupmessage "$GOTARMBONUS";
|
|
Inventory.Icon "ARM1A0";
|
|
Armor.Savepercent 33.335;
|
|
Armor.Saveamount 1;
|
|
Armor.Maxsaveamount 200;
|
|
+COUNTITEM
|
|
+INVENTORY.ALWAYSPICKUP
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
BON2 ABCDCB 6;
|
|
loop;
|
|
}
|
|
}
|
|
|
|
// Green armor --------------------------------------------------------------
|
|
|
|
class GreenArmor : BasicArmorPickup
|
|
{
|
|
Default
|
|
{
|
|
Radius 20;
|
|
Height 16;
|
|
Inventory.Pickupmessage "$GOTARMOR";
|
|
Inventory.Icon "ARM1A0";
|
|
Armor.SavePercent 33.335;
|
|
Armor.SaveAmount 100;
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
ARM1 A 6;
|
|
ARM1 B 7 bright;
|
|
loop;
|
|
}
|
|
}
|
|
|
|
// Blue armor ---------------------------------------------------------------
|
|
|
|
class BlueArmor : BasicArmorPickup
|
|
{
|
|
Default
|
|
{
|
|
Radius 20;
|
|
Height 16;
|
|
Inventory.Pickupmessage "$GOTMEGA";
|
|
Inventory.Icon "ARM2A0";
|
|
Armor.Savepercent 50;
|
|
Armor.Saveamount 200;
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
ARM2 A 6;
|
|
ARM2 B 6 bright;
|
|
loop;
|
|
}
|
|
}
|
|
|