A_PosAttack

The attack of Doom's zombieman. This shoots one bullet and plays the sound “grunt/attack”.

A_PosAttack

(no parameters)

It is the equivalent to calling A_CustomBulletAttack with the parameters (22.5, 0, 1, random(1,5)*3, "BulletPuff", 0, CBAF_NORANDOM).

Examples

This example is taken straight from Doom's Zombieman.

 Missile:
   POSS E 10 A_FaceTarget
   POSS F 8 A_PosAttack
   POSS E 8
   goto See

This example uses a generic function to exactly replicate it instead.

 Missile:
   POSS E 10 A_FaceTarget
   POSS E 0 A_PlaySound ("grunt/attack")
   POSS F 8 A_CustomBulletAttack (22.5, 0, 1, random(1,5) * 3, "BulletPuff", 0, CBAF_NORANDOM)
   POSS E 8
   goto See
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.