Classes:CWeapWraithverge

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