FirePhoenixPL2

From Eternity Wiki
Revision as of 00:29, 29 April 2020 by Printz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

Heretic Phoenix Rod with Tome of Power attack.

Usage

FirePhoenixPL2

Parameters

No parameters.

Examples

From base/heretic/player.edf:

 Fire:
   PHNX B 3 A_InitPhoenixPL2
 Hold:
   PHNX C 1 bright A_FirePhoenixPL2
   PHNX B 4 A_ReFire
 Powerdown:
   PHNX B 4 A_SubtractAmmo
   goto Ready

Notes

Must be called from a player weapon state. Checks weapon counter 0, which shall be called here as flamecount. Decrements it.

  • If after the decrement flamecount is 0, it will jump the weapon to the Powerdown Decorate state, and reset the refire count (thus blocking weapon autofire if the weaponinfo has the NOAUTOFIRE flag).
  • If after the decrement flamecount is nonzero, it will shoot a projectile of dehackednum 442 (HereticPhoenixFX2 in Heretic) towards the view pitch (autoaiming will not work). It will also play sound of dehackednum 416 (ht_phopow in Heretic) on first fire and at every 38 gametics.

This action does not consume ammo; it's up to other codepointers to do so for this attack.

See also