A_CPosAttack

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

A_CPosAttack

(no parameters)


The attack of Doom's chaingunner and Nazi. This shoots one bullet and plays the calling actor's attack sound.

It is almost equivalent to:

CPOS F 4 bright
{
	A_PlaySound("chainguy/attack", CHAN_WEAPON);
	A_CustomBulletAttack(22.5, 0, 1, random(1,5)*3, "BulletPuff", 0, CBAF_NORANDOM);
}

Examples

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

 Missile:
   CPOS E 10 A_FaceTarget
   CPOS FE 4 bright A_CPosAttack
   CPOS F 1 A_CPosRefire
   goto Missile+1