A_CorpseExplode

From ZDoom Wiki
Jump to navigation Jump to search

A_CorpseExplode
(no parameters)

Spawns between four and seven CorpseBit actors, all with random horizontal velocities between -4 and +4 on both X and Y axes, and a random vertical velocity between 3.75 and 9. One of the corpse bits will be put in its Spawn+3 state (corresponding normally to the corpse's head), the rest are randomly put in Spawn, Spawn+1 or Spawn+2.

The function then plays the calling actor's death sound, and destroys it, so any state after a call to this function will never be run.

This codepointer is restricted to ZCorpseSitting and derived classes.