FirePistol

From Eternity Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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