FirePistol

From Eternity Wiki
Revision as of 01:02, 6 May 2011 by Printz (talk | contribs) (Templatized. Updated angle according to further calculations, FIX IF WRONG.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

FirePistol is a player weapon codepointer. This codepointer implements the DOOM player's pistol attack, which consists of a single missile-range tracer.

Usage

FirePistol

Parameters

None.

Examples

From base\frames.edf:

frame S_PISTOL2     { cmp = "PISG|1|*|6|FirePistol |@next";       dehackednum = 14 }

Notes

If the player is refiring the weapon, a random angle between about -5.6 and 5.6 degrees will be added to the player's angle. The tracer does standard player tracer damage determined by this formula:

damage = (random % 3 + 1) * 5

The player object is transfered to its second attack frame when this pointer is used, and the player will emit the pistol sound effect.

See also