Subweapon: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
This value is used to "remember" if the player has the Shrinker or Expander selected when pressing the key 7.
This value is used to "remember" if the player has the Shrinker or Expander selected when changing weapon.


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.
Works like a bitfield, with the only value used in Duke Nukem 3D v1.4 being 2048 (one shifted left by GROW_WEAPON) if the Expander has been used instead of the Shrinker last time, otherwise it equals zero.


 
Identical to [[bsubweapon]], except it interprets the value as true/false for each weapon.
controls the secondary weapon choice. In Duke(TM) only GROW_WEAPON is supported.
 
0 if using SHRINKER_WEAPON, 2048 if GROW_WEAPON.


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

Latest revision as of 22:55, 19 February 2020

This value is used to "remember" if the player has the Shrinker or Expander selected when changing weapon.

Works like a bitfield, with the only value used in Duke Nukem 3D v1.4 being 2048 (one shifted left by GROW_WEAPON) if the Expander has been used instead of the Shrinker last time, otherwise it equals zero.

Identical to bsubweapon, except it interprets the value as true/false for each weapon.