Subweapon: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
This controls the secondary weapon choice. In Duke(TM) only GROW_WEAPON is supported.
This value is used to "remember" if the player has the Shrinker or Expander selected when pressing the key 7.
 
Apparently it was meant to work like a bitfield, with the only value used being 2048 (one shifted right by GROW_WEAPON), otherwise it equals zero.
 
 
controls the secondary weapon choice. In Duke(TM) only GROW_WEAPON is supported.


0 if using SHRINKER_WEAPON, 2048 if GROW_WEAPON.
0 if using SHRINKER_WEAPON, 2048 if GROW_WEAPON.


[[Category:Player structure members]]
[[Category:Player structure members]]

Revision as of 12:00, 12 April 2013

This value is used to "remember" if the player has the Shrinker or Expander selected when pressing the key 7.

Apparently it was meant to work like a bitfield, with the only value used being 2048 (one shifted right by GROW_WEAPON), otherwise it equals zero.


controls the secondary weapon choice. In Duke(TM) only GROW_WEAPON is supported.

0 if using SHRINKER_WEAPON, 2048 if GROW_WEAPON.