A_Srcr2Attack
Jump to navigation
Jump to search
A_Srcr2Attack
(no parameters)
Does nothing if the calling actor does not have a valid target. Otherwise, plays the attack sound on the BODY channel.
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.