Editing
A CustomPlayerMelee
From Eternity Wiki
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{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. | usage='''CustomPlayerMelee''' (''dmgfactor'', ''dmgmod'' [, ''berserk'' [, ''deflection'' [, ''soundname''[, ''range''[, ''pufftype'']]]]]) | 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 [[sound|the sound EDF block]] for how to define this. *''range'': The range of fire, as a floating-point value. Default: 64.0. *''pufftype'': name of [[EDF]] [[pufftype]] to spawn when hitting walls. Default is the one designated for the current game.| examples= <code>A_CustomPlayerMelee(2, 10, 10, punch, punch, BulletPuff)</code>| 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]] *[[List_of_codepointers#Attacks|Player attack codepointers]]}}
Summary:
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see
Eternity Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:Codepointer
(
edit
)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information