The attack of Doom's Hell Knight and Baron of Hell. This either shoots a BaronBall or if the target is sufficiently close plays the sound "baron/melee" and performs a melee attack with a base damage of 10 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("BaronBall", 32, 10 * random(1, 8), "baron/melee")
This example is taken straight from Doom's Hellknight.
Melee: Missile: BOS2 EF 8 A_FaceTarget BOS2 G 8 A_BruisAttack // See BaronBall goto See