A_KnightAttack

From ZDoom Wiki
Jump to navigation Jump to search

A_KnightAttack
(no parameters)

Does nothing if the calling actor has no valid target.

If the target is within melee range, this inflicts it 3d8 damage and plays the sound "hknight/melee" on the BODY channel.

Otherwise, it plays the calling actor's attack sound on the same channel, and throws at the target either a KnightAxe or a RedAxe. The latter is selected about 16% of the time, or if the calling actor has the SHADOW flag; for this reason a Knight will throw mostly ethereal axes while a KnightGhost will always throw bloody axes.