# _WI_Abs
inline function _WI_Abs(v)Returns a signed integer magnitude for counter animation and layout math.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
src/wi_stuff.mlImplements intermission flow, counters, and transition screens.
d_player.ml → src/d_player.mldoomdef.ml → src/doomdef.mldoomstat.ml → src/doomstat.mlg_game.ml → src/g_game.mli_system.ml → src/i_system.mlm_random.ml → src/m_random.mlm_swap.ml → src/m_swap.mlr_defs.ml → src/r_defs.mlr_local.ml → src/r_local.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.mlinline function _WI_Abs(v)Returns a signed integer magnitude for counter animation and layout math.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
inline function _WI_AnimDefault()Creates an inert animation record used to preallocate episode animation tables.
inline function _WI_CacheOrVoid(name, tag)Looks up an optional patch lump and caches it with the requested zone tag.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Resource or object name to resolve. |
tag | dynamic | — | Zone-memory or resource-lifetime tag. |
inline function _WI_Clamp(v, lo, hi)Bounds animated counters between their scoreboard-specific minimum and target value.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
lo | dynamic | — | Inclusive lower bound. |
hi | dynamic | — | Inclusive upper bound. |
inline function _WI_DrawRowName(slot, x, y)Draws one player name at netgame row start.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_WI_DrawRowName`. |
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
inline function _WI_GetPlr(index)Returns a checked wminfo player row, falling back to an empty scoreboard record.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based element or table index. |
inline function _WI_GetPlrFrag(playernum, target)Reads one frag-matrix entry from wb player stats safely.
| Parameter | Type | Default | Description |
|---|---|---|---|
playernum | dynamic | — | Index identifying player. |
target | dynamic | — | Target value supplied to `_WI_GetPlrFrag`. |
inline function _WI_IDiv(a, b)Truncates intermission percentage/time quotients toward zero and returns zero on invalid input.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
function _WI_NumPixelWidth(n, digits)Computes rendered pixel width for one WI number, matching WI_drawNum semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
n | dynamic | — | Number of values to process. |
digits | dynamic | — | Digits value supplied to `_WI_NumPixelWidth`. |
inline function _WI_PatchH(p)Reads a patch height safely for intermission alignment calculations.
| Parameter | Type | Default | Description |
|---|---|---|---|
p | dynamic | — | Object or data record consumed by the operation. |
inline function _WI_PatchW(p)Reads a patch width safely for intermission alignment calculations.
| Parameter | Type | Default | Description |
|---|---|---|---|
p | dynamic | — | Object or data record consumed by the operation. |
inline function _WI_PlayerIngame(index)Returns whether a player slot is active for intermission tables.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based element or table index. |
function _WI_PlayerRowName(slot)Resolves readable player name for intermission net rows.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_WI_PlayerRowName`. |
inline function _WI_Point(x, y)Constructs an immutable two-coordinate map-node position.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
inline function _WI_SafeDrawNamedPatch(x, y, patch, name)Draws an intermission patch and its OpenGL high-resolution package image.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
patch | dynamic | — | Patch value supplied to `_WI_SafeDrawNamedPatch`. |
name | dynamic | — | Resource or object name to resolve. |
inline function _WI_SafeDrawPatch(x, y, patch)Draws a patch only when its decoded resource and destination coordinates are valid.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
patch | dynamic | — | Patch value supplied to `_WI_SafeDrawPatch`. |
inline function _WI_SafeStartSound(origin, sfx)Plays an intermission cue only when the sound backend is available.
| Parameter | Type | Default | Description |
|---|---|---|---|
origin | dynamic | — | Origin value supplied to `_WI_SafeStartSound`. |
sfx | dynamic | — | Sound-effect descriptor to process. |
inline function _WI_Substr(s, n)Returns at most n bytes from the beginning of s.
| Parameter | Type | Default | Description |
|---|---|---|---|
s | dynamic | — | S value supplied to `_WI_Substr`. |
n | dynamic | — | Number of values to process. |
function _WI_TargetItems(index)Computes the bounded final item percentage for the local single-player row.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based element or table index. |
function _WI_TargetKills(index)Computes the bounded final kill percentage for the local single-player row.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based element or table index. |
inline function _WI_TargetPar()Converts the map par time from tics to scoreboard seconds.
function _WI_TargetSecrets(index)Computes the bounded final secret percentage for the local single-player row.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based element or table index. |
inline function _WI_TargetTime(index)Converts the player's completion time from tics to scoreboard seconds.
| Parameter | Type | Default | Description |
|---|---|---|---|
index | dynamic | — | Zero-based element or table index. |
function _WI_ToInt(v, fallback)Normalizes values to int for intermission math and counters.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
fallback | dynamic | — | Value returned when the requested conversion or lookup is unavailable. |
acceleratestageTracks the mutable acceleratestage value used by the wi stuff subsystem.
anim_t struct
animenum_t enum
animsStores the anims collection used by the wi stuff subsystem.
bcntTracks the mutable bcnt value used by the wi stuff subsystem.
bgHolds the optional bg resource used by the wi stuff subsystem.
bg_nameStores the mutable bg name text used by the wi stuff subsystem.
bstarHolds the optional bstar resource used by the wi stuff subsystem.
bstar_nameStores the mutable bstar name text used by the wi stuff subsystem.
cntTracks the mutable cnt value used by the wi stuff subsystem.
cnt_fragsStores the cnt frags collection used by the wi stuff subsystem.
cnt_itemsStores the cnt items collection used by the wi stuff subsystem.
cnt_killsStores the cnt kills collection used by the wi stuff subsystem.
cnt_parTracks the mutable cnt par value used by the wi stuff subsystem.
cnt_pauseTracks the mutable cnt pause value used by the wi stuff subsystem.
cnt_secretStores the cnt secret collection used by the wi stuff subsystem.
cnt_timeTracks the mutable cnt time value used by the wi stuff subsystem.
colonHolds the optional colon resource used by the wi stuff subsystem.
colon_nameStores the mutable colon name text used by the wi stuff subsystem.
dm_fragsStores the dm frags collection used by the wi stuff subsystem.
const DM_KILLERSX = 10Defines dm killersx for the wi stuff subsystem.
const DM_KILLERSY = 100Defines dm killersy for the wi stuff subsystem.
const DM_MATRIXX = 42Defines dm matrixx for the wi stuff subsystem.
const DM_MATRIXY = 68Defines dm matrixy for the wi stuff subsystem.
const DM_SPACINGX = 40Defines dm spacingx for the wi stuff subsystem.
dm_stateTracks the mutable dm state value used by the wi stuff subsystem.
dm_totalsStores the dm totals collection used by the wi stuff subsystem.
const DM_TOTALSX = 269Defines dm totalsx for the wi stuff subsystem.
const DM_VICTIMSX = 5Defines dm victimsx for the wi stuff subsystem.
const DM_VICTIMSY = 50Defines dm victimsy for the wi stuff subsystem.
dofragsTracks whether dofrags is active in the wi stuff subsystem.
enteringHolds the optional entering resource used by the wi stuff subsystem.
entering_nameStores the mutable entering name text used by the wi stuff subsystem.
finishedHolds the optional finished resource used by the wi stuff subsystem.
finished_nameStores the mutable finished name text used by the wi stuff subsystem.
firstrefreshTracks the mutable firstrefresh value used by the wi stuff subsystem.
fragsHolds the optional frags resource used by the wi stuff subsystem.
frags_nameStores the mutable frags name text used by the wi stuff subsystem.
itemsHolds the optional items resource used by the wi stuff subsystem.
items_nameStores the mutable items name text used by the wi stuff subsystem.
killersHolds the optional killers resource used by the wi stuff subsystem.
killers_nameStores the mutable killers name text used by the wi stuff subsystem.
killsHolds the optional kills resource used by the wi stuff subsystem.
kills_nameStores the mutable kills name text used by the wi stuff subsystem.
lnamesStores the lnames collection used by the wi stuff subsystem.
lnodesStores the lnodes collection used by the wi stuff subsystem.
meTracks the mutable me value used by the wi stuff subsystem.
const NG_NAMEX = 6Defines ng namex for the wi stuff subsystem.
const NG_NAMEYOFF = 10Defines ng nameyoff for the wi stuff subsystem.
const NG_SPACINGX = 64Defines ng spacingx for the wi stuff subsystem.
ng_stateTracks the mutable ng state value used by the wi stuff subsystem.
const NG_STATSX = 32Defines ng statsx for the wi stuff subsystem.
const NG_STATSY = 50Defines ng statsy for the wi stuff subsystem.
numStores the num collection used by the wi stuff subsystem.
num_namesStores the num names collection used by the wi stuff subsystem.
NUMCMAPSTracks the mutable numcmaps value used by the wi stuff subsystem.
const NUMEPISODES = 4Defines the numepisodes count used by the wi stuff subsystem.
const NUMMAPS = 9Defines the nummaps count used by the wi stuff subsystem.
parHolds the optional par resource used by the wi stuff subsystem.
par_nameStores the mutable par name text used by the wi stuff subsystem.
percentHolds the optional percent resource used by the wi stuff subsystem.
percent_nameStores the mutable percent name text used by the wi stuff subsystem.
plrsStores the plrs collection used by the wi stuff subsystem.
point_t struct
secretHolds the optional secret resource used by the wi stuff subsystem.
secret_nameStores the mutable secret name text used by the wi stuff subsystem.
const SHOWNEXTLOCDELAY = 4Defines shownextlocdelay for the wi stuff subsystem.
const SP_FRAGS = 6Defines sp frags for the wi stuff subsystem.
const SP_ITEMS = 2Defines sp items for the wi stuff subsystem.
const SP_KILLS = 0Defines sp kills for the wi stuff subsystem.
const SP_PAR = 8Defines sp par for the wi stuff subsystem.
const SP_PAUSE = 1Defines sp pause for the wi stuff subsystem.
const SP_SECRET = 4Defines sp secret for the wi stuff subsystem.
sp_secretHolds the optional sp secret resource used by the wi stuff subsystem.
sp_secret_nameStores the mutable sp secret name text used by the wi stuff subsystem.
sp_stateTracks the mutable sp state value used by the wi stuff subsystem.
const SP_STATSX = 50Defines sp statsx for the wi stuff subsystem.
const SP_STATSY = 50Defines sp statsy for the wi stuff subsystem.
const SP_TIME = 8Defines sp time for the wi stuff subsystem.
const SP_TIMEX = 16Defines sp timex for the wi stuff subsystem.
const SP_TIMEY = SCREENHEIGHT - 32Defines sp timey for the wi stuff subsystem.
splatHolds the optional splat resource used by the wi stuff subsystem.
splat_nameStores the mutable splat name text used by the wi stuff subsystem.
starHolds the optional star resource used by the wi stuff subsystem.
star_nameStores the mutable star name text used by the wi stuff subsystem.
stateExposes `stateenum_t.NoState` through the legacy `state` alias.
stateenum_t enum
sucksHolds the optional sucks resource used by the wi stuff subsystem.
sucks_nameStores the mutable sucks name text used by the wi stuff subsystem.
timepatchHolds the optional timepatch resource used by the wi stuff subsystem.
timepatch_nameStores the mutable timepatch name text used by the wi stuff subsystem.
totalHolds the optional total resource used by the wi stuff subsystem.
total_nameStores the mutable total name text used by the wi stuff subsystem.
victimsHolds the optional victims resource used by the wi stuff subsystem.
victims_nameStores the mutable victims name text used by the wi stuff subsystem.
wbsHolds the optional wbs resource used by the wi stuff subsystem.
wi_bpStores the wi bp collection used by the wi stuff subsystem.
wi_bp_namesStores the wi bp names collection used by the wi stuff subsystem.
function WI_checkForAccelerate()Latches rising attack/use buttons from any active player into the shared accelerate flag.
function WI_drawAnimatedBack()Draws each active episode-map background animation frame.
function WI_drawDeathmatchStats()Draws the deathmatch frag matrix, totals, and host-synchronized player names.
function WI_drawEL()Draws the localized entering-map heading and next map name.
function WI_Drawer()Selects and draws the current deathmatch, coop, solo, or map-transition intermission screen.
function WI_drawLF()Draws the localized finished-map heading and current map name.
function WI_drawNetgameStats()Draws cooperative kill/item/secret/frag columns for every active slot.
function WI_drawNoState()Draws the final static world-map frame before leaving intermission.
function WI_drawNum(x, y, n, digits)Draws a signed decimal counter using WI digit/minus patches and right alignment.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
n | dynamic | — | Number of values to process. |
digits | dynamic | — | Digits value supplied to `WI_drawNum`. |
function WI_drawNumRight(xRight, y, n, digits)Draws number right-aligned to xRight.
| Parameter | Type | Default | Description |
|---|---|---|---|
xRight | dynamic | — | X right value supplied to `WI_drawNumRight`. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
n | dynamic | — | Number of values to process. |
digits | dynamic | — | Digits value supplied to `WI_drawNumRight`. |
function WI_drawOnLnode(n, c)Places one map marker on a node while keeping its patch inside screen bounds.
| Parameter | Type | Default | Description |
|---|---|---|---|
n | dynamic | — | Number of values to process. |
c | dynamic | — | C value supplied to `WI_drawOnLnode`. |
function WI_drawPercent(x, y, p)Draws a percentage value followed by the percent patch at the requested anchor.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
p | dynamic | — | Object or data record consumed by the operation. |
function WI_drawPercentAligned(x, y, p)Draws percent with numeric part right-aligned before the percent sign.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
p | dynamic | — | Object or data record consumed by the operation. |
function WI_drawShowNextLoc()Draws the world map, completed splats, blinking pointer, and entering heading.
function WI_drawStats()Draws the animated single-player completion counters and their labels.
function WI_drawTime(x, y, t)Draws mm:ss completion/par time or the overflow label for very long runs.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
y | dynamic | — | Vertical map- or screen-space coordinate. |
t | dynamic | — | T value supplied to `WI_drawTime`. |
function WI_End()Controls end transitions in the intermission system.
const WI_FB = 0Defines wi fb for the wi stuff subsystem.
function WI_fragSum(playernum)Sums one player's net frags with Doom self-frag subtraction semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
playernum | dynamic | — | Index identifying player. |
function WI_initAnimatedBack()Resets per-animation frame indices and schedules their first episode-specific background tick.
function WI_initDeathmatchStats()Seeds the deathmatch frag matrix counters and opens the first staged scoreboard pause.
function WI_initNetgameStats()Clears cooperative kill/item/secret counters and starts their staged count-up sequence.
function WI_initNoState()Enters the final ten-tic intermission hold before handing control back to world progression.
function WI_initShowNextLoc()Enters the next-location map screen with its fixed delay and pointer blink state reset.
function WI_initStats()Clears single-player counters and begins the kill/item/secret/time tally sequence.
function WI_initVariables(wbstartstruct)Validates wminfo, selects the local scoreboard row, and resets clocks/accelerate flags.
| Parameter | Type | Default | Description |
|---|---|---|---|
wbstartstruct | dynamic | — | Wbstartstruct value supplied to `WI_initVariables`. |
function WI_loadData()Caches scoreboard digits, labels, map patches, player markers, and episode animation frames.
wi_pStores the wi p collection used by the wi stuff subsystem.
wi_p_namesStores the wi p names collection used by the wi stuff subsystem.
function WI_Responder(ev)Records attack/use acceleration requests from every active player during intermission.
| Parameter | Type | Default | Description |
|---|---|---|---|
ev | dynamic | — | Input event to process. |
function WI_slamBackground()Copies the cached intermission background into the active framebuffer.
const WI_SPACINGY = 33Defines wi spacingy for the wi stuff subsystem.
function WI_Start(wbstartstruct)Loads shared artwork and selects deathmatch, cooperative, or solo scoreboard state.
| Parameter | Type | Default | Description |
|---|---|---|---|
wbstartstruct | dynamic | — | Wbstartstruct value supplied to `WI_Start`. |
wi_startedTracks whether wi started is active in the wi stuff subsystem.
function WI_Ticker()Samples acceleration, advances background animation, and ticks the active scoreboard state machine.
const WI_TITLEY = 2Defines wi titley for the wi stuff subsystem.
function WI_unloadData()Releases intermission patch references so zone-cached graphics can be reclaimed after exit.
function WI_updateAnimatedBack()Advances looping, one-shot, and level-gated background animations at their configured cadence.
function WI_updateDeathmatchStats()Animates each frag cell and total toward authoritative values, honoring accelerate-to-finish.
function WI_updateNetgameStats()Animates cooperative percentages for all active players and advances through pause stages.
function WI_updateNoState()Counts down the terminal hold and invokes G_WorldDone exactly when it expires.
function WI_updateShowNextLoc()Animates the map pointer and transitions to the terminal hold after the location delay.
function WI_updateStats()Animates single-player percentages and times, with attack/use acceleration and stage sounds.
wi_wbstartHolds the optional wi wbstart resource used by the wi stuff subsystem.
wiminusHolds the optional wiminus resource used by the wi stuff subsystem.
wiminus_nameStores the mutable wiminus name text used by the wi stuff subsystem.
yahStores the yah collection used by the wi stuff subsystem.
yah_namesStores the yah names collection used by the wi stuff subsystem.