A_DragonFX2

From ZDoom Wiki
Jump to navigation Jump to search

A_DragonFX2

Spawns randomly between 1 and 5 DragonExplosion actors in an 64-map-unit-wide area centered on the calling actor.

A doubly random delay is added to the duration of each explosion's first tic: first, a baseline delay between 16 and 48 tics is randomly generated, then each explosion gets an additional that is equal to twice its number times a random value between 0 and 3. So, the theoretical minimum delay is 16 tics (16 + 1 * 2 * 0), and the maximum 78 tics (48 + 5 * 2 * 3).

The calling actor's target is transferred to each of the spawned explosions.

This codepointer is restricted to DragonFireball and derived classes.