A_CustomBulletAttack
From ZDoom Wiki
A_CustomBulletAttack (int horz_spread, int vert_spread, int numbullets, int damageperbullet, string pufftype [, float range [, bool aimfacing]*])
*
Usage
A customizable hitscan attack. Fires a number of bullets with the specified damage and spread. The bullet puff and range can also be specified, as well as whether the actor uses its current target for aiming purposes.
Parameters
- horz_spread: The horizontal spread, in degrees.
- vert_spread: The vertical spread, in degrees.
- numbullets: The number of bullets to fire.
- damageperbullet: The amount of damage each bullet does.
- pufftype: The puff to spawn when a wall is hit.
- range: The maximum range of the bullets.
- aimfacing: If true, the attack will be fired in the direction the actor is currently facing, rather than at the actor's current target.
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. |

