A_KnightAttack

Does nothing if the calling actor has no valid target.

A_KnightAttack
(no parameters)

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.

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