Extra: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Rfc1394 (talk | contribs)
No edit summary
Add a note about wall[].extra from https://voidpoint.io/terminx/eduke32/-/issues/92#note_1695
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Extra is available for [[hittype]], [[sprite]], and [[Members of the wall structure|wall]] structs.
Extra is available for [[sector]], [[hittype]], [[sprite]], and [[Members of the wall structure|wall]] structs.


For sprite and hittype, '''Extra''' is the actor-in-question's health value.
For [[sprite|sprites]], '''extra''' typically the actor-in-question's health value. It's also used to store the damage of hard-coded projectiles. See also [[htextra]].
 
For a [[sector|sector]], '''extra''' contains the value of any GSPEED sprites that were in the sector (Gspeed sprites are deleted when the level loads up)
 
For a [[wall|wall]], '''extra''' is reset to -1 at map load time in-game because the game uses the field for internal purposes. You can access the values before they're wiped in [[EVENT_PRELEVEL]], however.
 
[[Category:Sector structure members]]
[[Category:Sprite structure members]]
[[Category:Wall structure members]]

Latest revision as of 09:13, 12 July 2020

Extra is available for sector, hittype, sprite, and wall structs.

For sprites, extra typically the actor-in-question's health value. It's also used to store the damage of hard-coded projectiles. See also htextra.

For a sector, extra contains the value of any GSPEED sprites that were in the sector (Gspeed sprites are deleted when the level loads up)

For a wall, extra is reset to -1 at map load time in-game because the game uses the field for internal purposes. You can access the values before they're wiped in EVENT_PRELEVEL, however.