Classes:Gauntlets


Classes: InventoryWeaponGauntlets
GauntletsPowered

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.
Gauntlets of the necromancer
Actor type Weapon Game
DoomEd Number 2005 Class Name Gauntlets
Spawn ID 32 Identifier T_GAUNTLETS

In Heretic, these are gauntlets worn by the player which fire green lightning while the attack button is held. The lightning damages enemies within melee range of the player, much like Doom's chainsaw weapon. When used with the Tome of Power, the lightning color changes to red and deals more damage.


DECORATE definition

ACTOR Gauntlets : Weapon
{
  +BLOODSPLATTER
  Weapon.SelectionOrder 2300
  +WEAPON.WIMPY_WEAPON
  +WEAPON.MELEEWEAPON
  Weapon.Kickback 0
  Weapon.YAdjust 15
  Weapon.UpSound "weapons/gauntletsactivate"
  Weapon.SisterWeapon "GauntletsPowered"
  Inventory.PickupMessage "$TXT_WPNGAUNTLETS"
  Tag "$TAG_GAUNTLETS"
  Obituary "$OB_MPGAUNTLETS"

  action native A_GauntletAttack(int power);

  States
  {
  Spawn:
    WGNT A -1
    Stop
  Ready:
    GAUN A 1 A_WeaponReady
    Loop
  Deselect:
    GAUN A 1 A_Lower
    Loop
  Select:
    GAUN A 1 A_Raise
    Loop
  Fire:
    GAUN B 4 A_PlayWeaponSound("weapons/gauntletsuse")
    GAUN C 4
  Hold:
    GAUN DEF 4 Bright A_GauntletAttack(0)
    GAUN C 4 A_ReFire
    GAUN B 4 A_Light0
    Goto Ready
  }
}
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.