Editing A CustomPlayerMelee
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: | ||
{{Codepointer | | {{Codepointer | | ||
description=CustomPlayerMelee is a parameterized player weapon codepointer. This codepointer allows construction of custom player melee attacks. Two major classes of attacks are possible: punch-style and chainsaw-style, depending on the parameters given. | | description=CustomPlayerMelee is a parameterized player weapon codepointer. This codepointer allows construction of custom player melee attacks. Two major classes of attacks are possible: punch-style and chainsaw-style, depending on the parameters given. | | ||
usage='''CustomPlayerMelee''' (''dmgfactor'', ''dmgmod'' [, ''berserk'' [, ''deflection'' [, ''soundname | usage='''CustomPlayerMelee''' (''dmgfactor'', ''dmgmod'' [, ''berserk'' [, ''deflection'' [, ''soundname''[, ''pufftype'']]]]) | | ||
parameters=*''dmgfactor'': Damage factor. Damage formula is: dmgfactor * ((rnd%dmgmod) + 1) | parameters=*''dmgfactor'': Damage factor. Damage formula is: dmgfactor * ((rnd%dmgmod) + 1) | ||
*''dmgmod'': Damage modulus. (Clamped into range of 1 to 256) | *''dmgmod'': Damage modulus. (Clamped into range of 1 to 256) | ||
Line 10: | Line 10: | ||
**'''chainsaw''' = Chainsaw-style deflection (player will face object and be wiggled around) | **'''chainsaw''' = Chainsaw-style deflection (player will face object and be wiggled around) | ||
*''soundname'': The "nice name" of the sound to play. See [[sound|the sound EDF block]] for how to define this. | *''soundname'': The "nice name" of the sound to play. See [[sound|the sound EDF block]] for how to define this. | ||
*''pufftype'': name of [[EDF]] [[pufftype]] to spawn when hitting walls. Default is the one designated for the current game.| | *''pufftype'': name of [[EDF]] [[pufftype]] to spawn when hitting walls. Default is the one designated for the current game.| | ||
notes=The Berserk multiplier can be applied to any attack, but that if it is 0, you will do zero damage when berserk! The Berserk multiplier should be 1 when no berserk bonus is desired. | | notes=The Berserk multiplier can be applied to any attack, but that if it is 0, you will do zero damage when berserk! The Berserk multiplier should be 1 when no berserk bonus is desired. | | ||
seealso= | seealso= |