Difference between revisions of "A Punch"
From DoomWiki.org
[checked revision] | [checked revision] |
(Adding new page for code pointer) |
(recategorize) |
||
Line 30: | Line 30: | ||
* {{DoomSrc|file=p_pspr.c|line=468|text=A_Punch}} in the Doom source code. | * {{DoomSrc|file=p_pspr.c|line=468|text=A_Punch}} in the Doom source code. | ||
− | [[Category: | + | [[Category:Weapon code pointers]] |
Revision as of 18:23, 16 March 2020
This article or section is a stub. Please help the Doom Wiki by adding to it. |
A_Punch is a code pointer used in the attack animation for the Fists.
Uses
The A_Punch
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
6 | S_PUNCH2 | attack animation for the Fists |
Example
The following is an example of how to set the A_Punch
code pointer in a Dehacked file:
Pointer 21 (Frame 34) Codep Frame = 6
Or using BEX syntax:
[CODEPTR] Frame 1234 = Punch
External links
- A_Punch in the Doom source code.