A_Lower
From DoomWiki.org
A_Lower is a code pointer used in the weapon lower animation for all weapons.
A_Lower
moves the Y position of the weapon sprite towards the bottom of the screen by a small amount each time it is invoked. If the bottom of the screen is reached, the next weapon is selected and the raise state is invoked to bring it up. A_Lower
is usually used in a state that is an infinite loop that repeatedly jumps back to itself; the loop terminates when the weapon has finished lowering.
Uses[edit]
The A_Lower
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
3 | S_PUNCHDOWN | weapon lower animation for the fist |
11 | S_PISTOLDOWN | weapon lower animation for the pistol |
19 | S_SGUNDOWN | weapon lower animation for the shotgun |
33 | S_DSGUNDOWN | weapon lower animation for the super shotgun |
50 | S_CHAINDOWN | weapon lower animation for the chaingun |
58 | S_MISSILEDOWN | weapon lower animation for the rocket launcher |
69 | S_SAWDOWN | weapon lower animation for the chainsaw |
75 | S_PLASMADOWN | weapon lower animation for the plasma gun |
82 | S_BFGDOWN | weapon lower animation for the BFG9000 |
Example[edit]
The following is an example of how to set the A_Lower
code pointer in a DeHackEd file:
Pointer 21 (Frame 34) Codep Frame = 82
Or using BEX syntax:
[CODEPTR] Frame 1234 = Lower