Extra extra8: Difference between revisions
Jump to navigation
Jump to search
LordMisfit (talk | contribs) No edit summary |
Doom64hunter (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
This is initialized to zero. The [[ | This variable tracks additional, fractional damage which is to be applied to the player. This value is initialized to zero. | ||
The damage will only be applied as soon as the stored value is greater or equal to 256. If this is the case, the value will be reset to 0. | |||
The only hardcoded use for [[extra_extra8]] is to track the amount of drowning damage the player has taken. | |||
The value is used in the function <code>P_IncurDamage</code>, which corresponds to the event [[EVENT_INCURDAMAGE]]. If [[extra_extra8]] is negative, it will heal the player, but [[extra_extra8]] will not be reset to 0. | |||
The actual damage applied to the player is modified by [[shield_amount]]. This behavior can be intercepted in the [[EVENT_INCURDAMAGE]] [[events|event]] | |||
[[Category:Player structure members]] | [[Category:Player structure members]] |
Revision as of 13:06, 5 February 2022
This variable tracks additional, fractional damage which is to be applied to the player. This value is initialized to zero.
The damage will only be applied as soon as the stored value is greater or equal to 256. If this is the case, the value will be reset to 0.
The only hardcoded use for extra_extra8 is to track the amount of drowning damage the player has taken.
The value is used in the function P_IncurDamage
, which corresponds to the event EVENT_INCURDAMAGE. If extra_extra8 is negative, it will heal the player, but extra_extra8 will not be reset to 0.
The actual damage applied to the player is modified by shield_amount. This behavior can be intercepted in the EVENT_INCURDAMAGE event