A_FAxeCheckUpG

From ZDoom Wiki
Revision as of 18:29, 4 May 2012 by Blzut3 (talk | contribs) (Created page with "{{DISPLAYTITLE:A_FAxeCheckUpG}} '''A_FAxeCheckUpG'''<br /> (no parameters) Calls A_Raise and checks if the current weapon has enough ammo. If it doesn't, jumps to its Sel...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A_FAxeCheckUpG
(no parameters)

Calls A_Raise and checks if the current weapon has enough ammo. If it doesn't, jumps to its Select state.

It's a shortcut for doing the following, in Timon's Axe SelectGlow state:

    FAXE L 0 A_JumpIfNoAmmo ("Select")
    FAXE L 1 A_Raise
    FAXE L 0 A_JumpIfNoAmmo ("Select")
    FAXE L 1 A_Raise
    FAXE L 0 A_JumpIfNoAmmo ("Select")
    FAXE L 1 A_Raise
    FAXE M 0 A_JumpIfNoAmmo ("Select")
    FAXE M 1 A_Raise
    FAXE M 0 A_JumpIfNoAmmo ("Select")
    FAXE M 1 A_Raise
    FAXE M 0 A_JumpIfNoAmmo ("Select")
    FAXE M 1 A_Raise
    loop

This codepointer is restricted to FWeapAxe and derived classes.