A BrainExplode

From DoomWiki.org

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.


The A_BrainExplode code pointer appears in the following states in Doom's state table:


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:

Frame 1234 = BrainExplode

External links[edit]