GauntletAttack

From Eternity Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Used by the Heretic Gauntlets of the Necromancer attack.

Usage

GauntletAttack(is_powered)

Parameters

  • is_powered: 0 for the normal version, 1 for the Tome of Power version.

Examples

From base/heretic/player.edf, the base Gauntlet:

 Fire:
   GAUN B 4 A_PlaySoundEX(ht_gntuse, idle)
   GAUN C 4
 Hold:
   GAUN DEF 4 bright A_GauntletAttack(0)
   GAUN C 4 A_ReFire
   GAUN B 4 A_Light0
   goto Ready

The powered Gauntlet:

 Fire:
   GAUN J 4 A_PlaySoundEX(ht_gntuse, idle)
   GAUN K 4
 Hold:
   GAUN LMN 4 bright A_GauntletAttack(1)
   GAUN K 4 A_ReFire
   GAUN J 4 A_Light0
   goto Ready

Notes

Must be called from a player weapon state. Shifts the weapon sprite randomly. It will then do a melee hitscan of damage 2 * 1d8 (2-16) accordingly:

  • if unpowered, at range 64, using pufftype HereticGauntletPuff1, at "never" precision. If hitting, it will play sound dehackednum 409 (ht_gnthit).
  • if powered, at range 256, using pufftype HereticGauntletPuff2, and at a precision twice better than "never". If hitting, it will steal life as half the damage until hitting playerclass maxhealth and will play sound dehackednum 410 (ht_gntpow).

It will randomly light up the area at all levels.

If missing, it will play sound dehackednum 408 (ht_gntful). If hitting, it will also shake player's angle and activate its JUSTATTACKED flag, which causes them to move ahead.

As in the examples above, it's important to call Light0 on the end of the sequence, because this codepointer affects player's light level.

See also