A_ShootGun

From ZDoom Wiki
Jump to navigation Jump to search

A_ShootGun

(no parameters)

Standard monster hit scan attack in Strife. It shoots one bullet dealing 3 * 1d5 damage and plays the sound "monsters/rifle".

The following code is equivalent to calling A_ShootGun for 6 tics on the F frame of the AGRD sprite.

    AGRD F 0 A_PlaySound ("monsters/rifle", CHAN_WEAPON)
    AGRD F 0 A_FaceTarget
    AGRD F 6 A_CustomBulletAttack (8, 0, 1, 3*random(1,5), "StrifePuff", 2048, CBAF_NORANDOM)