FirePistol: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
(Templatized. Updated angle according to further calculations, FIX IF WRONG.)
 
Line 1: Line 1:
'''FirePistol''' (void)
{{Codepointer |
 
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==
usage='''FirePistol'''|
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:
parameters=None.|
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
  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.
The player object is transfered to its second attack frame when this pointer is used, and the player will emit the '''pistol''' sound effect.|
 
examples=From ''base\frames.edf'':
For a customizable player bullet attack, see [[FireCustomBullets]].
<nowiki>frame S_PISTOL2    { cmp = "PISG|1|*|6|FirePistol |@next";      dehackednum = 14 }
 
</nowiki>
[[Category:Codepointers]]
|
seealso=*[[FireCustomBullets]]
*[[List_of_codepointers#Attacks|Player attack codepointers]]
}}
[[Category:codepointers]]

Latest revision as of 01:02, 6 May 2011

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