WeaponReady: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Initial commit.)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''WeaponReady''' is a player weapon codepointer. This codepointer readies the player's gun to fire or to change to another weapon. It should be called from any weapon's ready state. This pointer also currently plays the chainsaw's idle sound, though this behavior will soon be determined by a new weapon property via [[EDF]].
{{codepointer|description=WeaponReady is a player weapon codepointer. This codepointer readies the player's gun to fire or to change to another weapon. It should be called from any weapon's ready state.
|usage='''A_WeaponReady'''(''flags'')
|parameters=
*''flags'': optional, can be '''WRF_NOBOB''' if mentioned. Disables weapon bobbing.
|examples=
<code>A_WeaponReady</code>


[[Category:Codepointers]]
<code>A_WeaponReady(WRF_NOBOB)</code>
|notes=This pointer also plays the chainsaw's idle sound, as determined by [[weaponinfo]] '''readysound'''.
|seealso=
*[[Lower]]
*[[Raise]]
}}

Latest revision as of 11:17, 4 April 2026

Description

WeaponReady is a player weapon codepointer. This codepointer readies the player's gun to fire or to change to another weapon. It should be called from any weapon's ready state.

Usage

A_WeaponReady(flags)

Parameters

  • flags: optional, can be WRF_NOBOB if mentioned. Disables weapon bobbing.

Examples

A_WeaponReady

A_WeaponReady(WRF_NOBOB)

Notes

This pointer also plays the chainsaw's idle sound, as determined by weaponinfo readysound.

See also