Difference between revisions of "A WeaponReady"
From DoomWiki.org
[checked revision] | [checked revision] |
m (→External links) |
|||
Line 47: | Line 47: | ||
== External links == | == External links == | ||
* {{DoomSrc|file=p_pspr.c|line=282|text=A_WeaponReady}} in the Doom source code. | * {{DoomSrc|file=p_pspr.c|line=282|text=A_WeaponReady}} in the Doom source code. | ||
+ | * {{zdoomwiki|title=A_WeaponReady}} | ||
+ | * {{eterwiki|title=WeaponReady}} | ||
[[Category:Weapon code pointers]] | [[Category:Weapon code pointers]] |
Revision as of 08:36, 18 March 2020
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.
- A_WeaponReady at the ZDoom wiki
- WeaponReady at the Eternity Engine wiki