WEAPON: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
detonator is 10, not 0; added DEFS.CON code; grammar
Line 1: Line 1:
Returns the value of the currently selected weapon. The value is briefly not set when the player enter the game.
Returns the value of the currently selected weapon. The value is briefly not set when the player enters the game.


  0: knee
  define KNEE_WEAPON        0 // Mighty Foot
  1: pistol
  define PISTOL_WEAPON      1
  2: shotgun
  define SHOTGUN_WEAPON      2
  3: chaingun
  define CHAINGUN_WEAPON    3
  4: rpg
  define RPG_WEAPON          4
  5: pipebomb
  define HANDBOMB_WEAPON    5 // Pipebombs
  6: shrinker
  define SHRINKER_WEAPON    6
  7: devistator
  define DEVISTATOR_WEAPON  7 // Devastator
  8: tripbomb
  define TRIPBOMB_WEAPON    8
  9: freezethrower
  define FREEZE_WEAPON      9 // Freezethrower
  0: detonator
  define HANDREMOTE_WEAPON  10 // Pipebomb Detonator
  11: expander
  define GROW_WEAPON        11 // Microwave Expander


[[Category:Pre-defined gamevars]]
[[Category:Pre-defined gamevars]]

Revision as of 08:41, 21 February 2009

Returns the value of the currently selected weapon. The value is briefly not set when the player enters the game.

define KNEE_WEAPON         0 // Mighty Foot
define PISTOL_WEAPON       1
define SHOTGUN_WEAPON      2
define CHAINGUN_WEAPON     3
define RPG_WEAPON          4
define HANDBOMB_WEAPON     5 // Pipebombs
define SHRINKER_WEAPON     6
define DEVISTATOR_WEAPON   7 // Devastator
define TRIPBOMB_WEAPON     8
define FREEZE_WEAPON       9 // Freezethrower
define HANDREMOTE_WEAPON   10 // Pipebomb Detonator
define GROW_WEAPON         11 // Microwave Expander