A_FirePistol
A_FirePistol
(no parameters)
Usage
Performs Doom's pistol attack, firing one pellet dealing 5 * 1d3 damage. This is a shortcut to calling A_FireBullets, A_PlaySound and A_GunFlash with certain predetermined hardcoded parameters.
If vertical bullet spread for weapons is enabled, the function applies vertical spread in addition to the horizontal one.
Examples
This code is the equivalent of calling A_FirePistol.
A_FireBullets (5.6, 0, 1, 5, "BulletPuff") A_PlaySound("weapons/pistol", CHAN_WEAPON) A_GunFlash
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.