MiniQuake2

src/miniquake2/game/player/spawn.ml

Provides miniquake2 game player spawn facilities for this project.

Package
miniquake2.game.player.spawn
Reachable
Yes

Imports

Declarations

ApplyStockCoopSpawnFixups

function ApplyStockCoopSpawnFixups(mapName, spots)

Stock p_client.c applies these corrections one frame after entity spawn. The managed layer extracts immutable spawn records before clients begin, so applying the same map-specific data correction here is equivalent and keeps the live BaseEdict graph untouched.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.
spotsdynamic—spots value consumed by this operation.

View source

deathmatchSpots

function deathmatchSpots(context)

Return the deathmatch spots value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.

View source

deterministicIndex

function deterministicIndex(context, count)

Return the deterministic index.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
countdynamic—Number of items or units to process.

View source

distance

function distance(first, second)

Return the distance value.

ParameterTypeDefaultDescription
firstdynamic—first value consumed by this operation.
seconddynamic—second value consumed by this operation.

View source

nearestPlayerDistance

function nearestPlayerDistance(context, spot, spawningPlayer)

Return the nearest player distance value.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
spotdynamic—spot value consumed by this operation.
spawningPlayerdynamic—spawningPlayer value consumed by this operation.

View source

SelectCoopSpawnPoint

function SelectCoopSpawnPoint(context, player)

Select coop spawn point.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

SelectDeathmatchSpawnPoint

function SelectDeathmatchSpawnPoint(context, player)

Select deathmatch spawn point.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

SelectFarthestDeathmatchSpawnPoint

function SelectFarthestDeathmatchSpawnPoint(context, player)

Select farthest deathmatch spawn point.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

SelectIntermissionPoint

function SelectIntermissionPoint(context)

Select intermission point.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.

View source

SelectRandomDeathmatchSpawnPoint

function SelectRandomDeathmatchSpawnPoint(context, player)

Select random deathmatch spawn point.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

SelectSinglePlayerSpawnPoint

function SelectSinglePlayerSpawnPoint(context)

Select single player spawn point.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.

View source

SelectSpawnPoint

function SelectSpawnPoint(context, player)

Select spawn point.

ParameterTypeDefaultDescription
contextdynamic—Context that carries state for the operation.
playerdynamic—player value consumed by this operation.

View source

spotsFromBaseEdicts

function spotsFromBaseEdicts(baseEdicts)

Return the spots from base edicts.

ParameterTypeDefaultDescription
baseEdictsdynamic—baseEdicts value consumed by this operation.

View source

stockCoopFixMap

function stockCoopFixMap(mapName)

Map stock coop fix.

ParameterTypeDefaultDescription
mapNamedynamic—mapName value consumed by this operation.

View source