Classes:PotteryBit

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.
PotteryBit
Actor type SFX Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number None Class Name PotteryBit


Classes: PotteryBit

A shattered pottery piece that is spawned when a pottery is smashed.

DECORATE definition

ACTOR PotteryBit
{
  Radius 5
  Height 5
  +MISSILE
  +NOTELEPORT
  +NOICEDEATH

  action native A_PotteryChooseBit();
  action native A_PotteryCheck();

  States
  {
  Spawn:
    PBIT ABCDE -1
    Stop
  Death:
    PBIT F 0 A_PotteryChooseBit
    Stop
  Pottery1:
    PBIT F 140
    PBIT F 1 A_PotteryCheck
    Stop
  Pottery2:
    PBIT G 140
    PBIT G 1 A_PotteryCheck
    Stop
  Pottery3:
    PBIT H 140
    PBIT H 1 A_PotteryCheck
    Stop
  Pottery4:
    PBIT I 140
    PBIT I 1 A_PotteryCheck
    Stop
  Pottery5:
    PBIT J 140
    PBIT J 1 A_PotteryCheck
    Stop
  }
}