Classes:DegninOre

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
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
  }
}