Classes:PhoenixFX1

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.
Phoenix rod projectile
Actor type Explosive Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number None Class Name PhoenixFX1
Spawn ID 163 Identifier T_PHOENIXSHOT


Classes: PhoenixFX1

The exploding projectile from the phoenix rod. On a direct impact, D'Sparil has a 37.5% chance of avoiding any damage and attempting teleportation; the damage is avoided even if the attempted teleportation fails. The native action A_PhoenixPuff spawns two PhoenixPuff actors and sends them moving to either sides of the projectile.

DECORATE definition

ACTOR PhoenixFX1 native
{
  Radius 11
  Height 8
  Speed 20
  Damage 20
  DamageType Fire
  Projectile
  +THRUGHOST
  +SPECIALFIREDAMAGE
  SeeSound "weapons/phoenixshoot"
  DeathSound "weapons/phoenixhit"
  Obituary "$OB_MPPHOENIXROD"

  action native A_PhoenixPuff();

  States
  {
  Spawn:
    FX04 A 4 Bright A_PhoenixPuff
    Loop
  Death:
    FX08 A 6 Bright A_Explode
    FX08 BC 5 Bright
    FX08 DEFGH 4 Bright
    Stop
  }
}