Punch: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
Esselfortium (talk | contribs) No edit summary |
Esselfortium (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
'''Punch''' is a player weapon codepointer. This codepointer implements the DOOM player's fist attack. The punch attack is a melee-range tracer attack fired at the player's angle plus or minus a random angle between 0 and 5 degrees. If an object is hit by the attack, the player will emit the '''punch''' sound effect and turn toward the target. Damage done by the punch attack is given by this formula: | '''Punch''' (void) | ||
==Usage== | |||
Punch is a player weapon codepointer. This codepointer implements the DOOM player's fist attack. The punch attack is a melee-range tracer attack fired at the player's angle plus or minus a random angle between 0 and 5 degrees. If an object is hit by the attack, the player will emit the '''punch''' sound effect and turn toward the target. Damage done by the punch attack is given by this formula: | |||
damage = (random % 10 + 1) * 2 | damage = (random % 10 + 1) * 2 |
Revision as of 22:05, 21 April 2009
Punch (void)
Usage
Punch is a player weapon codepointer. This codepointer implements the DOOM player's fist attack. The punch attack is a melee-range tracer attack fired at the player's angle plus or minus a random angle between 0 and 5 degrees. If an object is hit by the attack, the player will emit the punch sound effect and turn toward the target. Damage done by the punch attack is given by this formula:
damage = (random % 10 + 1) * 2
When the player is berserk, the damage value obtained from this formula is multiplied by 10.
For a customizable player melee attack, see CustomPlayerMelee.