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.

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