Last full weapon: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
last_full_weapon is initialized to zero when a map is loaded.<BR>
last_full_weapon is initialized to zero when a map is loaded.<BR>
It is set to the [[weapon ID]] of the previous weapon when a new weapon is picked up.
This is set to the currently selected weapon when the player attempts to switch to a new weapon.  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.


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

Revision as of 13:44, 18 July 2012

last_full_weapon is initialized to zero when a map is loaded.
This is set to the currently selected weapon when the player attempts to switch to a new weapon. 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.