A CustomPlayerMelee: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(updated some)
(added seealso. examples still needed)
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. |
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=
*[[FireCustomBullets]]
*[[FirePlayerMissile]]}}

Revision as of 09:59, 23 January 2011

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]]])

Parameters

  • dmgfactor: Damage factor. Damage formula is: dmgfactor * ((rnd%dmgmod) + 1)
  • dmgmod: Damage modulus. (Clamped into range of 1 to 256)
  • berserk: Berserk multiplier. (Default 0, x*damage when player is berserk)
  • deflection: Select angle deflection type. (Default None)
    • none = None
    • punch = Punch-style deflection (player will face object)
    • chainsaw = Chainsaw-style deflection (player will face object and be wiggled around)
  • soundname: The "nice name" of the sound to play. See the sound EDF block for how to define this.

Examples

No examples given.

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.

See also