Extra: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Add a note about wall[].extra from https://voidpoint.io/terminx/eduke32/-/issues/92#note_1695
 
Line 4: Line 4:


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 [[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:Sector structure members]]
[[Category:Sprite structure members]]
[[Category:Sprite structure members]]
[[Category:Wall 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.