Classes:MWeapFrost

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.
Frost shards spell
Actor type Weapon Game MiniHexenLogoIcon.png
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
  }
}