Last weapon

From EDukeWiki
Revision as of 02:46, 8 September 2006 by TX (talk | contribs) (.)
Jump to navigation Jump to search

This is set to the currently selected weapon when the player attempts to switch to a new weapon. If the weapon change was successful, this is reset to -1. This is used so that the game can determine which weapon to switch back to in the event that the player attempts to switch to a weapon that is out of ammo. See curr_weapon and wantweaponfire.