Difference between revisions of "A BFGsound"
From DoomWiki.org
[checked revision] | [checked revision] |
(add some more detail) |
(recategorize) |
||
Line 31: | Line 31: | ||
* {{DoomSrc|file=p_pspr.c|line=818|text=A_BFGsound}} in the Doom source code. | * {{DoomSrc|file=p_pspr.c|line=818|text=A_BFGsound}} in the Doom source code. | ||
− | [[Category: | + | [[Category:Weapon code pointers]] |
Revision as of 18:14, 16 March 2020
A_BFGsound is a code pointer used in the attack animation for the BFG 9000.
A_BFGsound
just plays the DSBFG sound effect (the BFG's long "warm up and fire" sound effect). The sound origin is the player firing the weapon.
Uses
The A_BFGsound
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
84 | S_BFG1 | attack animation for the BFG 9000 |
Example
The following is an example of how to set the A_BFGsound
code pointer in a Dehacked file:
Pointer 21 (Frame 34) Codep Frame = 84
Or using BEX syntax:
[CODEPTR] Frame 1234 = BFGsound
External links
- A_BFGsound in the Doom source code.