From ZDoom Wiki
Jump to navigation Jump to search

(no parameters)

Results in one of four attacks, depending on the proximity of the target and on random chance. If the target is within melee range: melee bite attack for 6d8 damage Otherwise, spawns one ice ball, a column of fireballs or a whirlwind with a probability that varies with whether the target is "close" (between melee range and 512 map units) or far (more than 512 map units).

Attack Close Far
Ice ball 20% 60%
Fireballs 40% 20%
Whirlwind 40% 20%

If choosing the ice ball attack, this function also plays the "ironlich/attack2" sound on the BODY channel. For the fireball column attack, it is the "ironlich/attack1" sound that is played; and a total of six fireballs are created, the first of which is put in the NoGrow state while the remainings have their health value set to twice their "number" and their damage value set to 0. If a whirlwind is chosen, "ironlich/attack3" is played and the whirlwind is set to have the calling actor's target as its own tracer field, its Z position decreased by 32 units, its special1 and 2 fields to 60 and 50 respectively, and its health to 700.