GunFlash: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
'''GunFlash''' (void)
{{Codepointer|description=GunFlash is a player weapon codepointer. This codepointer sets the player to his second attack state, starts the display of the weapon's flash state, and causes weapon kickback to occur if it is enabled.|usage='''GunFlash'''|notes=This codepointer is new to BOOM, and was added to allow kickback to be synchronized with a weapon's muzzle flash instead of with the press of the trigger. Weapons such as the BFG require this behavior. Note that kickback will eventually be made a property of weapons via [[EDF]].|examples={{example|description=From base\frames.edf:|code=<nowiki>frame S_BFG2      { cmp = "BFGG|1|*|10|GunFlash  |@next";      dehackednum = 85 }</nowiki>}}
 
}}
==Usage==
GunFlash is a player weapon codepointer. This codepointer sets the player to his second attack state, starts the display of the weapon's flash state, and causes weapon kickback to occur if it is enabled. This codepointer is new to BOOM, and was added to allow kickback to be synchronized with a weapon's muzzle flash instead of with the press of the trigger. Weapons such as the BFG require this behavior. Note that kickback will eventually be made a property of weapons via [[EDF]].
 
[[Category:Codepointers]]

Latest revision as of 02:54, 7 May 2011

Description

GunFlash is a player weapon codepointer. This codepointer sets the player to his second attack state, starts the display of the weapon's flash state, and causes weapon kickback to occur if it is enabled.

Usage

GunFlash

Parameters

No parameters.

Examples

From base\frames.edf:

frame S_BFG2      { cmp = "BFGG|1|*|10|GunFlash   |@next";       dehackednum = 85 }

Notes

This codepointer is new to BOOM, and was added to allow kickback to be synchronized with a weapon's muzzle flash instead of with the press of the trigger. Weapons such as the BFG require this behavior. Note that kickback will eventually be made a property of weapons via EDF.

See also