Classes:CWeapFlame

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.
Firestorm
Actor type Weapon Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number 8009 Class Name CWeapFlame


Classes: WeaponClericWeaponCWeapFlame
The Cleric's firestorm spell from Hexen.

DECORATE definitions

ACTOR CWeapFlame : ClericWeapon
{
  +NOGRAVITY
  Weapon.SelectionOrder 1000
  Weapon.AmmoUse 4
  Weapon.AmmoGive 25
  Weapon.KickBack 150
  Weapon.YAdjust 10
  Weapon.AmmoType1 "Mana2"
  Inventory.PickupMessage "$TXT_WEAPON_C3"
  Tag "$TAG_CWEAPFLAME"

  action native A_CFlameAttack();

  States
  {
  Spawn:
    WCFM ABCDEFGH 4 Bright
    Loop
  Select:
    CFLM A 1 A_Raise
    Loop
  Deselect:
    CFLM A 1 A_Lower
    Loop
  Ready:
    CFLM AAAABBBBCCCC 1 A_WeaponReady
    Loop
  Fire:
    CFLM A 2 Offset(0, 40)
    CFLM D 2 Offset(0, 50)
    CFLM D 2 Offset(0, 36)
    CFLM E 4 Bright
    CFLM F 4 Bright A_CFlameAttack
    CFLM E 4 Bright
    CFLM G 2 Offset(0, 40)
    CFLM G 2
    Goto Ready
  }
}