Classes:MWeapFrost

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.
Frost shards spell
Actor type Weapon Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number 53 Class Name MWeapFrost
Spawn ID 36 Identifier MAGESHARDS


Classes: InventoryWeaponMageWeaponMWeapFrost
The Mage's second weapon, the Frost Shards spell uses 3 blue mana to spawn a wide cone of ice projectiles.

DECORATE definition

ACTOR MWeapFrost : MageWeapon
{
  +BLOODSPLATTER
  Weapon.SelectionOrder 1700
  Weapon.AmmoUse1 3
  Weapon.AmmoGive1 25
  Weapon.KickBack 150
  Weapon.YAdjust 20
  Weapon.AmmoType1 "Mana1"
  Inventory.PickupMessage "$TXT_WEAPON_M2" // "FROST SHARDS"
  Obituary "$OB_MPMWEAPFROST"
  Tag "$TAG_MWEAPFROST"

  action native A_FireConePL1();

  States
  {
  Spawn:
    WMCS ABC 8 Bright
    Loop
  Select:
    CONE A 1 A_Raise
    Loop
  Deselect:
    CONE A 1 A_Lower
    Loop
  Ready:
    CONE A 1 A_WeaponReady
    Loop
  Fire:
    CONE B 3
    CONE C 4
  Hold:
    CONE D 3
    CONE E 5
    CONE F 3 A_FireConePL1
    CONE G 3
    CONE A 9
    CONE A 10 A_ReFire
    Goto Ready
  }
}