Classes:SkullRodPowered

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 hellstaff
Actor type Weapon Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number None Class Name SkullRodPowered


Classes: InventoryWeaponHereticWeaponSkullRodSkullRodPowered

Used with the tome of power, the hellstaff throws a single, large projectiles which creates a rain of blood-red energy in a small area around its impact point. A given player can only maintain two such rains, upon firing a third the oldest of the two pre-existing ones disappears.

DECORATE definition

ACTOR SkullRodPowered : SkullRod
{
  +WEAPON.POWERED_UP
  Weapon.AmmoUse1 5
  Weapon.AmmoGive1 0
  Weapon.SisterWeapon "SkullRod"
  Tag "$TAG_SKULLRODP"

  action native A_FireSkullRodPL2();

  States
  {
  Fire:
    HROD C 2
    HROD D 3
    HROD E 2
    HROD F 3
    HROD G 4 A_FireSkullRodPL2
    HROD F 2
    HROD E 3
    HROD D 2
    HROD C 2 A_ReFire
    Goto Ready
  }
}