Bsubweapon

From EDukeWiki
Revision as of 19:57, 19 February 2020 by Fox (talk | contribs) (Created page with "'''''bsubweapon #''''' is an array that specify if player currently has a certain alternate weapon selected. ''#'' Indicates the weapon ID. define KNEE_WEAPON 0 def...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

bsubweapon # is an array that specify if player currently has a certain alternate weapon selected. # Indicates the weapon ID.

define KNEE_WEAPON         0
define PISTOL_WEAPON       1
define SHOTGUN_WEAPON      2
define CHAINGUN_WEAPON     3
define RPG_WEAPON          4
define HANDBOMB_WEAPON     5
define SHRINKER_WEAPON     6
define DEVISTATOR_WEAPON   7
define TRIPBOMB_WEAPON     8
define FREEZE_WEAPON       9
define HANDREMOTE_WEAPON   10
define GROW_WEAPON         11

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

Identical to subweapon, except the it interprets the value as a bitfield for each weapon.