qzdoom/wadsrc/static/zscript/doom/doomhealth.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

54 lines
798 B
Text

// Health bonus -------------------------------------------------------------
class HealthBonus : Health
{
Default
{
+COUNTITEM
+INVENTORY.ALWAYSPICKUP
Inventory.Amount 1;
Inventory.MaxAmount 200;
Inventory.PickupMessage "$GOTHTHBONUS";
}
States
{
Spawn:
BON1 ABCDCB 6;
Loop;
}
}
// Stimpack -----------------------------------------------------------------
class Stimpack : Health
{
Default
{
Inventory.Amount 10;
Inventory.PickupMessage "$GOTSTIM";
}
States
{
Spawn:
STIM A -1;
Stop;
}
}
// Medikit -----------------------------------------------------------------
class Medikit : Health
{
Default
{
Inventory.Amount 25;
Inventory.PickupMessage "$GOTMEDIKIT";
Health.LowMessage 25, "$GOTMEDINEED";
}
States
{
Spawn:
MEDI A -1;
Stop;
}
}