A_BrainExplode
Jump to navigation
Jump to search
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
BrainExplode:
MISL BC 10 Bright;
MISL D 10 A_BrainExplode;
Stop;
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);
}