Last weapon: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
More info
Line 1: Line 1:
the value of last weapon used. Used if you switch to a weapon with no ammo, it will switch back to this weapon. Is set to -1 if there was no last weapon or if weapon change was succesful.
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 [[current_weapon]] and [[wantweaponfire]].


[[Category:Player structure members]]
[[Category:Player structure members]]

Revision as of 02:24, 8 September 2006

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 current_weapon and wantweaponfire.