Saw: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
(templatized)
Line 1: Line 1:
'''Saw''' (void)
{{Codepointer |
 
description='''Saw''' is a player weapon codepointer. This codepointer implements the DOOM player's chainsaw attack. |
==Usage==
usage='''Saw'''|
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.
parameters=None.|
notes=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:
Line 8: Line 9:
  damage = (random % 10 + 1) * 2
  damage = (random % 10 + 1) * 2


The JUSTATTACKED [[Thingtype Flags|flag]] will be set for the player object, causing slight forward movement.
The '''JUSTATTACKED''' [[Thing type flags|flag]] will be set for the player object, causing slight forward movement.
 
|
For a customizable player melee attack, see [[CustomPlayerMelee]].
seealso=*[[CustomPlayerMelee]]
 
*[[List_of_codepointers#Attacks|Player attack codepointers]]
}}
[[Category:Codepointers]]
[[Category:Codepointers]]

Revision as of 16:49, 6 May 2011

Description

Saw is a player weapon codepointer. This codepointer implements the DOOM player's chainsaw attack.

Usage

Saw

Parameters

None.

Examples

No examples given.

Notes

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.

See also