Classes:DegninOre

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do NOT need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it will cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
Nugget of degnin ore
Actor type Hazard Game MiniStrifeLogoIcon.png (Strife)
DoomEd Number 59 Class Name DegninOre
Conversation ID 128, 124, 127 Puzzle Item ID N/A


Classes: InventoryDegninOre
A large nugget of yellow ore, that explodes when shot. It can be picked up, using it drops it back on the ground. It can be used to prepare traps, or to disable some Strife forcefields.

DECORATE definition

ACTOR DegninOre : Inventory native
{
  Health 10
  Radius 16
  Height 16
  Inventory.MaxAmount 10
  +SOLID
  +SHOOTABLE
  +NOBLOOD
  +FLOORCLIP
  +INCOMBAT
  +INVENTORY.INVBAR
  Tag "$TAG_DEGNINORE" // "Degnin Ore"
  DeathSound "ore/explode"
  Inventory.Icon "I_XPRK"
  Inventory.PickupMessage "$TXT_DEGNINORE" // "You picked up the Degnin Ore."
  States
  {
  Spawn:
    XPRK A -1
    Stop
  Death:
    XPRK A 1 A_RemoveForceField
    BNG3 A 0 A_SetTranslucent(1, 1)
    BNG3 A 0 A_Scream
    BNG3 A 3 Bright A_Explode(192, 192, 1, 1)
    BNG3 BCDEFGH 3 Bright
    Stop
  }
}