ReFire: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
'''ReFire''' (void)
{{codepointer|description='''ReFire''' is a player weapon codepointer used to check for refiring at the end of a weapon's attack sequence. If the player is holding down the fire key, the weapon will try to fire again without entering the weapon's ready state first.|usage='''ReFire'''|notes=This pointer increments or clears the player's refire counter, which when positive, causes the player's aim to become less accurate with some weapons. Remaining ammo is also checked, and if the player does not have enough ammo to fire another shot, the weapon will be lowered.|examples={{example|description=From base\frames.edf:|code=<nowiki>frame S_PLASMA2      { cmp = "PLSG|1|*|20|ReFire    |S_PLASMA";    dehackednum = 78 }</nowiki>}}}}
 
==Usage==
ReFire is a player weapon codepointer used to check for refiring at the end of a weapon's attack sequence. If the player is holding down the fire key, the weapon will try to fire again without entering the weapon's ready state first. This pointer increments or clears the player's refire counter, which when positive, causes the player's aim to become less accurate with some weapons. Remaining ammo is also checked, and if the player does not have enough ammo to fire another shot, the weapon will be lowered.
 
[[Category:Codepointers]]

Revision as of 02:20, 7 May 2011

Description

ReFire is a player weapon codepointer used to check for refiring at the end of a weapon's attack sequence. If the player is holding down the fire key, the weapon will try to fire again without entering the weapon's ready state first.

Usage

ReFire

Parameters

No parameters.

Examples

From base\frames.edf:

frame S_PLASMA2      { cmp = "PLSG|1|*|20|ReFire     |S_PLASMA";    dehackednum = 78 }

Notes

This pointer increments or clears the player's refire counter, which when positive, causes the player's aim to become less accurate with some weapons. Remaining ammo is also checked, and if the player does not have enough ammo to fire another shot, the weapon will be lowered.

See also