Addweapon

From EDukeWiki
Revision as of 02:57, 9 November 2009 by TX (talk | contribs)
Jump to navigation Jump to search

addweapon weapon amount

addweapon adds weapon with amount of ammo to the nearest player. See addweaponvar.

If the player already has weapon with full ammo, execution of subsequent code is halted in a fashion similar to break.

weapon can be one of the following, taken from duke3d.h:

   KNEE_WEAPON
   PISTOL_WEAPON
   SHOTGUN_WEAPON
   CHAINGUN_WEAPON
   RPG_WEAPON
   HANDBOMB_WEAPON
   SHRINKER_WEAPON
   DEVISTATOR_WEAPON
   TRIPBOMB_WEAPON
   FREEZE_WEAPON
   HANDREMOTE_WEAPON
   GROW_WEAPON