Classes:CWeapFlame

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do not need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it's actually harmful as it can cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
  5. There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
Firestorm
Actor type Weapon Game MiniHexenLogoIcon.png
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
  }
}