A_BrainDie is a code pointer used in the death animation for the Big Brain.
A_BrainDie immediately exits the level, analogous to pressing a level exit switch or crossing an exit line special type. It is used for the last frame of the boss brain death sequence for the final level.
A_BrainDie code pointer appears in the following states in Doom's state table:
|Frame number||Doom internal name||Use|
|783||S_BRAIN_DIE4||death animation for the Big Brain|
The following is an example of how to set the
A_BrainDie code pointer in a Dehacked file:
Pointer 21 (Frame 34) Codep Frame = 783
Or using BEX syntax:
[CODEPTR] Frame 1234 = BrainDie
- A_BrainDie in the Doom source code.
- A_BrainDie at the ZDoom wiki
- BrainDie at the Eternity Engine wiki