A_MStaffAttack

From ZDoom Wiki
Jump to navigation Jump to search

A_MStaffAttack
(no parameter)

Fires three MageStaffFX2 projectiles offset by 8 units above the normal fire height and set their tracer target. The target will be either an enemy in direct line of fire, or one found by searching the blockmap in front of the player. Two of the projectiles have an angle of +/- 5 degrees. The sound "MageStaffFire" is played on the WEAPON channel.

In addition the counter MStaffCount is set to 3 which initiates a palette blend that will be changed by A_MStaffPalette.

This codepointer is restricted to MWeapBloodscourge and derived classes.