A_WeaponReady
From DoomWiki.org
This article or section is a stub. Please help the Doom Wiki by adding to it. |
A_WeaponReady is a code pointer used in the normal weapon animation for all weapons.
Uses
The A_WeaponReady
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
2 | S_PUNCH | normal weapon animation for the Fists |
10 | S_PISTOL | normal weapon animation for the Pistol |
18 | S_SGUN | normal weapon animation for the Shotgun |
32 | S_DSGUN | normal weapon animation for the Super Shotgun |
49 | S_CHAIN | normal weapon animation for the Chaingun |
57 | S_MISSILE | normal weapon animation for the Rocket Launcher |
67 | S_SAW | normal weapon animation for the Chainsaw |
68 | S_SAWB | normal weapon animation for the Chainsaw |
74 | S_PLASMA | normal weapon animation for the Plasma Gun |
81 | S_BFG | normal weapon animation for the BFG 9000 |
Example
The following is an example of how to set the A_WeaponReady
code pointer in a Dehacked file:
Pointer 21 (Frame 34) Codep Frame = 81
Or using BEX syntax:
[CODEPTR] Frame 1234 = WeaponReady
External links
- A_WeaponReady in the Doom source code.