A_TroopAttack


The attack of Doom's imp. This either shoots a DoomImpBall or, if the target is sufficiently close, it plays the sound "imp/melee" and performs a melee attack with a base damage of 3 multiplied by a random value between 1 and 8.

A_TroopAttack

(no parameters)


The behavior of this function can be replicated by the use of A_CustomComboAttack in the following manner:

A_CustomComboAttack("DoomImpBall", 32, 3 * random(1, 8), "imp/melee")

Examples

This example is taken straight from Doom's Imp.

 Missile:
   TROO EF 8 A_FaceTarget
   TROO G 6 A_TroopAttack  // See DoomImpBall
   goto See

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.