Addweapon: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
addweapon <weapon> <amount> | '''addweapon''' <weapon> <amount><br> | ||
'''addweaponvar''' <weapon> <amount> | |||
'''addweapon''' adds ''weapon'' with ''amount'' of ammo to the nearest player. | |||
If the player already has ''weapon'' with full ammo, execution of subsequent code is halted in a fashion similar to [[return]]. | |||
''weapon'' can be one of the following, taken from ''duke3d.h'' and ''DEFS.CON'': | |||
KNEE_WEAPON | |||
PISTOL_WEAPON | |||
SHOTGUN_WEAPON | |||
CHAINGUN_WEAPON | |||
RPG_WEAPON | |||
HANDBOMB_WEAPON | |||
SHRINKER_WEAPON | |||
DEVISTATOR_WEAPON | |||
TRIPBOMB_WEAPON | |||
FREEZE_WEAPON | |||
HANDREMOTE_WEAPON | |||
GROW_WEAPON | |||
{{varsuffix}} | |||
[[Category:Duke3D 1.3/1.5 commands]] | |||
[[Category:Player manipulation]] |
Revision as of 01:25, 5 January 2016
addweapon <weapon> <amount>
addweaponvar <weapon> <amount>
addweapon adds weapon with amount of ammo to the nearest player.
If the player already has weapon with full ammo, execution of subsequent code is halted in a fashion similar to return.
weapon can be one of the following, taken from duke3d.h and DEFS.CON:
KNEE_WEAPON PISTOL_WEAPON SHOTGUN_WEAPON CHAINGUN_WEAPON RPG_WEAPON HANDBOMB_WEAPON SHRINKER_WEAPON DEVISTATOR_WEAPON TRIPBOMB_WEAPON FREEZE_WEAPON HANDREMOTE_WEAPON GROW_WEAPON
Commands with an additional "var" suffix take gamevars rather than constants or defined labels for their inputs. As an alternate short form, "varvar" can be dropped from these commands; for example ife serves an an alias for ifvarvare.