EVENT GETBONUSTILE

From EDukeWiki
Revision as of 05:29, 4 February 2022 by Doom64hunter (talk | contribs) (This event can be used to change the hardcoded intermission screen tiles.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Event ID player# THISACTOR RETURN
EVENT_GETBONUSTILE screenpeek player->i 5 values

EVENT_GETBONUSTILE is a Menu Event.

This event is fired when drawing the intermission/bonus screen background, and can be used to set custom tiles for it.

This is useful to, for instance, display different intermission screen textures when changing levels.

Return Values

All of the following values should be altered to change the tiles displayed in the hardcoded bonus screen animation.

Note that Episode 2 uses a different set of tiles than all other episode slots.

userdef.return 0 (RETURN)
This is the background of the bonus/intermission screen, on top of which the remaining frames are drawn. Default is 3240 in all episodes except Episode 2, where it is set to 3245.
userdef.return 1
This is the first frame of Duke's breathing animation, which plays before the player presses a key to start the next level. Defaults are 3241 and 3246 respectively. Set to -1 to disable the frame.
userdef.return 2
This is the second frame of Duke's breathing animation, which plays before the player presses a key to start the next level. Defaults are 3242 and 3247 respectively. Set to -1 to disable the frame.
userdef.return 3
This is the first frame of the "gun cock" animation that plays when a key is pressed. Defaults are 3243 and 3248 respectively. Set to -1 to disable the frame.
userdef.return 4
This is the second frame of the "gun cock" animation that plays when a key is pressed. Defaults are 3244 and 3249 respectively. Set to -1 to disable the frame.