WEAPON: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
Fox (talk | contribs)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Returns the value of the currently selected weapon.
{{Deprecated}}


0: knee
Returns the value of the currently selected weapon. The value is briefly not set when the player enters the game.
1: pistol
 
2: shotgun
define KNEE_WEAPON        0 // Mighty Foot
3: chaingun
define PISTOL_WEAPON      1
4: rpg
define SHOTGUN_WEAPON      2
5: pipebomb
define CHAINGUN_WEAPON    3
6: shrinker
define RPG_WEAPON          4
7: devistator
define HANDBOMB_WEAPON    5 // Pipebombs
8: tripbomb
define SHRINKER_WEAPON    6
9: freezethrower
define DEVISTATOR_WEAPON  7 // Devastator
0: detonator
define TRIPBOMB_WEAPON    8
11: expander
define FREEZE_WEAPON      9 // Freezethrower
define HANDREMOTE_WEAPON  10 // Pipebomb Detonator
define GROW_WEAPON        11 // Microwave Expander


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

Latest revision as of 03:09, 29 August 2020

This feature is deprecated.
It's recommend not to use this feature.

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