Classes:PhoenixRodPowered

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.
Tomed phoenix rod
Actor type Weapon Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number None Class Name PhoenixRodPowered


Classes: InventoryWeaponPhoenixRodPhoenixRodPowered

When the tome of power is activated, the phoenix rod fires a short-range, continuous stream of flames. Be careful not to refire on a close enemy after the tome has run out of time, though.

DECORATE definition

ACTOR PhoenixRodPowered : PhoenixRod native
{
  +WEAPON.POWERED_UP
  +WEAPON.MELEEWEAPON
  Weapon.SisterWeapon "PhoenixRod"
  Weapon.AmmoGive 0
  Tag "$TAG_PHOENIxRODP"

  action native A_InitPhoenixPL2();
  action native A_FirePhoenixPL2();
  action native A_ShutdownPhoenixPL2();

  States
  {
  Fire:
    PHNX B 3 A_InitPhoenixPL2
  Hold:
    PHNX C 1 A_FirePhoenixPL2
    PHNX B 4 A_ReFire
  Powerdown:
    PHNX B 4 A_ShutdownPhoenixPL2
    Goto Ready
  }
}