A_TroopAttack
Jump to navigation
Jump to search
A_TroopAttack
(no parameters)
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.
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