FirePistol

From Eternity Wiki
Revision as of 18:00, 21 April 2009 by Esselfortium (talk | contribs)
Jump to navigationJump to search

FirePistol is a player weapon codepointer. This codepointer implements the DOOM player's pistol attack, which consists of a single missile-range tracer. If the player is refiring the weapon, a random angle between -5 and 5 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.

For a customizable player bullet attack, see FireCustomBullets.