A_MStaffAttack

From ZDoom Wiki
Revision as of 04:52, 5 May 2012 by Blzut3 (talk | contribs) (Created page with "{{codepointer|Weapon|r=Hexen}} '''A_MStaffAttack'''<br> (''no parameter'')<br> Fires three {{Class|MageStaffFX2}} projectiles offset by 8 units above the normal fire height a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.