EVENT RESETGOTPICS: Difference between revisions
Doom64hunter (talk | contribs) No edit summary |
Doom64hunter (talk | contribs) mNo edit summary |
||
Line 3: | Line 3: | ||
EVENT_RESETGOTPICS is a [[EDuke32_event_list|Misc Event]]. | EVENT_RESETGOTPICS is a [[EDuke32_event_list|Misc Event]]. | ||
This event is triggered | This event is triggered before mirrors are drawn, directly after the mirror's EVENT_DISPLAYROOMS call. Hence, this event executes at framerate, rather than ticrate. | ||
It is also triggered one final time during the transition when the mirrors are out of view and not being rendered anymore. | It is also triggered one final time during the transition when the mirrors are out of view and not being rendered anymore. |
Latest revision as of 03:14, 1 September 2023
Event ID | player# | THISACTOR | RETURN | |
---|---|---|---|---|
EVENT_RESETGOTPICS | -1 | -1 | 0 values |
EVENT_RESETGOTPICS is a Misc Event.
This event is triggered before mirrors are drawn, directly after the mirror's EVENT_DISPLAYROOMS call. Hence, this event executes at framerate, rather than ticrate.
It is also triggered one final time during the transition when the mirrors are out of view and not being rendered anymore.
The purpose of this event is to allow mods to reset entries in the gotpic array to 0. An entry in the gotpic array is 1 if the tile in question has been observed onscreen by the player.
This is primarily useful for skyboxes, which are rendered in place of the null tile (HOM effect under normal circumstances). This can be set up such that if gotpic for the skybox tilenum is 0, the skybox view is no longer displayed, thus improving performance.