Punch

From Eternity Wiki
Revision as of 16:16, 26 October 2006 by Quasar (talk | contribs) (Initial commit.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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 the formula [code]damage = (random % 10 + 1) * 2[/code]. When the player is berserk, the damage value obtained from this formula is multiplied by 10.