A_BFGSpray
From ZDoom Wiki
A_BFGSpray [(string flashtype [, int numrays] [, int damage)]
Performs the secondary BFG attack. This consists of a fan of numrays hitscan attacks across an angle of 90 degrees with the target in the center. If no amount is given it will use 40 as a default. The amount of damage is specified with the third parameter. Note that A_BFGSpray uses a unique method to determine damage. It adds a number of random values between 1 and 8. With this parameter you specify the amount of random numbers to be added. The default is 15.
At the position of each shootable actor that is hit an actor of type flashtype is spawned. If none is specified it will use the standard BFG flash.
The origin of the attack is the missile's owner, not the missile itself. This function will create unpredictable effects if used on a non-missile!
Examples
| 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 add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated. |

