WeaponReady

From Eternity Wiki
Revision as of 11:17, 4 April 2026 by Printz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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