Classes:CWeapWraithverge

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


Classes: ClericWeaponCWeapWraithverge
The Cleric's ultimate weapon, the Wraithverge is the most powerful weapon in Hexen. It fires a white ball which splits into various ghosts. They tear enemies apart.

DECORATE definition

ACTOR CWeapWraithverge : ClericWeapon native
{
  Health 3
  Weapon.SelectionOrder 3000
  +WEAPON.PRIMARY_USES_BOTH
  +INVENTORY.NOATTENPICKUPSOUND
  Weapon.AmmoUse1 18
  Weapon.AmmoUse2 18
  Weapon.AmmoGive1 20
  Weapon.AmmoGive2 20
  Weapon.KickBack 150
  Weapon.AmmoType1 "Mana1"
  Weapon.AmmoType2 "Mana2"
  Inventory.PickupMessage "$TXT_WEAPON_C4"
  Tag "$TAG_CWEAPWRAITHVERGE"
  Inventory.PickupSound "WeaponBuild"

  action native A_CHolyAttack();
  action native A_CHolyPalette();

  States
  {
  Spawn:
    TNT1 A -1
    Stop
  Ready:
    CHLY A 1 A_WeaponReady
    Loop
  Select:
    CHLY A 1 A_Raise
    Loop
  Deselect:
    CHLY A 1 A_Lower
    Loop
  Fire:
    CHLY AB 1 Bright Offset(0, 40)
    CHLY CD 2 Bright Offset(0, 43)
    CHLY E 2 Bright Offset(0, 45)
    CHLY F 6 Bright Offset(0, 48) A_CHolyAttack
    CHLY GG 2 Bright Offset(0, 40) A_CHolyPalette
    CHLY G 2 Offset(0, 36) A_CHolyPalette
    Goto Ready
  }
}