FirePistol: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Initial commit.)
 
No edit summary
Line 4: Line 4:


The player object is transfered to its second attack frame when this pointer is used, and the player will emit the '''pistol''' sound effect.
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]].


[[Category:Codepointers]]
[[Category:Codepointers]]

Revision as of 18:00, 21 April 2009

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.