WeaponReady: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 1: Line 1:
'''WeaponReady''' (void)
{{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>


==Usage==
<code>A_WeaponReady(WRF_NOBOB)</code>
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]].
|notes=This pointer also plays the chainsaw's idle sound, as determined by [[weaponinfo]] '''readysound'''.
 
|seealso=
[[Category:Codepointers]]
*[[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