# _F_AnyPlayerButtons
function _F_AnyPlayerButtons()Reports whether any valid player command currently carries a button press used to skip a commercial finale.
src/f_finale.mlImplements finale sequencing, text pages, and ending presentation.
d_event.ml → src/d_event.mldoomstat.ml → src/doomstat.mldoomtype.ml → src/doomtype.mldstrings.ml → src/dstrings.mlhu_stuff.ml → src/hu_stuff.mli_system.ml → src/i_system.mlm_misc.ml → src/m_misc.mlm_swap.ml → src/m_swap.mlr_state.ml → src/r_state.mls_sound.ml → src/s_sound.mlsounds.ml → src/sounds.mlv_video.ml → src/v_video.mlw_wad.ml → src/w_wad.mlz_zone.ml → src/z_zone.mlfunction _F_AnyPlayerButtons()Reports whether any valid player command currently carries a button press used to skip a commercial finale.
function _F_DrawTiledFlat(name)Fills the logical screen with a repeating 64x64 flat, marks it dirty, and submits the matching HD overlay when available.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Resource or object name to resolve. |
inline function _F_EndPatchName(stage)Maps a clamped bunny-ending animation stage to its END0-through-END6 patch name.
| Parameter | Type | Default | Description |
|---|---|---|---|
stage | dynamic | — | Stage value supplied to `_F_EndPatchName`. |
inline function _F_IDiv(a, b)Returns a signed quotient truncated toward zero, or zero for invalid operands and a zero divisor in `_F_IDiv`
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
inline function _F_PatchWidth(patch)Reads a Doom patch width, returning zero for missing or truncated patch data.
| Parameter | Type | Default | Description |
|---|---|---|---|
patch | dynamic | — | Patch value supplied to `_F_PatchWidth`. |
inline function _F_Substr(s, n)Returns at most the first n encoded bytes of a string, clamping n to the available data.
| Parameter | Type | Default | Description |
|---|---|---|---|
s | dynamic | — | S value supplied to `_F_Substr`. |
n | dynamic | — | Number of values to process. |
inline function _F_u16le(b, off)Decodes an unsigned 16-bit little-endian value from a patch header.
| Parameter | Type | Default | Description |
|---|---|---|---|
b | dynamic | — | Second input operand. |
off | dynamic | — | Zero-based byte or element offset. |
inline function _F_u32le(b, off)Decodes an unsigned 32-bit little-endian value from a patch column table.
| Parameter | Type | Default | Description |
|---|---|---|---|
b | dynamic | — | Second input operand. |
off | dynamic | — | Zero-based byte or element offset. |
inline function _F_UpperAscii(c)Normalizes lowercase ASCII character codes before indexing the uppercase HUD font.
| Parameter | Type | Default | Description |
|---|---|---|---|
c | dynamic | — | C value supplied to `_F_UpperAscii`. |
bunny_laststageTracks the mutable bunny laststage value used by the f finale subsystem.
cast_activeTracks whether cast active is active in the f finale subsystem.
cast_nameStores the mutable cast name text used by the f finale subsystem.
cast_ticsTracks the mutable cast tics value used by the f finale subsystem.
function F_BunnyScroll()Composes the episode-three PFUB panorama, then advances and sounds the centered END0-through-END6 animation.
function F_CastDrawer()Draws the cast-stage backdrop and centered actor name while cast presentation is active.
function F_CastPrint(text)Measures and renders a cast name centered at y=180, falling back to the menu text renderer when the HUD font is unavailable.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to process. |
function F_CastResponder(ev)Consumes key-down events during the cast stage and advances its input-driven counter.
| Parameter | Type | Default | Description |
|---|---|---|---|
ev | dynamic | — | Input event to process. |
function F_CastTicker()Advances the cast-stage elapsed-tic counter while that stage is active.
function F_Drawer()Dispatches finale rendering between story text, cast presentation, and the episode-specific ending artwork.
function F_DrawPatchCol(x, patch, col)Decodes one post-compressed Doom patch column into the logical framebuffer with horizontal and vertical bounds checks.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
patch | dynamic | — | Patch value supplied to `F_DrawPatchCol`. |
col | dynamic | — | Col value supplied to `F_DrawPatchCol`. |
function F_Responder(ev)Routes input only to the cast stage; text and art stages deliberately leave events unconsumed.
| Parameter | Type | Default | Description |
|---|---|---|---|
ev | dynamic | — | Input event to process. |
function F_StartCast()Switches the finale into its cast stage, initializes its placeholder actor state, and starts the evil music track.
function F_StartFinale()Enters GS_FINALE, selects the episode/map text and background, and starts the appropriate finale music.
function F_TextWrite()Draws the tiled finale background and reveals the selected story text at TEXTSPEED using the HUD font.
function F_Ticker()Advances finale time, handles commercial skip/world completion, and transitions non-commercial text into its art stage.
finale_countTracks the mutable finale count value used by the f finale subsystem.
finale_flatStores the mutable finale flat text used by the f finale subsystem.
finale_stageTracks the mutable finale stage value used by the f finale subsystem.
finale_startedTracks whether finale started is active in the f finale subsystem.
finale_textStores the mutable finale text text used by the f finale subsystem.
const TEXTSPEED = 3Defines textspeed for the f finale subsystem.
const TEXTWAIT = 250Defines textwait for the f finale subsystem.