A_BrainExplode

From ZDoom Wiki
Jump to navigation Jump to search
DoomWiki.org
For more information on this article, visit the A_BrainExplode page on the Doom Wiki.


Actor

Actor A_BrainExplode ()

Usage

Used by the Icon of Sin's brain to trigger a single explosion at a random X and Z offset in BrainishExplosion.

Examples

ZScript:

BrainExplode:
		MISL BC 10 Bright;
		MISL D 10 A_BrainExplode;
		Stop;

DECORATE (deprecated):

BrainExplode:
		MISL BC 10 Bright
		MISL D 10 A_BrainExplode
		Stop

ZScript definition

Note: The ZScript definition below is for reference and may be different in the current version of GZDoom.The most up-to-date version of this code can be found on GZDoom GitHub.
void A_BrainExplode()
	{
		double x = random2[BrainExplode]() / 32.;
		Vector3 pos = Vec2OffsetZ(x, 0, 1 / 512. + random[BrainExplode]() * 2);
		BrainishExplosion(pos);
	}

See also