A_SPosAttack

From ZDoom Wiki
Jump to navigation Jump to search
DoomWiki.org
For more information on this article, visit the A_SPosAttack page on the Doom Wiki.

A_SPosAttack

(no parameters)


The attack of Doom's Shotgun Guy. This shoots three bullets and plays the sound "shotguy/attack".

It is equivalent of:

SPOS F 0 bright A_PlaySound("shotguy/attack", CHAN_WEAPON)
SPOS F 10 bright A_CustomBulletAttack(22.5, 0, 3, random(1,5)*3, "BulletPuff", 0, CBAF_NORANDOM)

Examples

This example is taken straight from Doom's Shotgun Guy.

 Missile:
   SPOS E 10 A_FaceTarget
   SPOS F 10 bright A_SPosAttack
   SPOS E 10
   goto See