FirePistol: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
'''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:
'''FirePistol''' (void)
 
==Usage==
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
  damage = (random % 3 + 1) * 5

Revision as of 22:07, 21 April 2009

FirePistol (void)

Usage

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.