Editing A BulletAttack
From Eternity Wiki
Jump to navigationJump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
'''BulletAttack'''(''sound'', ''accuracy'', ''number'', ''factor'', ''modulus'', ''pufftype'') | |||
Parameter Information: | |||
*sound = name or Dehacked number of sound to play (default of 0 = no sound) | |||
*accuracy = Select accuracy (default of 0 = 1) | *accuracy = Select accuracy (default of 0 = 1) | ||
**1 or '''ba_always''' = Always accurate | **1 or '''ba_always''' = Always accurate | ||
Line 7: | Line 9: | ||
**4 or '''ba_monster''' = Monster accuracy (very wide horizontal spread) | **4 or '''ba_monster''' = Monster accuracy (very wide horizontal spread) | ||
*number = Number of bullet tracers to fire (default of 0 = 0) | *number = Number of bullet tracers to fire (default of 0 = 0) | ||
*factor = Damage factor (Damage formula is: | *factor = Damage factor (Damage formula is: dmgfactor * ((rnd%dmgmod) + 1)) | ||
*modulus = Damage modulus (Forced into range of 1 to 256) | *modulus = Damage modulus (Forced into range of 1 to 256) | ||
*pufftype = name of EDF [[pufftype]] to use when hitting walls. Default type is the one designated for the game. | *pufftype = name of EDF [[pufftype]] to use when hitting walls. Default type is the one designated for the game. | ||
Powerful codepointer which allows construction of custom monster bullet attacks. This pointer is capable of emulating any of the built-in player or monster bullet attacks, as well creating many completely new ones (including a super shotgun attack for monsters). | |||
*[[MissileAttack]] | |||
The accuracy parameter for this pointer differs slightly from the Args2 parameter to the [[FireCustomBullets]] player codepointer. The value which allows "first fire only" accuracy is not available for monsters. | |||
==See also== | |||
*[[List of codepointers]] | |||
*[[MissileAttack]] | |||
[[Category:codepointers]] |