A_SerpentCheckForAttack

If the calling actor has a Missile state and the target is out of melee range, then it will jump to the Attack state.

A_SerpentCheckForAttack
(no parameter)

If the target is at the same height as the calling actor and 44-128 map units away, then it will jump the Walk state. Otherwise if it is within the melee range it has a 12.5% chance of jumping to the Walk state anyways. If within melee range and the walk chance fails, it will jump to the Attack state.

This codepointer is restricted to Serpent and derived classes.

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