MiniQuake2

src/miniquake2/runtime/media_sequence.ml

Provides miniquake2 runtime media sequence facilities for this project.

Package
miniquake2.runtime.media_sequence
Reachable
Yes

Imports

Declarations

attractInterrupted

function attractInterrupted(input)

keys.c maps any press during cl.attractloop to Escape. Grave/Escape may already have changed key_dest before this check, while ordinary buttons are represented by the held-key table.

ParameterTypeDefaultDescription
inputdynamic—input value consumed by this operation.

View source

cooperativePictureSuccessor

function cooperativePictureSuccessor(step, cooperative)

Preserve the original ZOID cooperative end-screen loop back to base1.

ParameterTypeDefaultDescription
stepdynamic—step value consumed by this operation.
cooperativedynamic—cooperative value consumed by this operation.

View source

endsWithInsensitive

function endsWithInsensitive(value, suffix)

Return the ends with insensitive value.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
suffixdynamic—suffix value consumed by this operation.

View source

gameButtonDown

function gameButtonDown(input)

Return the game button down value.

ParameterTypeDefaultDescription
inputdynamic—input value consumed by this operation.

View source

gameMapPolicy

function gameMapPolicy(step, singlePlayer)

Match SV_GameMap_f: archive the outgoing level inside a unit, wipe the current-unit archive at `*`, and autosave the successfully spawned successor.

ParameterTypeDefaultDescription
stepdynamic—step value consumed by this operation.
singlePlayerdynamic—singlePlayer value consumed by this operation.

View source

miniquake2.runtime.media_sequence.GameMapPolicy struct

kindName

function kindName(kind)

Return the kind name.

ParameterTypeDefaultDescription
kinddynamic—kind value consumed by this operation.

View source

MAX_MEDIA_STEPS

const MAX_MEDIA_STEPS = 16

Defines the max media steps constant used by the miniquake2 runtime media sequence module.

View source

MAX_MEDIA_TRANSITIONS

const MAX_MEDIA_TRANSITIONS = 64

Defines the max media transitions constant used by the miniquake2 runtime media sequence module.

View source

MEDIA_CIN

const MEDIA_CIN = 1

Defines the media cin constant used by the miniquake2 runtime media sequence module.

View source

MEDIA_DM2

const MEDIA_DM2 = 3

Defines the media dm2 constant used by the miniquake2 runtime media sequence module.

View source

MEDIA_MAP

const MEDIA_MAP = 0

Defines the media map constant used by the miniquake2 runtime media sequence module.

View source

MEDIA_PCX

const MEDIA_PCX = 2

Defines the media pcx constant used by the miniquake2 runtime media sequence module.

View source

miniquake2.runtime.media_sequence.MediaSequence struct

miniquake2.runtime.media_sequence.MediaStep struct

nextStockAttractIndex

function nextStockAttractIndex(index)

Return the next stock attract index.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.

View source

parse

function parse(specification)

Parses parse for the miniquake2 runtime media sequence workflow.

ParameterTypeDefaultDescription
specificationdynamic—specification value consumed by this operation.

View source

parseStep

function parseStep(component)

Parse step.

ParameterTypeDefaultDescription
componentdynamic—component value consumed by this operation.

View source

safeName

function safeName(value, operation)

Return the safe name.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
operationdynamic—operation value consumed by this operation.

View source

STOCK_ATTRACT_STEPS

const STOCK_ATTRACT_STEPS = 4

Defines the stock attract steps constant used by the miniquake2 runtime media sequence module.

View source

stockAttractStep

function stockAttractStep(index)

Stock Quake II 3.19 obtains these four entries from the d1..d4 aliases in baseq2/default.cfg. There is no demos.lst lookup in the original client.

ParameterTypeDefaultDescription
indexdynamic—Zero-based index of the affected item.

View source

stockNewGameSpecification

function stockNewGameSpecification()

The stock New Game alias is `map *ntro.cin+base1`. The leading star is legal for every SV_Map media kind and marks a new unit/save epoch before SV_Map strips it and classifies the .cin extension.

View source

takeQueuedGameMap

function takeQueuedGameMap(commandSystem)

The game module queues `gamemap "spec"` through AddCommandString after intermission exit. Validate the complete first command before removing it; unrelated server-console work remains untouched for its own policy layer.

ParameterTypeDefaultDescription
commandSystemdynamic—commandSystem value consumed by this operation.

View source

takeQueuedLoadMenu

function takeQueuedLoadMenu(commandSystem)

Single-player death uses the original game-DLL AddCommandString boundary to ask the client host for its load-game menu. Keep that request out of the UI module itself, validate it exactly, and preserve unrelated console commands.

ParameterTypeDefaultDescription
commandSystemdynamic—commandSystem value consumed by this operation.

View source

timedemoMetrics

function timedemoMetrics(frames, elapsedMsec)

Compute the same frames/time report exposed by Quake II's timedemo path.

ParameterTypeDefaultDescription
framesdynamic—frames value consumed by this operation.
elapsedMsecdynamic—elapsedMsec value consumed by this operation.

View source

miniquake2.runtime.media_sequence.TimedemoMetrics struct