Saw: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(New page: '''Saw''' is a player weapon codepointer. This codepointer implements the DOOM player's chainsaw attack. The saw attack is a melee-range tracer attack. Player must be within melee range + ...)
 
No edit summary
Line 1: Line 1:
'''Saw''' is a player weapon codepointer. This codepointer implements the DOOM player's chainsaw attack. The saw attack is a melee-range tracer attack. Player must be within melee range + 1 unit (65 units) in order to hit with this attack.
'''Saw''' (void)
 
==Usage==
Saw is a player weapon codepointer. This codepointer implements the DOOM player's chainsaw attack. The saw attack is a melee-range tracer attack. Player must be within melee range + 1 unit (65 units) in order to hit with this attack.


If the attack misses, the player will emit the '''sawful''' sound effect. If the attack hits, the player will emit the '''sawhit''' sound effect, turn directly towards the target, and then be randomly deflected 4.5 degrees to the right or left. Damage done by the saw attack is given by this formula:
If the attack misses, the player will emit the '''sawful''' sound effect. If the attack hits, the player will emit the '''sawhit''' sound effect, turn directly towards the target, and then be randomly deflected 4.5 degrees to the right or left. Damage done by the saw attack is given by this formula:

Revision as of 22:04, 21 April 2009

Saw (void)

Usage

Saw is a player weapon codepointer. This codepointer implements the DOOM player's chainsaw attack. The saw attack is a melee-range tracer attack. Player must be within melee range + 1 unit (65 units) in order to hit with this attack.

If the attack misses, the player will emit the sawful sound effect. If the attack hits, the player will emit the sawhit sound effect, turn directly towards the target, and then be randomly deflected 4.5 degrees to the right or left. Damage done by the saw attack is given by this formula:

damage = (random % 10 + 1) * 2

The JUSTATTACKED flag will be set for the player object, causing slight forward movement.

For a customizable player melee attack, see CustomPlayerMelee.