A_M_FireCGun

From ZDoom Wiki
Jump to navigation Jump to search

A_M_FireCGun (bool accurate)

Does nothing if the calling actor has no valid target.

Otherwise, plays the sound "weapons/chngun" on the WEAPON channel, calls A_FaceTarget, then performs a missile-range hitscan attack without spread (if accurate is true) or a horizontal spread of 5.625° (if accurate is false) that inflicts 5d3 damage and spawns a BulletPuff. This replicates Chaingun fire.

This codepointer is restricted to ScriptedMarine and derived classes.