A_Srcr2Attack
Does nothing if the calling actor does not have a valid target. Otherwise, plays the attack sound on the BODY channel.
A_Srcr2Attack
(no parameters)
If the target is within melee range, it receives 20d8 damage.
Otherwise, either shoots a lightning bolt at the target, or summons reinforcements by throwing two Disciple-summoning projectiles at 45° angles, one on each side. The probability of choosing either attack depends on the calling actor's health:
Health | Lightning | Summon |
---|---|---|
Between half and full | 81.25% | 18.75% |
Less than half | 62.5% | 37.5% |
This codepointer is restricted to Sorcerer2 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.