A_PosAttack
Jump to navigation
Jump to search
A_PosAttack
(no parameters)
The attack of Doom's zombieman. This shoots one bullet and plays the sound “grunt/attack”.
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