Difference between revisions of "A CheckReload"
From DoomWiki.org
[checked revision] | [checked revision] |
(add some more detail) |
(recategorize) |
||
Line 31: | Line 31: | ||
* {{DoomSrc|file=p_pspr.c|line=366|text=A_CheckReload}} in the Doom source code. | * {{DoomSrc|file=p_pspr.c|line=366|text=A_CheckReload}} in the Doom source code. | ||
− | [[Category: | + | [[Category:Weapon code pointers]] |
Revision as of 18:38, 16 March 2020
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
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
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
- A_CheckReload in the Doom source code.