Saw
From Eternity Wiki
Jump to navigationJump to search
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.