Files
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.
| Parameter | Type | Default | Description |
|---|
input | dynamic | — | input value consumed by this operation. |
View source
# cooperativePictureSuccessor
function cooperativePictureSuccessor(step, cooperative)
Preserve the original ZOID cooperative end-screen loop back to base1.
| Parameter | Type | Default | Description |
|---|
step | dynamic | — | step value consumed by this operation. |
cooperative | dynamic | — | cooperative value consumed by this operation. |
View source
# endsWithInsensitive
function endsWithInsensitive(value, suffix)
Return the ends with insensitive value.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
suffix | dynamic | — | suffix value consumed by this operation. |
View source
# gameButtonDown
function gameButtonDown(input)
Return the game button down value.
| Parameter | Type | Default | Description |
|---|
input | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
step | dynamic | — | step value consumed by this operation. |
singlePlayer | dynamic | — | singlePlayer value consumed by this operation. |
View source
miniquake2.runtime.media_sequence.GameMapPolicy struct
# kindName
function kindName(kind)
Return the kind name.
| Parameter | Type | Default | Description |
|---|
kind | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | Zero-based index of the affected item. |
View source
# parse
function parse(specification)
Parses parse for the miniquake2 runtime media sequence workflow.
| Parameter | Type | Default | Description |
|---|
specification | dynamic | — | specification value consumed by this operation. |
View source
# parseStep
function parseStep(component)
Parse step.
| Parameter | Type | Default | Description |
|---|
component | dynamic | — | component value consumed by this operation. |
View source
# safeName
function safeName(value, operation)
Return the safe name.
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed or transformed by the operation. |
operation | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
index | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
commandSystem | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
commandSystem | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
frames | dynamic | — | frames value consumed by this operation. |
elapsedMsec | dynamic | — | elapsedMsec value consumed by this operation. |
View source
miniquake2.runtime.media_sequence.TimedemoMetrics struct