WEAPONx FLAGS: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
Flag values for weapon are:
WEAPONx_FLAGS is a [[gamevar]] that has the power to change several different things about weapons (not projectiles).


:'''1''' - Holstering Clears Clip
The flag values for WEAPONx_FLAGS are:
 
:'''1''' - Holstering clears clip
:'''2''' - Glows
:'''2''' - Glows
:'''4''' - Automatic
:'''4''' - Automatic
:'''8''' - Fire Every other frame
:'''8''' - Fire every other frame
:'''16''' - Fire Every third frame
:'''16''' - Fire every third frame
:'''32''' - Random restart on automatic
:'''32''' - Random restart on automatic
:'''64''' - Use Ammo per burst
:'''64''' - Use ammo per burst (like the Devastator)
:'''128''' - Is a Bomb trigger
:'''128''' - Is a bomb trigger (Pipebomb Detonator)
:'''256''' - Using does NOT cause player to become 'visible'
:'''256''' - Using does NOT cause player to become 'visible'
:'''512''' - Use 'throws' the 'shoots' item
:'''512''' - Use 'throws' the 'shoots' item
:'''1024''' - Check weapon availability at 'reload' time
:'''1024''' - Check weapon availability at 'reload' time
:'''2048''' - player should stop jumping
:'''2048''' - player should stop jumping
:'''0''' - Spawn Type 1 (pistol shells)
:'''0''' - Spawn Type 1 (Pistol shells)
:'''4096''' - Spawn Type 2 (Shotgun shells)
:'''4096''' - Spawn Type 2 (Shotgun shells)
:'''8192''' - Spawn Type 3 (CHAINGGUN shells)
:'''8192''' - Spawn Type 3 (Chaingun shells)
 
WEAPONx_FLAGS is a bitfield, so you can add the individual flags together in the manner of [[cstat]] and [[orientation]].

Revision as of 15:24, 24 November 2006

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)

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