A_BrainDie

From DoomWiki.org

Revision as of 18:26, 16 March 2020 by Fraggle (talk | contribs) (Add an example!)


Example of a joke WAD where the pistol is replaced with a carryable exit switch that can be punched to immediately exit the level. The A_BrainDie code pointer is used to perform the level exit.

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.

Uses

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

Example

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

External links