A_CheckReload
From DoomWiki.org
A_CheckReload is a code pointer used in the attack animation for the super shotgun.
A_CheckReload
is used to ensure that the player has at least two more shells of ammo before triggering the reload animation. If not enough are present, a transition to a different weapon is automatically performed.
Uses[edit]
The A_CheckReload
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
38 | S_DSGUN4 | attack animation for the super shotgun |
Example[edit]
The following is an example of how to set the A_CheckReload
code pointer in a DeHackEd file:
Pointer 21 (Frame 34) Codep Frame = 38
Or using BEX syntax:
[CODEPTR] Frame 1234 = CheckReload
External links[edit]
- A_CheckReload in the Doom source code.
- A_CheckReload at the ZDoom wiki
- CheckReload at the Eternity Engine wiki