Files
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.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
spots | dynamic | — | spots value consumed by this operation. |
View source
# deathmatchSpots
function deathmatchSpots(context)
Return the deathmatch spots value.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
View source
# deterministicIndex
function deterministicIndex(context, count)
Return the deterministic index.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
count | dynamic | — | Number of items or units to process. |
View source
# distance
function distance(first, second)
Return the distance value.
| Parameter | Type | Default | Description |
|---|
first | dynamic | — | first value consumed by this operation. |
second | dynamic | — | second value consumed by this operation. |
View source
# nearestPlayerDistance
function nearestPlayerDistance(context, spot, spawningPlayer)
Return the nearest player distance value.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
spot | dynamic | — | spot value consumed by this operation. |
spawningPlayer | dynamic | — | spawningPlayer value consumed by this operation. |
View source
# SelectCoopSpawnPoint
function SelectCoopSpawnPoint(context, player)
Select coop spawn point.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
player | dynamic | — | player value consumed by this operation. |
View source
# SelectDeathmatchSpawnPoint
function SelectDeathmatchSpawnPoint(context, player)
Select deathmatch spawn point.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
player | dynamic | — | player value consumed by this operation. |
View source
# SelectFarthestDeathmatchSpawnPoint
function SelectFarthestDeathmatchSpawnPoint(context, player)
Select farthest deathmatch spawn point.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
player | dynamic | — | player value consumed by this operation. |
View source
# SelectIntermissionPoint
function SelectIntermissionPoint(context)
Select intermission point.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
View source
# SelectRandomDeathmatchSpawnPoint
function SelectRandomDeathmatchSpawnPoint(context, player)
Select random deathmatch spawn point.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
player | dynamic | — | player value consumed by this operation. |
View source
# SelectSinglePlayerSpawnPoint
function SelectSinglePlayerSpawnPoint(context)
Select single player spawn point.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
View source
# SelectSpawnPoint
function SelectSpawnPoint(context, player)
Select spawn point.
| Parameter | Type | Default | Description |
|---|
context | dynamic | — | Context that carries state for the operation. |
player | dynamic | — | player value consumed by this operation. |
View source
# spotsFromBaseEdicts
function spotsFromBaseEdicts(baseEdicts)
Return the spots from base edicts.
| Parameter | Type | Default | Description |
|---|
baseEdicts | dynamic | — | baseEdicts value consumed by this operation. |
View source
# stockCoopFixMap
function stockCoopFixMap(mapName)
Map stock coop fix.
| Parameter | Type | Default | Description |
|---|
mapName | dynamic | — | mapName value consumed by this operation. |
View source