Files
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.
| Parameter | Type | Default | Description |
|---|
diagnostics | dynamic | — | diagnostics value consumed by this operation. |
message | dynamic | — | Human-readable message associated with the operation. |
View source
# incrementSkipped
function incrementSkipped(skippedClasses, className)
Return the increment skipped value.
| Parameter | Type | Default | Description |
|---|
skippedClasses | dynamic | — | skippedClasses value consumed by this operation. |
className | dynamic | — | 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.
| Parameter | Type | Default | Description |
|---|
component | dynamic | — | component value consumed by this operation. |
mapName | dynamic | — | mapName value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
deathmatch | dynamic | — | deathmatch value consumed by this operation. |
View source
# SpawnEntities
function SpawnEntities(mapName, entityString, spawnPoint)
Spawn entities.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
entityString | dynamic | — | entityString value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
View source
# SpawnEntitiesForMode
function SpawnEntitiesForMode(mapName, entityString, spawnPoint, skill, deathmatch)
Spawn entities for mode.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
entityString | dynamic | — | entityString value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
deathmatch | dynamic | — | deathmatch value consumed by this operation. |
View source
# spawnEntitiesLogged
function spawnEntitiesLogged(mapName, entityString, spawnPoint, logger)
Spawn entities logged.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
entityString | dynamic | — | entityString value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
logger | dynamic | — | logger value consumed by this operation. |
View source
# SpawnEntitiesWithRegistry
function SpawnEntitiesWithRegistry(mapName, entityString, spawnPoint, registry)
Spawn entities with registry.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
entityString | dynamic | — | entityString value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
View source
# SpawnEntitiesWithRegistryMode
function SpawnEntitiesWithRegistryMode(mapName, entityString, spawnPoint, registry, skill, deathmatch, applyModeFilter)
Spawn entities with registry mode.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
entityString | dynamic | — | entityString value consumed by this operation. |
spawnPoint | dynamic | — | spawnPoint value consumed by this operation. |
registry | dynamic | — | registry value consumed by this operation. |
skill | dynamic | — | skill value consumed by this operation. |
deathmatch | dynamic | — | deathmatch value consumed by this operation. |
applyModeFilter | dynamic | — | 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