Files
src/miniquake/temp_entities.ml
- Package
miniquake.temp_entities- Reachable
- Yes
Imports
Declarations
# allocateTempDlight
function allocateTempDlight(state, currentTime)
Allocate and initialize temp dlight.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `allocateTempDlight`. |
currentTime | dynamic | — | Time value used by the operation. |
View source
# appendExplosionLight
function appendExplosionLight(state, origin, currentTime)
Add state for append explosion light.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `appendExplosionLight`. |
origin | dynamic | — | World-space origin of the operation. |
currentTime | dynamic | — | Time value used by the operation. |
View source
# appendParticleEvent
function appendParticleEvent(state, name, origin, color, count, extra)
Add state for append particle event.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `appendParticleEvent`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
origin | dynamic | — | World-space origin of the operation. |
color | dynamic | — | Color value used by the operation. |
count | dynamic | — | Number of entries or units to process. |
extra | dynamic | — | The extra input consumed by `appendParticleEvent`. |
View source
# appendSoundEvent
function appendSoundEvent(state, name, origin)
Add state for append sound event.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `appendSoundEvent`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
origin | dynamic | — | World-space origin of the operation. |
View source
# appendSpikeSound
function appendSpikeSound(state, origin)
Add state for append spike sound.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `appendSpikeSound`. |
origin | dynamic | — | World-space origin of the operation. |
View source
# appendUnique
function appendUnique(values, value)
Add state for append unique.
| Parameter | Type | Default | Description |
|---|
values | dynamic | — | The values input consumed by `appendUnique`. |
value | dynamic | — | Value consumed by `appendUnique`. |
View source
# beamModelForType
function beamModelForType(type)
Return beam model for type derived from the active module state.
| Parameter | Type | Default | Description |
|---|
type | dynamic | — | The type input consumed by `beamModelForType`. |
View source
# beamTypeForModel
function beamTypeForModel(model)
Implements the `beamTypeForModel` operation for `miniquake.temp_entities` (beam type for model).
| Parameter | Type | Default | Description |
|---|
model | dynamic | — | Model resource processed by the operation. |
View source
# CL_InitTEnts
function CL_InitTEnts(mixer)
Apply the Quake-compatible cl init tents behavior.
| Parameter | Type | Default | Description |
|---|
mixer | dynamic | — | The mixer input consumed by `CL_InitTEnts`. |
View source
# CL_NewTempEntity
function CL_NewTempEntity(state)
Apply the Quake-compatible cl new temp entity behavior.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `CL_NewTempEntity`. |
View source
# CL_ParseBeam
function CL_ParseBeam(state, reader, model, currentTime)
Apply the Quake-compatible cl parse beam behavior.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `CL_ParseBeam`. |
reader | dynamic | — | The reader input consumed by `CL_ParseBeam`. |
model | dynamic | — | Model resource processed by the operation. |
currentTime | dynamic | — | Time value used by the operation. |
View source
# CL_ParseTEnt
function CL_ParseTEnt(state, reader, currentTime)
Apply the Quake-compatible cl parse tent behavior.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `CL_ParseTEnt`. |
reader | dynamic | — | The reader input consumed by `CL_ParseTEnt`. |
currentTime | dynamic | — | Time value used by the operation. |
View source
# CL_Rand
function CL_Rand(state)
Apply the Quake-compatible cl rand behavior.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `CL_Rand`. |
View source
# CL_SetRandomSeed
function CL_SetRandomSeed(state, seed)
Apply the Quake-compatible cl set random seed behavior.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `CL_SetRandomSeed`. |
seed | dynamic | — | The seed input consumed by `CL_SetRandomSeed`. |
View source
# CL_UpdateTEnts
function CL_UpdateTEnts(state, currentTime, viewEntity, viewOrigin)
Apply the Quake-compatible cl update tents behavior.
| Parameter | Type | Default | Description |
|---|
state | dynamic | — | Mutable `miniquake.temp_entities` state used by `CL_UpdateTEnts`. |
currentTime | dynamic | — | Time value used by the operation. |
viewEntity | dynamic | — | The view entity input consumed by `CL_UpdateTEnts`. |
viewOrigin | dynamic | — | The view origin input consumed by `CL_UpdateTEnts`. |
View source
# emptyBeam
function emptyBeam()
Implements the `emptyBeam` operation for `miniquake.temp_entities` (empty beam).
View source
# emptyDynamicLight
function emptyDynamicLight()
Implements the `emptyDynamicLight` operation for `miniquake.temp_entities` (empty dynamic light).
View source
# MAX_BEAMS
const MAX_BEAMS = 24
Defines the max beams value used by `miniquake.temp_entities`.
View source
# parse
function parse(reader)
Implements the `parse` operation for `miniquake.temp_entities` (parse).
| Parameter | Type | Default | Description |
|---|
reader | dynamic | — | The reader input consumed by `parse`. |
View source
# parseType
function parseType(reader, type)
Mirrors CL_ParseTEnt's wire consumption. Keeping this in the protocol layer is important: treating svc_temp_entity as a one-byte payload desynchronizes every command that follows it in the same server message.
| Parameter | Type | Default | Description |
|---|
reader | dynamic | — | The reader input consumed by `parseType`. |
type | dynamic | — | The type input consumed by `parseType`. |
View source
# readPosition
function readPosition(reader)
Read and validate position.
| Parameter | Type | Default | Description |
|---|
reader | dynamic | — | The reader input consumed by `readPosition`. |
View source
# setBeam
function setBeam(beam, entity, model, start, finish, currentTime)
Update module state for beam.
| Parameter | Type | Default | Description |
|---|
beam | dynamic | — | The beam input consumed by `setBeam`. |
entity | dynamic | — | Entity affected by the operation. |
model | dynamic | — | Model resource processed by the operation. |
start | dynamic | — | The start input consumed by `setBeam`. |
finish | dynamic | — | The finish input consumed by `setBeam`. |
currentTime | dynamic | — | Time value used by the operation. |
View source
miniquake.temp_entities.TempBeam struct
miniquake.temp_entities.TempEntityState struct
miniquake.temp_entities.TempRenderEntity struct