WEAPONx FLAGS: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Jblade (talk | contribs)
mNo edit summary
Line 24: Line 24:


WEAPONx_FLAGS is a bitfield, so you can add the individual flags together in the manner of [[cstat]] and [[orientation]].
WEAPONx_FLAGS is a bitfield, so you can add the individual flags together in the manner of [[cstat]] and [[orientation]].
[[Category:Pre-defined gamevars]]

Revision as of 01:23, 21 April 2008

WEAPONx_FLAGS is a gamevar that has the power to change several different things about weapons (not projectiles).

The flag values for WEAPONx_FLAGS are:

1 - Holstering clears clip
2 - Glows
4 - Automatic
8 - Fire every other frame
16 - Fire every third frame
32 - Random restart on automatic
64 - Use ammo per burst (like the Devastator)
128 - Is a bomb trigger (Pipebomb Detonator)
256 - Using does NOT cause player to become 'visible'
512 - Use 'throws' the 'shoots' item
1024 - Check weapon availability at 'reload' time
2048 - player should stop jumping
0 - Spawn Type 1 (Pistol shells)
4096 - Spawn Type 2 (Shotgun shells)
8192 - Spawn Type 3 (Chaingun shells)
16384 - Semi-automatic (cancel button press after each shot)
32768 - Alternate reload sound timing (hack for pistol reload sound timing)
65536 - Alternate weapon timing (hack for chaingun and freezer, see player.c)


WEAPONx_FLAGS is a bitfield, so you can add the individual flags together in the manner of cstat and orientation.