Weaponswitch

From EDukeWiki
Revision as of 15:09, 9 June 2012 by Overkill666 (talk | contribs)
Jump to navigation Jump to search

Weaponswitch exists for both player and userdef structure members. The player structure controls whenever the action will be made, while the userdef controls the options selected in the menu.

bitfield

1 = switch to weapon on pickup

2 = switch away when out of ammo

Setting the variable to zero will disable automatic weapon switching.

Example:

setplayer[THISACTOR].weaponswitch 0