MiniQuake2

src/miniquake2/game/base/spawn.ml

Provides miniquake2 game base spawn facilities for this project.

Package
miniquake2.game.base.spawn
Reachable
Yes

Imports

Declarations

appendDiagnostic

function appendDiagnostic(diagnostics, message)

Append diagnostic.

ParameterTypeDefaultDescription
diagnosticsdynamic—diagnostics value consumed by this operation.
messagedynamic—Human-readable message associated with the operation.

View source

incrementSkipped

function incrementSkipped(skippedClasses, className)

Return the increment skipped value.

ParameterTypeDefaultDescription
skippedClassesdynamic—skippedClasses value consumed by this operation.
classNamedynamic—className value consumed by this operation.

View source

shouldInhibit

function shouldInhibit(component, mapName, skill, deathmatch)

g_spawn.c ED_LoadFromFile applies this after parsing and before ED_CallSpawn. The command/*27 correction is an original retail-map compatibility hack.

ParameterTypeDefaultDescription
componentdynamic—component value consumed by this operation.
mapNamedynamic—mapName value consumed by this operation.
skilldynamic—skill value consumed by this operation.
deathmatchdynamic—deathmatch value consumed by this operation.

View source

SpawnEntities

function SpawnEntities(mapName, entityString, spawnPoint)

Spawn entities.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.
entityStringdynamic—entityString value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.

View source

SpawnEntitiesForMode

function SpawnEntitiesForMode(mapName, entityString, spawnPoint, skill, deathmatch)

Spawn entities for mode.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.
entityStringdynamic—entityString value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
skilldynamic—skill value consumed by this operation.
deathmatchdynamic—deathmatch value consumed by this operation.

View source

spawnEntitiesLogged

function spawnEntitiesLogged(mapName, entityString, spawnPoint, logger)

Spawn entities logged.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.
entityStringdynamic—entityString value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
loggerdynamic—logger value consumed by this operation.

View source

SpawnEntitiesWithRegistry

function SpawnEntitiesWithRegistry(mapName, entityString, spawnPoint, registry)

Spawn entities with registry.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.
entityStringdynamic—entityString value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
registrydynamic—registry value consumed by this operation.

View source

SpawnEntitiesWithRegistryMode

function SpawnEntitiesWithRegistryMode(mapName, entityString, spawnPoint, registry, skill, deathmatch, applyModeFilter)

Spawn entities with registry mode.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.
entityStringdynamic—entityString value consumed by this operation.
spawnPointdynamic—spawnPoint value consumed by this operation.
registrydynamic—registry value consumed by this operation.
skilldynamic—skill value consumed by this operation.
deathmatchdynamic—deathmatch value consumed by this operation.
applyModeFilterdynamic—applyModeFilter value consumed by this operation.

View source

SPAWNFLAG_MODE_MASK

const SPAWNFLAG_MODE_MASK = 7936

Defines the spawnflag mode mask constant used by the miniquake2 game base spawn module.

View source

SPAWNFLAG_NOT_COOP

const SPAWNFLAG_NOT_COOP = 4096

Defines the spawnflag not coop constant used by the miniquake2 game base spawn module.

View source

SPAWNFLAG_NOT_DEATHMATCH

const SPAWNFLAG_NOT_DEATHMATCH = 2048

Defines the spawnflag not deathmatch constant used by the miniquake2 game base spawn module.

View source

SPAWNFLAG_NOT_EASY

const SPAWNFLAG_NOT_EASY = 256

Defines the spawnflag not easy constant used by the miniquake2 game base spawn module.

View source

SPAWNFLAG_NOT_HARD

const SPAWNFLAG_NOT_HARD = 1024

Defines the spawnflag not hard constant used by the miniquake2 game base spawn module.

View source

SPAWNFLAG_NOT_MEDIUM

const SPAWNFLAG_NOT_MEDIUM = 512

Defines the spawnflag not medium constant used by the miniquake2 game base spawn module.

View source