From EDukeWiki
Revision as of 08:13, 12 July 2020 by Rob Anybody (talk | contribs) (Add a note about wall[].extra from https://voidpoint.io/terminx/eduke32/-/issues/92#note_1695)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.