A_FirePistol

From ZDoom Wiki
Jump to navigation Jump to search

A_FirePistol

DoomWiki.org
For more information on this article, visit the A_FirePistol page on the Doom Wiki.


(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