Saw: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
(fixed wrong melee range for sawing)
 
(2 intermediate revisions by the same user not shown)
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.|
examples={{example|description=From base\frames.edf:|code=<nowiki>frame S_SAW1    { cmp = "SAWG|*|*|4|Saw        |@next"; dehackednum = 71 }
frame S_SAW2    { cmp = "SAWG|1|*|4|Saw        |@next"; dehackednum = 72 }
</nowiki>}}|
notes=The saw attack is a melee-range tracer attack. Player must be within melee range (64 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 12:
  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]]

Latest revision as of 09:48, 6 January 2016

Description

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

Usage

Saw

Parameters

None.

Examples

From base\frames.edf:

frame S_SAW1    { cmp = "SAWG|*|*|4|Saw        |@next"; dehackednum = 71 }
frame S_SAW2    { cmp = "SAWG|1|*|4|Saw        |@next"; dehackednum = 72 }

Notes

The saw attack is a melee-range tracer attack. Player must be within melee range (64 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