Classes:HealthPickup
From ZDoom Wiki
| Health pickup | |||
|---|---|---|---|
| Actor type | Internal | Game | |
| DoomEd Number | None | Class Name | HealthPickup |
Classes: Inventory→HealthPickup
→ArtiHealth
→ArtiSuperHealth
→MedicalKit
→MedPatch
→SurgeryKit
HealthPickups are items that are placed in the inventory and give some health when activated. The base class HealthPickup is never used directly. It is always the base class for predefined items (like Heretic's Quartz Flask or for items defined in DECORATE.
The maximum amount of health that can be given with a HealthPickup is the current default maximum health which normally is 100.
Using in DECORATE
HealthPickups use the basic Inventory properties to define their behavior as inventory items. The only new information they require is the amount of health they give. For this they use the standard health actor property.
Examples:
actor MedKit : HealthPickup 7012
{
health 25
inventory.maxamount 15
inventory.icon "I_MDKT"
inventory.pickupmessage "You picked up the Medkit."
+COUNTITEM
states
{
Spawn:
MEDK A -1
stop
}
}
DECORATE definition
Actor HealthPickup : Inventory native { Inventory.DefMaxAmount +INVENTORY.INVBAR }

