FirePhoenixPL2: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "{{codepointer |description=Heretic Phoenix Rod with Tome of Power attack. |usage='''FirePhoenixPL2''' |examples= From base/heretic/player.edf: Fire: PHNX B 3 A_InitPho...")
 
No edit summary
 
Line 10: Line 10:
     PHNX B 4 A_[[ReFire]]
     PHNX B 4 A_[[ReFire]]
   Powerdown:
   Powerdown:
     PHNX B 4 A_[[ShutdownPhoenixPL2]]
     PHNX B 4 A_[[SubtractAmmo]]
     goto Ready
     goto Ready
|notes=
|notes=
Line 21: Line 21:
*[[FirePhoenixPL1]]
*[[FirePhoenixPL1]]
*[[InitPhoenixPL2]]
*[[InitPhoenixPL2]]
*[[ShutdownPhoenixPL2]]
}}
}}

Latest revision as of 01:29, 29 April 2020

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