A_ShootGun

From ZDoom Wiki
Revision as of 06:53, 31 May 2012 by Ijon Tichy (talk | contribs) (the range might be wrong)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)