Classes:MWeapWand

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.
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
  }
}