Dead flag: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Text changes
Fox (talk | contribs)
No edit summary
 
Line 1: Line 1:
dead_flag is initialized to 0 and is used to control whether the player is considered dead.  When health ([[extra]]) is < 0, dead_flag is checked and then set to a random value.  The value of dead_flag is then used to determine the angle of the player's view when dead.  Note that up until EDuke32 1.4.0, it was possible for the random value of dead_flag to equal 0, effectively marking the player as alive again.  This phenomenon occasionally resulted in the dead player's suicide counter being incremented in addition to a frag being awarded to the attacking player.
dead_flag is initialized to 0 and is used to control whether the player is considered dead.  When health ([[extra]]) is < 1, dead_flag is checked and then set to a random value.  The value of dead_flag is then used to determine the angle of the player's view when dead.  Note that up until EDuke32 1.4.0, it was possible for the random value of dead_flag to equal 0, effectively marking the player as alive again.  This phenomenon occasionally resulted in the dead player's suicide counter being incremented in addition to a frag being awarded to the attacking player.


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

Latest revision as of 19:36, 9 January 2014

dead_flag is initialized to 0 and is used to control whether the player is considered dead. When health (extra) is < 1, dead_flag is checked and then set to a random value. The value of dead_flag is then used to determine the angle of the player's view when dead. Note that up until EDuke32 1.4.0, it was possible for the random value of dead_flag to equal 0, effectively marking the player as alive again. This phenomenon occasionally resulted in the dead player's suicide counter being incremented in addition to a frag being awarded to the attacking player.