A_CPosAttack


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

A_CPosAttack

(no parameters)

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
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.