MiniQuake

src/miniquake/host.ml

Package
miniquake.host
Reachable
Yes

Imports

Declarations

_Host_Frame

function _Host_Frame(session, elapsedSeconds)

Apply the Quake-compatible host frame behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `_Host_Frame`.
elapsedSecondsdynamic—The elapsed seconds input consumed by `_Host_Frame`.

View source

_Host_ServerFrame

function _Host_ServerFrame(session)

Apply the Quake-compatible host server frame behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `_Host_ServerFrame`.

View source

activeServerClients

function activeServerClients(session)

Report whether active server clients holds for the active state.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `activeServerClients`.

View source

adjustMenuOption

function adjustMenuOption(session, direction)

Implements the `adjustMenuOption` operation for `miniquake.host` (adjust menu option).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `adjustMenuOption`.
directiondynamic—The direction input consumed by `adjustMenuOption`.

View source

appendVisibleStaticEntities

function appendVisibleStaticEntities(session, dynamicEntities)

Append only static entities linked into leaves visible from the current world PVS. CL_RelinkEntities intentionally contains dynamic entities only; this is the production counterpart of GLQuake's R_StoreEfrags calls made while traversing visible world leaves.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `appendVisibleStaticEntities`.
dynamicEntitiesdynamic—The dynamic entities input consumed by `appendVisibleStaticEntities`.

View source

beginDemoRecording

function beginDemoRecording(session, arguments)

Initialize state for begin demo recording.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `beginDemoRecording`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

captureUiResolutionScene

function captureUiResolutionScene(session, outputPrefix, expectedWidth, expectedHeight)

Implements the `captureUiResolutionScene` operation for `miniquake.host` (capture ui resolution scene).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `captureUiResolutionScene`.
outputPrefixdynamic—The output prefix input consumed by `captureUiResolutionScene`.
expectedWidthdynamic—The expected width input consumed by `captureUiResolutionScene`.
expectedHeightdynamic—The expected height input consumed by `captureUiResolutionScene`.

View source

changeLevel

function changeLevel(session, mapName)

Update subsystem configuration for change level.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `changeLevel`.
mapNamedynamic—Name of the map to load or inspect.

View source

clearInactivePresentationWorld

function clearInactivePresentationWorld(session)

Clear the non-authoritative world retained solely for demo or remote presentation. A live local server owns these fields and must keep them across renderer rebuilds; an inactive server must not let an old demo BSP suppress preparation of the next remote server's world.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `clearInactivePresentationWorld`.

View source

commandNeverExists

function commandNeverExists(name)

Report whether command never exists holds for the active state.

ParameterTypeDefaultDescription
namedynamic—Stable name that identifies the requested object or option.

View source

configureNetworkQueries

function configureNetworkQueries(session)

Update subsystem configuration for configure network queries.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `configureNetworkQueries`.

View source

connectRemoteHost

function connectRemoteHost(session, hostName)

Establish remote host using the active network transport.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `connectRemoteHost`.
hostNamedynamic—Name that identifies the requested value or resource.

View source

connectRemoteHostInterop

function connectRemoteHostInterop(session, hostName, timeoutMilliseconds, resendMilliseconds)

Establish remote host interop using the active network transport.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `connectRemoteHostInterop`.
hostNamedynamic—Name that identifies the requested value or resource.
timeoutMillisecondsdynamic—The timeout milliseconds input consumed by `connectRemoteHostInterop`.
resendMillisecondsdynamic—The resend milliseconds input consumed by `connectRemoteHostInterop`.

View source

consumeClientEvents

function consumeClientEvents(session)

Consume pending state for consume client events.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `consumeClientEvents`.

View source

consumeConsoleSideEffects

function consumeConsoleSideEffects(session)

console.c performs these two effects synchronously from Con_Print/Con_Printf. MiniLang records them on ConsoleState so the host can invoke the production audio and screen paths without creating a console<->host import cycle.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `consumeConsoleSideEffects`.

View source

consumeQuakeCControl

function consumeQuakeCControl(session)

Consume pending state for consume quake ccontrol.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `consumeQuakeCControl`.

View source

consumeRelinkParticleEffects

function consumeRelinkParticleEffects(session)

Consume pending state for consume relink particle effects.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `consumeRelinkParticleEffects`.

View source

create

function create(args)

Implements the `create` operation for `miniquake.host` (create).

ParameterTypeDefaultDescription
argsdynamic—Command-line arguments supplied by the host process.

View source

createCvars

function createCvars(commandLine, registered)

Create and initialize cvars.

ParameterTypeDefaultDescription
commandLinedynamic—The command line input consumed by `createCvars`.
registereddynamic—The registered input consumed by `createCvars`.

View source

cvarCommand

function cvarCommand(session, arguments)

Implements the `cvarCommand` operation for `miniquake.host` (cvar command).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `cvarCommand`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

destroyScene

function destroyScene(session)

Release resources owned by scene.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `destroyScene`.

View source

deterministicInputRequested

function deterministicInputRequested(session)

Implements the `deterministicInputRequested` operation for `miniquake.host` (deterministic input requested).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `deterministicInputRequested`.

View source

discardTextInput

function discardTextInput()

Release or consume state for discard text input.

View source

executeCommand

function executeCommand(session, text)

Execute command.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `executeCommand`.
textdynamic—Text to parse or process.

View source

executeCommandBuffer

function executeCommandBuffer(session, maximumCommands)

Execute command buffer.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `executeCommandBuffer`.
maximumCommandsdynamic—The maximum commands input consumed by `executeCommandBuffer`.

View source

executeMenuSelection

function executeMenuSelection(session)

Execute menu selection.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `executeMenuSelection`.

View source

failedMapTransition

function failedMapTransition(session, result)

Implements the `failedMapTransition` operation for `miniquake.host` (failed map transition).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `failedMapTransition`.
resultdynamic—Result value to report or translate into a status code.

View source

filterTime

function filterTime(timing, newRealtime, maxFps, forcedFrameRate, timedemo)

Implements the `filterTime` operation for `miniquake.host` (filter time).

ParameterTypeDefaultDescription
timingdynamic—The timing input consumed by `filterTime`.
newRealtimedynamic—Time value used by the operation.
maxFpsdynamic—The max fps input consumed by `filterTime`.
forcedFrameRatedynamic—The forced frame rate input consumed by `filterTime`.
timedemodynamic—The timedemo input consumed by `filterTime`.

View source

findAlias

function findAlias(system, name)

Return alias.

ParameterTypeDefaultDescription
systemdynamic—The system input consumed by `findAlias`.
namedynamic—Stable name that identifies the requested object or option.

View source

FindViewthing

function FindViewthing(session)

Return viewthing.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `FindViewthing`.

View source

finishDemoPlayback

function finishDemoPlayback(session)

Finalize state for finish demo playback.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `finishDemoPlayback`.

View source

finishLoadingPresentation

function finishLoadingPresentation(session)

Present one non-simulating loading frame after the new renderer and all level assets exist. This moves the driver's one-time first SwapBuffers cost out of the first ordinary Host_Frame while retaining four stock-order warmup updates under the loading plaque.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `finishLoadingPresentation`.

View source

finishLocalMapConnection

function finishLocalMapConnection(session, preserveClients)

Finalize state for finish local map connection.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `finishLocalMapConnection`.
preserveClientsdynamic—The preserve clients input consumed by `finishLocalMapConnection`.

View source

firstRemoteServerClient

function firstRemoteServerClient(session)

Return first remote server client for the active module state.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `firstRemoteServerClient`.

View source

flushServerCvarChanges

function flushServerCvarChanges(session)

Implements the `flushServerCvarChanges` operation for `miniquake.host` (flush server cvar changes).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `flushServerCvarChanges`.

View source

frame

function frame(session, elapsedSeconds)

Implements the `frame` operation for `miniquake.host` (frame).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `frame`.
elapsedSecondsdynamic—The elapsed seconds input consumed by `frame`.

View source

gameplayMouseEnabled

function gameplayMouseEnabled(session)

Report whether gameplay mouse enabled holds for the active state.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `gameplayMouseEnabled`.

View source

handleExactMenuAction

function handleExactMenuAction(session, result)

Handle exact menu action and update the associated state.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `handleExactMenuAction`.
resultdynamic—Result value to report or translate into a status code.

View source

handleKeyResult

function handleKeyResult(session, result)

Handle key result and update the associated state.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `handleKeyResult`.
resultdynamic—Result value to report or translate into a status code.

View source

handleMenuKey

function handleMenuKey(session, key)

Handle menu key and update the associated state.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `handleMenuKey`.
keydynamic—Key used to identify the requested entry.

View source

Host_Begin_f

function Host_Begin_f()

Apply the Quake-compatible host begin f behavior.

View source

Host_Changelevel2_f

function Host_Changelevel2_f(session, arguments)

Apply the Quake-compatible host changelevel2 f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Changelevel2_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Changelevel_f

function Host_Changelevel_f(session, arguments)

Apply the Quake-compatible host changelevel f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Changelevel_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_CheatHelpLines

function Host_CheatHelpLines()

Return the console help shown for MiniQuake's supported cheat commands.

View source

Host_Cheats_f

function Host_Cheats_f(session)

Print the complete cheat reference from either accepted help alias.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Cheats_f`.

View source

Host_ClearMemory

function Host_ClearMemory(session)

Apply the Quake-compatible host clear memory behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_ClearMemory`.

View source

Host_ClientCommands

function Host_ClientCommands(clientValue, text)

Apply the Quake-compatible host client commands behavior.

ParameterTypeDefaultDescription
clientValuedynamic—The client value input consumed by `Host_ClientCommands`.
textdynamic—Text to parse or process.

View source

Host_Color_f

function Host_Color_f(session, arguments)

Apply the Quake-compatible host color f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Color_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Connect_f

function Host_Connect_f(session, arguments)

Apply the Quake-compatible host connect f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Connect_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Demos_f

function Host_Demos_f(session)

Apply the Quake-compatible host demos f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Demos_f`.

View source

Host_Disconnect_f

function Host_Disconnect_f(session)

Apply the Quake-compatible host disconnect f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Disconnect_f`.

View source

Host_DispatchCommand

function Host_DispatchCommand(session, text, arguments)

Apply the Quake-compatible host dispatch command behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_DispatchCommand`.
textdynamic—Text to parse or process.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Edict_f

function Host_Edict_f(session, arguments)

Apply the Quake-compatible host edict f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Edict_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_EdictCount_f

function Host_EdictCount_f(session)

Apply the Quake-compatible host edict count f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_EdictCount_f`.

View source

Host_Edicts_f

function Host_Edicts_f(session)

Apply the Quake-compatible host edicts f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Edicts_f`.

View source

Host_EndGame

function Host_EndGame(session, message)

Apply the Quake-compatible host end game behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_EndGame`.
messagedynamic—Diagnostic message that explains a failure or event.

View source

Host_Error

function Host_Error(session, message)

Apply the Quake-compatible host error behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Error`.
messagedynamic—Diagnostic message that explains a failure or event.

View source

Host_FilterTime

function Host_FilterTime(session, elapsedSeconds)

Apply the Quake-compatible host filter time behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_FilterTime`.
elapsedSecondsdynamic—The elapsed seconds input consumed by `Host_FilterTime`.

View source

Host_FindMaxClients

function Host_FindMaxClients(arguments)

Apply the Quake-compatible host find max clients behavior.

ParameterTypeDefaultDescription
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_FlushCache_f

function Host_FlushCache_f(session)

Apply the Quake-compatible host flush cache f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_FlushCache_f`.

View source

Host_FlushPendingClientMessages

function Host_FlushPendingClientMessages(session, timeoutSeconds)

Apply the Quake-compatible host flush pending client messages behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_FlushPendingClientMessages`.
timeoutSecondsdynamic—The timeout seconds input consumed by `Host_FlushPendingClientMessages`.

View source

Host_Fly_f

function Host_Fly_f(session)

Apply the Quake-compatible host fly f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Fly_f`.

View source

Host_ForwardToServer

function Host_ForwardToServer(session, text)

Apply the Quake-compatible host forward to server behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_ForwardToServer`.
textdynamic—Text to parse or process.

View source

Host_Frame

function Host_Frame(session, elapsedSeconds)

Apply the Quake-compatible host frame behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Frame`.
elapsedSecondsdynamic—The elapsed seconds input consumed by `Host_Frame`.

View source

Host_GetConsoleCommands

function Host_GetConsoleCommands(session, inputLines)

Apply the Quake-compatible host get console commands behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_GetConsoleCommands`.
inputLinesdynamic—The input lines input consumed by `Host_GetConsoleCommands`.

View source

Host_Give_f

function Host_Give_f(session, arguments)

Apply the Quake-compatible host give f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Give_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_God_f

function Host_God_f(session)

Apply the Quake-compatible host god f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_God_f`.

View source

Host_Init

function Host_Init(session)

Apply the Quake-compatible host init behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Init`.

View source

Host_InitCommands

function Host_InitCommands()

Apply the Quake-compatible host init commands behavior.

View source

Host_InitLocal

function Host_InitLocal(session)

Apply the Quake-compatible host init local behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_InitLocal`.

View source

Host_InitVCR

function Host_InitVCR(session)

Apply the Quake-compatible host init vcr behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_InitVCR`.

View source

Host_Invisible_f

function Host_Invisible_f(session)

Forward the MiniQuake AI-invisibility cheat to the authoritative server.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Invisible_f`.

View source

Host_Kick_f

function Host_Kick_f(session, arguments)

Apply the Quake-compatible host kick f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Kick_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Kill_f

function Host_Kill_f(session)

Apply the Quake-compatible host kill f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Kill_f`.

View source

Host_Loadgame_f

function Host_Loadgame_f(session, arguments)

Apply the Quake-compatible host loadgame f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Loadgame_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Map_f

function Host_Map_f(session, arguments)

Apply the Quake-compatible host map f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Map_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Mod_Print

function Host_Mod_Print(session)

Apply the Quake-compatible host mod print behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Mod_Print`.

View source

Host_Name_f

function Host_Name_f(session, arguments)

Apply the Quake-compatible host name f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Name_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Noclip_f

function Host_Noclip_f(session)

Apply the Quake-compatible host noclip f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Noclip_f`.

View source

Host_Notarget_f

function Host_Notarget_f(session)

Apply the Quake-compatible host notarget f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Notarget_f`.

View source

Host_Pause_f

function Host_Pause_f(session)

Apply the Quake-compatible host pause f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Pause_f`.

View source

Host_Ping_f

function Host_Ping_f(session)

Apply the Quake-compatible host ping f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Ping_f`.

View source

Host_Please_f

function Host_Please_f(session, arguments)

Apply the Quake-compatible host please f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Please_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_PreSpawn_f

function Host_PreSpawn_f()

Apply the Quake-compatible host pre spawn f behavior.

View source

Host_Profile_f

function Host_Profile_f(session)

Apply the Quake-compatible host profile f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Profile_f`.

View source

Host_Quit_f

function Host_Quit_f(session)

Apply the Quake-compatible host quit f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Quit_f`.

View source

Host_Reconnect_f

function Host_Reconnect_f(session)

Apply the Quake-compatible host reconnect f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Reconnect_f`.

View source

Host_Restart_f

function Host_Restart_f(session)

Apply the Quake-compatible host restart f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Restart_f`.

View source

Host_Savegame_f

function Host_Savegame_f(session, arguments)

Apply the Quake-compatible host savegame f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Savegame_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Say

function Host_Say(session, arguments, teamOnly)

Apply the Quake-compatible host say behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Say`.
argumentsdynamic—Command-line arguments to inspect or execute.
teamOnlydynamic—The team only input consumed by `Host_Say`.

View source

Host_Say_f

function Host_Say_f(session, arguments)

Apply the Quake-compatible host say f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Say_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Say_Team_f

function Host_Say_Team_f(session, arguments)

Apply the Quake-compatible host say team f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Say_Team_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_ServerFrame

function Host_ServerFrame(session)

Apply the Quake-compatible host server frame behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_ServerFrame`.

View source

Host_Shutdown

function Host_Shutdown(session)

Apply the Quake-compatible host shutdown behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Shutdown`.

View source

Host_ShutdownServer

function Host_ShutdownServer(session, crash)

Apply the Quake-compatible host shutdown server behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_ShutdownServer`.
crashdynamic—The crash input consumed by `Host_ShutdownServer`.

View source

Host_Spawn_f

function Host_Spawn_f()

Apply the Quake-compatible host spawn f behavior.

View source

Host_Startdemos_f

function Host_Startdemos_f(session, arguments)

Apply the Quake-compatible host startdemos f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Startdemos_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Status_f

function Host_Status_f(session)

Apply the Quake-compatible host status f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Status_f`.

View source

Host_Stopdemo_f

function Host_Stopdemo_f(session)

Apply the Quake-compatible host stopdemo f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Stopdemo_f`.

View source

Host_Tell_f

function Host_Tell_f(session, arguments)

Apply the Quake-compatible host tell f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Tell_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Version_f

function Host_Version_f()

Apply the Quake-compatible host version f behavior.

View source

Host_Viewframe_f

function Host_Viewframe_f(session, arguments)

Apply the Quake-compatible host viewframe f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Viewframe_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Viewmodel_f

function Host_Viewmodel_f(session, arguments)

Apply the Quake-compatible host viewmodel f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Viewmodel_f`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

Host_Viewnext_f

function Host_Viewnext_f(session)

Apply the Quake-compatible host viewnext f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Viewnext_f`.

View source

Host_Viewprev_f

function Host_Viewprev_f(session)

Apply the Quake-compatible host viewprev f behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_Viewprev_f`.

View source

Host_WriteConfiguration

function Host_WriteConfiguration(session)

Apply the Quake-compatible host write configuration behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `Host_WriteConfiguration`.

View source

initialize

function initialize(session)

Initializes ialize for `miniquake.host`.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `initialize`.

View source

interopBool

function interopBool(value)

Implements the `interopBool` operation for `miniquake.host` (interop bool).

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `interopBool`.

View source

interopWriteReady

function interopWriteReady(outputPrefix, port, mapName)

Implements the `interopWriteReady` operation for `miniquake.host` (interop write ready).

ParameterTypeDefaultDescription
outputPrefixdynamic—The output prefix input consumed by `interopWriteReady`.
portdynamic—The port input consumed by `interopWriteReady`.
mapNamedynamic—Name of the map to load or inspect.

View source

interopWriteSummary

function interopWriteSummary(outputPrefix, mode, success, frames, address, port, mapName, connected, spawned, signon, clientName, viewEntity, modelCount, soundCount, activeClients, errorText)

Return interop write summary derived from the active module state.

ParameterTypeDefaultDescription
outputPrefixdynamic—The output prefix input consumed by `interopWriteSummary`.
modedynamic—The mode input consumed by `interopWriteSummary`.
successdynamic—The success input consumed by `interopWriteSummary`.
framesdynamic—The frames input consumed by `interopWriteSummary`.
addressdynamic—Network address of the peer.
portdynamic—The port input consumed by `interopWriteSummary`.
mapNamedynamic—Name of the map to load or inspect.
connecteddynamic—The connected input consumed by `interopWriteSummary`.
spawneddynamic—The spawned input consumed by `interopWriteSummary`.
signondynamic—The signon input consumed by `interopWriteSummary`.
clientNamedynamic—Name that identifies the requested value or resource.
viewEntitydynamic—The view entity input consumed by `interopWriteSummary`.
modelCountdynamic—Number of entries or units to process.
soundCountdynamic—Number of entries or units to process.
activeClientsdynamic—The active clients input consumed by `interopWriteSummary`.
errorTextdynamic—The error text input consumed by `interopWriteSummary`.

View source

loadGame

function loadGame(session, requestedName)

Read and validate game.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `loadGame`.
requestedNamedynamic—Name that identifies the requested value or resource.

View source

migrateModernInputConfiguration

function migrateModernInputConfiguration(session)

Upgrade legacy retail/default.cfg controls once, after every startup script has run. This repairs existing installations without overriding bindings that the player customizes after the migrated configuration is saved.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `migrateModernInputConfiguration`.

View source

networkCommandAddress

function networkCommandAddress(arguments)

Implements the `networkCommandAddress` operation for `miniquake.host` (network command address).

ParameterTypeDefaultDescription
argumentsdynamic—Command-line arguments to inspect or execute.

View source

nextDemo

function nextDemo(session)

Return next demo for the active module state.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `nextDemo`.

View source

opt001aMapParse

function opt001aMapParse(baseDirectory, gameDirectory, mapName, outputPrefix)

Implements the `opt001aMapParse` operation for `miniquake.host` (opt001a map parse).

ParameterTypeDefaultDescription
baseDirectorydynamic—Root directory containing the Quake installation.
gameDirectorydynamic—Selected Quake game-data directory.
mapNamedynamic—Name of the map to load or inspect.
outputPrefixdynamic—The output prefix input consumed by `opt001aMapParse`.

View source

opt001aNonHandleStable

function opt001aNonHandleStable(before, after)

Implements the `opt001aNonHandleStable` operation for `miniquake.host` (opt001a non handle stable).

ParameterTypeDefaultDescription
beforedynamic—The before input consumed by `opt001aNonHandleStable`.
afterdynamic—The after input consumed by `opt001aNonHandleStable`.

View source

opt001aResourceHeader

function opt001aResourceHeader()

Implements the `opt001aResourceHeader` operation for `miniquake.host` (opt001a resource header).

View source

opt001aResourceJson

function opt001aResourceJson(values)

Implements the `opt001aResourceJson` operation for `miniquake.host` (opt001a resource json).

ParameterTypeDefaultDescription
valuesdynamic—The values input consumed by `opt001aResourceJson`.

View source

opt001aResourceRow

function opt001aResourceRow(sampleName, frameIndex, values)

Implements the `opt001aResourceRow` operation for `miniquake.host` (opt001a resource row).

ParameterTypeDefaultDescription
sampleNamedynamic—Name that identifies the requested value or resource.
frameIndexdynamic—Zero-based index of the requested entry.
valuesdynamic—The values input consumed by `opt001aResourceRow`.

View source

opt001aRunFrames

function opt001aRunFrames(session, frameCount, phase)

Implements the `opt001aRunFrames` operation for `miniquake.host` (opt001a run frames).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `opt001aRunFrames`.
frameCountdynamic—Number of entries or units to process.
phasedynamic—The phase input consumed by `opt001aRunFrames`.

View source

opt001aSessionArguments

function opt001aSessionArguments(baseDirectory, gameDirectory, mapName, mode, port, width, height)

Implements the `opt001aSessionArguments` operation for `miniquake.host` (opt001a session arguments).

ParameterTypeDefaultDescription
baseDirectorydynamic—Root directory containing the Quake installation.
gameDirectorydynamic—Selected Quake game-data directory.
mapNamedynamic—Name of the map to load or inspect.
modedynamic—The mode input consumed by `opt001aSessionArguments`.
portdynamic—The port input consumed by `opt001aSessionArguments`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.

View source

opt001bChangeLevelTrigger

function opt001bChangeLevelTrigger(session, destination)

Implements the `opt001bChangeLevelTrigger` operation for `miniquake.host` (opt001b change level trigger).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `opt001bChangeLevelTrigger`.
destinationdynamic—Destination value or collection to update.

View source

originalInteropClientNetworkProvenance

function originalInteropClientNetworkProvenance(session, controlAddress)

Implements the `originalInteropClientNetworkProvenance` operation for `miniquake.host` (original interop client network provenance).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `originalInteropClientNetworkProvenance`.
controlAddressdynamic—The control address input consumed by `originalInteropClientNetworkProvenance`.

View source

playDemo

function playDemo(session, requestedName, timed)

Play demo through the active media subsystem.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `playDemo`.
requestedNamedynamic—Name that identifies the requested value or resource.
timeddynamic—The timed input consumed by `playDemo`.

View source

playerFlagEnabled

function playerFlagEnabled(session, flag)

Report whether player flag enabled holds for the active state.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `playerFlagEnabled`.
flagdynamic—The flag input consumed by `playerFlagEnabled`.

View source

playLocalSound

function playLocalSound(session, name)

Play local sound through the active media subsystem.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `playLocalSound`.
namedynamic—Stable name that identifies the requested object or option.

View source

playMenuSound

function playMenuSound(session, name)

Play menu sound through the active media subsystem.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `playMenuSound`.
namedynamic—Stable name that identifies the requested object or option.

View source

precachePlayableLevel

function precachePlayableLevel(session, developerValue)

Complete every deterministic client-side first-use cache before gameplay is exposed. This corresponds to the original CL_InitTEnts/S_BeginPrecaching and renderer cache work, with the modern OGG/audio queue included as well.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `precachePlayableLevel`.
developerValuedynamic—The developer value input consumed by `precachePlayableLevel`.

View source

prepareDemoScene

function prepareDemoScene(session)

Implements the `prepareDemoScene` operation for `miniquake.host` (prepare demo scene).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `prepareDemoScene`.

View source

PrintFrameName

function PrintFrameName(model, frame)

Format and emit frame name.

ParameterTypeDefaultDescription
modeldynamic—Model resource processed by the operation.
framedynamic—The frame input consumed by `PrintFrameName`.

View source

printResourceDelta

function printResourceDelta(label, before, after, high)

Format and emit resource delta.

ParameterTypeDefaultDescription
labeldynamic—The label input consumed by `printResourceDelta`.
beforedynamic—The before input consumed by `printResourceDelta`.
afterdynamic—The after input consumed by `printResourceDelta`.
highdynamic—The high input consumed by `printResourceDelta`.

View source

printResourceSoak

function printResourceSoak(mode, target, frameCount, before, after, high, cycles, demoMessages, stable)

Format and emit resource soak.

ParameterTypeDefaultDescription
modedynamic—The mode input consumed by `printResourceSoak`.
targetdynamic—The target input consumed by `printResourceSoak`.
frameCountdynamic—Number of entries or units to process.
beforedynamic—The before input consumed by `printResourceSoak`.
afterdynamic—The after input consumed by `printResourceSoak`.
highdynamic—The high input consumed by `printResourceSoak`.
cyclesdynamic—The cycles input consumed by `printResourceSoak`.
demoMessagesdynamic—The demo messages input consumed by `printResourceSoak`.
stabledynamic—The stable input consumed by `printResourceSoak`.

View source

processConsoleInput

function processConsoleInput(session)

Execute console input.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `processConsoleInput`.

View source

protocolQueueSnapshot

function protocolQueueSnapshot(session)

Implements the `protocolQueueSnapshot` operation for `miniquake.host` (protocol queue snapshot).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `protocolQueueSnapshot`.

View source

pumpClient

function pumpClient(session)

Advance client by one processing step.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `pumpClient`.

View source

pumpNewConnections

function pumpNewConnections(session)

Advance new connections by one processing step.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `pumpNewConnections`.

View source

queueStartupCommands

function queueStartupCommands(session)

Add state for queue startup commands.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `queueStartupCommands`.

View source

rebuildRendererResources

function rebuildRendererResources(session)

Implements the `rebuildRendererResources` operation for `miniquake.host` (rebuild renderer resources).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `rebuildRendererResources`.

View source

refreshSaveSlots

function refreshSaveSlots(session)

Implements the `refreshSaveSlots` operation for `miniquake.host` (refresh save slots).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `refreshSaveSlots`.

View source

registerCvar

function registerCvar(registry, name, value, archive, serverFlag)

Update subsystem configuration for register cvar.

ParameterTypeDefaultDescription
registrydynamic—The registry input consumed by `registerCvar`.
namedynamic—Stable name that identifies the requested object or option.
valuedynamic—Value consumed by `registerCvar`.
archivedynamic—The archive input consumed by `registerCvar`.
serverFlagdynamic—The server flag input consumed by `registerCvar`.

View source

resourceHighWater

function resourceHighWater(high, value)

Implements the `resourceHighWater` operation for `miniquake.host` (resource high water).

ParameterTypeDefaultDescription
highdynamic—The high input consumed by `resourceHighWater`.
valuedynamic—Value consumed by `resourceHighWater`.

View source

resourceSnapshot

function resourceSnapshot(session)

Implements the `resourceSnapshot` operation for `miniquake.host` (resource snapshot).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `resourceSnapshot`.

View source

resourceStable

function resourceStable(before, after)

Implements the `resourceStable` operation for `miniquake.host` (resource stable).

ParameterTypeDefaultDescription
beforedynamic—The before input consumed by `resourceStable`.
afterdynamic—The after input consumed by `resourceStable`.

View source

restartLevel

function restartLevel(session, mapName)

Implements the `restartLevel` operation for `miniquake.host` (restart level).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `restartLevel`.
mapNamedynamic—Name of the map to load or inspect.

View source

restartRenderer

function restartRenderer(session, backend)

Implements the `restartRenderer` operation for `miniquake.host` (restart renderer).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `restartRenderer`.
backenddynamic—The backend input consumed by `restartRenderer`.

View source

restartSoakDemo

function restartSoakDemo(session, demoName)

Implements the `restartSoakDemo` operation for `miniquake.host` (restart soak demo).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `restartSoakDemo`.
demoNamedynamic—Name that identifies the requested value or resource.

View source

run

function run(args)

Implements the `run` operation for `miniquake.host` (run).

ParameterTypeDefaultDescription
argsdynamic—Command-line arguments supplied by the host process.

View source

runDemoModeSoak

function runDemoModeSoak(args, demoName, frameCount)

Execute demo mode soak.

ParameterTypeDefaultDescription
argsdynamic—Command-line arguments supplied by the host process.
demoNamedynamic—Name that identifies the requested value or resource.
frameCountdynamic—Number of entries or units to process.

View source

runEndscreenEvidence

function runEndscreenEvidence(baseDirectory, gameDirectory, width, height, outputPrefix)

Execute endscreen evidence.

ParameterTypeDefaultDescription
baseDirectorydynamic—Root directory containing the Quake installation.
gameDirectorydynamic—Selected Quake game-data directory.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.
outputPrefixdynamic—The output prefix input consumed by `runEndscreenEvidence`.

View source

runHeadlessFrames

function runHeadlessFrames(args, frameCount)

Execute headless frames.

ParameterTypeDefaultDescription
argsdynamic—Command-line arguments supplied by the host process.
frameCountdynamic—Number of entries or units to process.

View source

runLongSoak

function runLongSoak(baseDirectory, gameDirectory, mode, target, frameCount, port)

Execute long soak.

ParameterTypeDefaultDescription
baseDirectorydynamic—Root directory containing the Quake installation.
gameDirectorydynamic—Selected Quake game-data directory.
modedynamic—The mode input consumed by `runLongSoak`.
targetdynamic—The target input consumed by `runLongSoak`.
frameCountdynamic—Number of entries or units to process.
portdynamic—The port input consumed by `runLongSoak`.

View source

runMeasuredFrames

function runMeasuredFrames(session, frameCount)

Execute measured frames.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `runMeasuredFrames`.
frameCountdynamic—Number of entries or units to process.

View source

runOpt001AFrameBaseline

function runOpt001AFrameBaseline(baseDirectory, gameDirectory, mapName, mode, warmupFrames, measureFrames, outputPrefix, rendererName, width, height)

Execute opt001 aframe baseline.

ParameterTypeDefaultDescription
baseDirectorydynamic—Root directory containing the Quake installation.
gameDirectorydynamic—Selected Quake game-data directory.
mapNamedynamic—Name of the map to load or inspect.
modedynamic—The mode input consumed by `runOpt001AFrameBaseline`.
warmupFramesdynamic—The warmup frames input consumed by `runOpt001AFrameBaseline`.
measureFramesdynamic—The measure frames input consumed by `runOpt001AFrameBaseline`.
outputPrefixdynamic—The output prefix input consumed by `runOpt001AFrameBaseline`.
rendererNamedynamic—Name that identifies the requested value or resource.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.

View source

runOpt001AHandlePlateau

function runOpt001AHandlePlateau(baseDirectory, gameDirectory, mapName, warmupFrames, windowFrames, windowCount, port, outputPrefix, rendererName)

Execute opt001 ahandle plateau.

ParameterTypeDefaultDescription
baseDirectorydynamic—Root directory containing the Quake installation.
gameDirectorydynamic—Selected Quake game-data directory.
mapNamedynamic—Name of the map to load or inspect.
warmupFramesdynamic—The warmup frames input consumed by `runOpt001AHandlePlateau`.
windowFramesdynamic—The window frames input consumed by `runOpt001AHandlePlateau`.
windowCountdynamic—Number of entries or units to process.
portdynamic—The port input consumed by `runOpt001AHandlePlateau`.
outputPrefixdynamic—The output prefix input consumed by `runOpt001AHandlePlateau`.
rendererNamedynamic—Name that identifies the requested value or resource.

View source

runOpt001BQuakeCExit

function runOpt001BQuakeCExit(session, destination, maximumFrames)

Execute opt001 bquake cexit.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `runOpt001BQuakeCExit`.
destinationdynamic—Destination value or collection to update.
maximumFramesdynamic—The maximum frames input consumed by `runOpt001BQuakeCExit`.

View source

runOpt001BTransition

function runOpt001BTransition(baseDirectory, gameDirectory, frameCount, outputPrefix, rendererName)

Execute opt001 btransition.

ParameterTypeDefaultDescription
baseDirectorydynamic—Root directory containing the Quake installation.
gameDirectorydynamic—Selected Quake game-data directory.
frameCountdynamic—Number of entries or units to process.
outputPrefixdynamic—The output prefix input consumed by `runOpt001BTransition`.
rendererNamedynamic—Name that identifies the requested value or resource.

View source

runOriginalInteropClient

function runOriginalInteropClient(args, maximumFrames, outputPrefix, controlAddress, controlPort)

Execute original interop client.

ParameterTypeDefaultDescription
argsdynamic—Command-line arguments supplied by the host process.
maximumFramesdynamic—The maximum frames input consumed by `runOriginalInteropClient`.
outputPrefixdynamic—The output prefix input consumed by `runOriginalInteropClient`.
controlAddressdynamic—The control address input consumed by `runOriginalInteropClient`.
controlPortdynamic—The control port input consumed by `runOriginalInteropClient`.

View source

runOriginalInteropServer

function runOriginalInteropServer(args, maximumFrames, outputPrefix)

Execute original interop server.

ParameterTypeDefaultDescription
argsdynamic—Command-line arguments supplied by the host process.
maximumFramesdynamic—The maximum frames input consumed by `runOriginalInteropServer`.
outputPrefixdynamic—The output prefix input consumed by `runOriginalInteropServer`.

View source

runRendererSwitchSmoke

function runRendererSwitchSmoke(baseDirectory, gameDirectory, mapName, frameCount, outputPrefix)

Execute renderer switch smoke.

ParameterTypeDefaultDescription
baseDirectorydynamic—Root directory containing the Quake installation.
gameDirectorydynamic—Selected Quake game-data directory.
mapNamedynamic—Name of the map to load or inspect.
frameCountdynamic—Number of entries or units to process.
outputPrefixdynamic—The output prefix input consumed by `runRendererSwitchSmoke`.

View source

runRenderEvidence

function runRenderEvidence(args, frameCount, outputPrefix)

Execute render evidence.

ParameterTypeDefaultDescription
argsdynamic—Command-line arguments supplied by the host process.
frameCountdynamic—Number of entries or units to process.
outputPrefixdynamic—The output prefix input consumed by `runRenderEvidence`.

View source

runServerModeSoak

function runServerModeSoak(args, mode, target, frameCount)

Execute server mode soak.

ParameterTypeDefaultDescription
argsdynamic—Command-line arguments supplied by the host process.
modedynamic—The mode input consumed by `runServerModeSoak`.
targetdynamic—The target input consumed by `runServerModeSoak`.
frameCountdynamic—Number of entries or units to process.

View source

runSoak

function runSoak(args, frameCount)

Execute soak.

ParameterTypeDefaultDescription
argsdynamic—Command-line arguments supplied by the host process.
frameCountdynamic—Number of entries or units to process.

View source

runUiResolutionMatrix

function runUiResolutionMatrix(baseDirectory, gameDirectory, outputPrefix)

Execute ui resolution matrix.

ParameterTypeDefaultDescription
baseDirectorydynamic—Root directory containing the Quake installation.
gameDirectorydynamic—Selected Quake game-data directory.
outputPrefixdynamic—The output prefix input consumed by `runUiResolutionMatrix`.

View source

saveGame

function saveGame(session, requestedName)

Encode and write game.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `saveGame`.
requestedNamedynamic—Name that identifies the requested value or resource.

View source

sendClientIntentions

function sendClientIntentions(session)

Send client intentions through the active connection.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `sendClientIntentions`.

View source

setConsoleActive

function setConsoleActive(session, active)

Update module state for console active.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `setConsoleActive`.
activedynamic—The active input consumed by `setConsoleActive`.

View source

setMenuActive

function setMenuActive(session, active)

Update module state for menu active.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `setMenuActive`.
activedynamic—The active input consumed by `setMenuActive`.

View source

setPlayerFlag

function setPlayerFlag(session, flag, enabled)

Update module state for player flag.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `setPlayerFlag`.
flagdynamic—The flag input consumed by `setPlayerFlag`.
enableddynamic—Whether the optional behavior is enabled.

View source

shouldPollLiveButtonBindings

inline function shouldPollLiveButtonBindings(headless, destinationIsGame, consoleActive, menuActive)

Live Win32 button polling is a convenience layer for the interactive port. It must never participate in a headless/deterministic run: unlike original WinQuake's window-message input, GetAsyncKeyState-style polling can observe keys pressed in another application and make two identical traces diverge.

ParameterTypeDefaultDescription
headlessdynamic—The headless input consumed by `shouldPollLiveButtonBindings`.
destinationIsGamedynamic—The destination is game input consumed by `shouldPollLiveButtonBindings`.
consoleActivedynamic—The console active input consumed by `shouldPollLiveButtonBindings`.
menuActivedynamic—The menu active input consumed by `shouldPollLiveButtonBindings`.

View source

shouldRenderWindowFrame

inline function shouldRenderWindowFrame(windowCreated, minimized, width, height)

Report whether the current Win32 client area can accept a complete render frame. Minimizing a window makes GetClientRect transiently return 0x0; the original WinQuake loop skips that frame instead of feeding invalid dimensions into the screen and status-bar layout code.

ParameterTypeDefaultDescription
windowCreateddynamic—The window created input consumed by `shouldRenderWindowFrame`.
minimizeddynamic—The minimized input consumed by `shouldRenderWindowFrame`.
widthdynamic—Requested width in pixels or data units.
heightdynamic—Requested height in pixels or data units.

View source

shutdown

function shutdown(session)

Implements the `shutdown` operation for `miniquake.host` (shutdown).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `shutdown`.

View source

soak

function soak(session, frameCount, frameTime)

Implements the `soak` operation for `miniquake.host` (soak).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `soak`.
frameCountdynamic—Number of entries or units to process.
frameTimedynamic—Time value used by the operation.

View source

soakFrameError

function soakFrameError(session, phase, frameIndex, frameError)

Implements the `soakFrameError` operation for `miniquake.host` (soak frame error).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `soakFrameError`.
phasedynamic—The phase input consumed by `soakFrameError`.
frameIndexdynamic—Zero-based index of the requested entry.
frameErrordynamic—The frame error input consumed by `soakFrameError`.

View source

startMap

function startMap(session, mapName)

Initialize state for start map.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `startMap`.
mapNamedynamic—Name of the map to load or inspect.

View source

stepDemoPlayback

function stepDemoPlayback(session)

Advance demo playback by one processing step.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `stepDemoPlayback`.

View source

stopAttractMode

function stopAttractMode(session)

Stop attract playback before a user-selected game action. This also removes a next-demo command queued at the end of the preceding host frame.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `stopAttractMode`.

View source

stopDemoRecording

function stopDemoRecording(session)

Finalize state for stop demo recording.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `stopDemoRecording`.

View source

SV_BroadcastPrintf

function SV_BroadcastPrintf(session, text)

Apply the Quake-compatible sv broadcast printf behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `SV_BroadcastPrintf`.
textdynamic—Text to parse or process.

View source

SV_ClientPrintf

function SV_ClientPrintf(clientValue, text)

Apply the Quake-compatible sv client printf behavior.

ParameterTypeDefaultDescription
clientValuedynamic—The client value input consumed by `SV_ClientPrintf`.
textdynamic—Text to parse or process.

View source

SV_DropClient

function SV_DropClient(session, clientValue, crash)

Apply the Quake-compatible sv drop client behavior.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `SV_DropClient`.
clientValuedynamic—The client value input consumed by `SV_DropClient`.
crashdynamic—The crash input consumed by `SV_DropClient`.

View source

synchronizeClientRelinkModels

function synchronizeClientRelinkModels(session)

Update module state for client relink models.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `synchronizeClientRelinkModels`.

View source

titleFpsInitialized

titleFpsInitialized

Tracks the module-level title fps initialized state owned by `miniquake.host`.

View source

titleFpsLastFrame

titleFpsLastFrame

Tracks the module-level title fps last frame state owned by `miniquake.host`.

View source

titleFpsLastRealtime

titleFpsLastRealtime

Tracks the module-level title fps last realtime state owned by `miniquake.host`.

View source

titleFpsLastValue

titleFpsLastValue

Tracks the module-level title fps last value state owned by `miniquake.host`.

View source

toggleMenu

function toggleMenu(session)

menu.c::M_ToggleMenu_f returns from a submenu to the main menu before it closes the menu. Keep this distinct from explicit action-driven closes.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `toggleMenu`.

View source

transitionMap

function transitionMap(session, mapName, preserveClients, saveChangeParms, deferLocalConnection)

Implements the `transitionMap` operation for `miniquake.host` (transition map).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `transitionMap`.
mapNamedynamic—Name of the map to load or inspect.
preserveClientsdynamic—The preserve clients input consumed by `transitionMap`.
saveChangeParmsdynamic—The save change parms input consumed by `transitionMap`.
deferLocalConnectiondynamic—The defer local connection input consumed by `transitionMap`.

View source

udpEndpointCount

function udpEndpointCount(session)

Return udp endpoint count derived from the active module state.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `udpEndpointCount`.

View source

updateMouseCapture

function updateMouseCapture(session)

Update module state for mouse capture.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `updateMouseCapture`.

View source

updateTitle

function updateTitle(session)

Update module state for title.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `updateTitle`.

View source

viewthingModel

function viewthingModel(session, item)

Implements the `viewthingModel` operation for `miniquake.host` (viewthing model).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `viewthingModel`.
itemdynamic—The item input consumed by `viewthingModel`.

View source

warmUiResolutionScene

function warmUiResolutionScene(session)

Implements the `warmUiResolutionScene` operation for `miniquake.host` (warm ui resolution scene).

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `warmUiResolutionScene`.

View source

writeConfiguration

function writeConfiguration(session)

Encode and write configuration.

ParameterTypeDefaultDescription
sessiondynamic—The session input consumed by `writeConfiguration`.

View source