Difference between revisions of "A BrainExplode"
From DoomWiki.org
[checked revision] | [checked revision] |
(+one missing code ptr that got missed by my script) |
(make this a link) |
||
Line 2: | Line 2: | ||
'''A_BrainExplode''' is a [[code pointer]] used in the death animation for the [[Big Brain]]. | '''A_BrainExplode''' is a [[code pointer]] used in the death animation for the [[Big Brain]]. | ||
− | <code>A_BrainExplode</code> spawns a rocket explosion effect near the thing that triggered the function, and sets the state of that thing to <code>S_BRAINEXPLODE1</code> (frame #799). Since this is followed after two frames by <code>S_BRAINEXPLODE3</code> which again calls <code>A_BrainExplode</code>, the result is a continually exploding wall effect that completes until the boss brain object calls | + | <code>A_BrainExplode</code> spawns a rocket explosion effect near the thing that triggered the function, and sets the state of that thing to <code>S_BRAINEXPLODE1</code> (frame #799). Since this is followed after two frames by <code>S_BRAINEXPLODE3</code> which again calls <code>A_BrainExplode</code>, the result is a continually exploding wall effect that completes until the boss brain object calls [[A_BrainDie]] that triggers the level exit. |
== Uses == | == Uses == |
Revision as of 17:15, 17 March 2020
A_BrainExplode is a code pointer used in the death animation for the Big Brain.
A_BrainExplode
spawns a rocket explosion effect near the thing that triggered the function, and sets the state of that thing to S_BRAINEXPLODE1
(frame #799). Since this is followed after two frames by S_BRAINEXPLODE3
which again calls A_BrainExplode
, the result is a continually exploding wall effect that completes until the boss brain object calls A_BrainDie that triggers the level exit.
Uses
The A_BrainExplode
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
801 | S_BRAINEXPLODE3 | death animation for the Big Brain |
Example
The following is an example of how to set the A_BrainExplode
code pointer in a Dehacked file:
Pointer 21 (Frame 34) Codep Frame = 801
Or using BEX syntax:
[CODEPTR] Frame 1234 = BrainExplode
External links
- A_BrainExplode in the Doom source code.
- A_BrainExplode at the ZDoom wiki
- BrainExplode at the Eternity Engine wiki