Classes:MWeapWand

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.
Sapphire wand
Actor type Weapon Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number None Class Name MWeapWand


Classes: InventoryWeaponMageWeaponMWeapWand
The Mage's starting weapon, the Sapphire Wand fires an extremely fast projectile that rips through enemies, although deals low damage.

DECORATE definition

ACTOR MWeapWand : MageWeapon
{
  Weapon.SelectionOrder 3600
  Weapon.KickBack 0
  Weapon.YAdjust 9
  Tag "$TAG_MWEAPWAND"
  States
  {
  Select:
    MWND A 1 A_Raise
    Loop
  Deselect:
    MWND A 1 A_Lower
    Loop
  Ready:
    MWND A 1 A_WeaponReady
    Loop
  Fire:
    MWND A 6
    MWND B 6 Bright Offset(0, 48) A_FireCustomMissile("MageWandMissile")
    MWND A 3 Offset(0, 40)
    MWND A 3 Offset(0, 36) A_ReFire
    Goto Ready
  }
}