From ZDoom Wiki
A_Mushroom [(string spawntype [, int amount[, int flags[, float vrange[, float hrange]]]])]
Shoots the specified amount of missiles high into the air with a mushroom cloud effect.
The parameters are:
- spawntype: Type of projectile to throw. (Default: Mancubus fireballs)
- amount: The number of thrown projectiles. If 0, then the number is determined by the calling actor's damage property. (Default: 0)
- flags: The following flags can be combined by using the | character between the constant names:
- MSF_Standard — Uses the normal ZDoom projectile spawning function, in which the vertical velocity is one component of the projectile's speed. This flag is the default value.
- MSF_Classic — Uses the old Doom function in which the vertical velocity is added to the projectile's speed. Since A_Mushroom by default aims its projectiles at very steep angles, the difference between the standard and classic is very noticeable; the older mode results in a more chaotic-looking, asymmetrical explosion, that spreads much higher and farther.
- MSF_DontHurt — The target of the calling actor is not hurt by the explosion and is considered to be the shooter of the debris projectiles. Use this flag if A_Mushroom is called from a projectile and should not hurt its shooter.
- vrange: Controls how high the projectiles are aimed, the larger the value, the higher they go. (Default: 4.0)
- hrange: Factor by which the speed of the projectiles is multiplied. (Default: 0.5)
|Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated.|