# BEAM_STEP
const BEAM_STEP = 30.Defines the beam step value used by `miniquake.client_render_handoff`.
src/miniquake/client_render_handoff.mlminiquake/array_util.ml as arrays → src/miniquake/array_util.mlminiquake/client.ml as clientRuntime → src/miniquake/client.mlminiquake/constants.ml as c → src/miniquake/constants.mlminiquake/mathlib.ml as math → src/miniquake/mathlib.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/particles.ml as particles → src/miniquake/particles.mlminiquake/protocol_transients.ml as transients → src/miniquake/protocol_transients.mlminiquake/types.ml as t → src/miniquake/types.mlconst BEAM_STEP = 30.Defines the beam step value used by `miniquake.client_render_handoff`.
function beamAngles(startPosition, endPosition)Return beam angles derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
startPosition | dynamic | — | The start position input consumed by `beamAngles`. |
endPosition | dynamic | — | The end position input consumed by `beamAngles`. |
function beamModelName(type)Return beam model name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
type | dynamic | — | The type input consumed by `beamModelName`. |
function beamSegmentOrigins(startPosition, endPosition, limit)Return beam segment origins derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
startPosition | dynamic | — | The start position input consumed by `beamSegmentOrigins`. |
endPosition | dynamic | — | The end position input consumed by `beamSegmentOrigins`. |
limit | dynamic | — | The limit input consumed by `beamSegmentOrigins`. |
function buildTemporaryEntities(compactBeams, client, currentTime, visibleCount)Mirrors CL_UpdateTEnts: reset per-frame temp storage, update player-owned beam starts, append 30-unit model segments, and stop at either shared cap.
| Parameter | Type | Default | Description |
|---|---|---|---|
compactBeams | dynamic | — | The compact beams input consumed by `buildTemporaryEntities`. |
client | dynamic | — | Client state participating in the operation. |
currentTime | dynamic | — | Time value used by the operation. |
visibleCount | dynamic | — | Number of entries or units to process. |
function clearTemporaryEntities()Update module state for temporary entities.
function compactBeamStart(value, viewEntity, viewOrigin)Implements the `compactBeamStart` operation for `miniquake.client_render_handoff` (compact beam start).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `compactBeamStart`. |
viewEntity | dynamic | — | The view entity input consumed by `compactBeamStart`. |
viewOrigin | dynamic | — | The view origin input consumed by `compactBeamStart`. |
currentTemporaryTracks the module-level current temporary state owned by `miniquake.client_render_handoff`.
function currentTemporaryEntities()Return temporary entities.
emptyTemporaryTracks the module-level empty temporary state owned by `miniquake.client_render_handoff`.
function makeBeamEntity(number, modelIndex, origin, angles, currentTime)Create and initialize beam entity.
| Parameter | Type | Default | Description |
|---|---|---|---|
number | dynamic | — | The number input consumed by `makeBeamEntity`. |
modelIndex | dynamic | — | Zero-based index of the requested entry. |
origin | dynamic | — | World-space origin of the operation. |
angles | dynamic | — | Orientation angles used by the operation. |
currentTime | dynamic | — | Time value used by the operation. |
const MAX_BEAMS = 24Defines the max beams value used by `miniquake.client_render_handoff`.
const MAX_TEMP_ENTITIES = 64Defines the max temp entities value used by `miniquake.client_render_handoff`.
function modelIndexForName(client, name)Return model index for name derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | Client state participating in the operation. |
name | dynamic | — | Stable name that identifies the requested object or option. |
function precacheBeamModels(client)CL_InitTEnts owns the lightning models rather than receiving them in the server model list. Register them during signon so the first beam does not parse and upload a model while gameplay is already visible.
| Parameter | Type | Default | Description |
|---|---|---|---|
client | dynamic | — | Client state participating in the operation. |
function renderFloat(value)Render float.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `renderFloat`. |
function submitEntities(visibleEntities, temporaryEntities)Submit state for submit entities.
| Parameter | Type | Default | Description |
|---|---|---|---|
visibleEntities | dynamic | — | The visible entities input consumed by `submitEntities`. |
temporaryEntities | dynamic | — | The temporary entities input consumed by `submitEntities`. |
function submitMirrorEntities(visibleEntities, temporaryEntities, viewEntity)Submit state for submit mirror entities.
| Parameter | Type | Default | Description |
|---|---|---|---|
visibleEntities | dynamic | — | The visible entities input consumed by `submitMirrorEntities`. |
temporaryEntities | dynamic | — | The temporary entities input consumed by `submitMirrorEntities`. |
viewEntity | dynamic | — | The view entity input consumed by `submitMirrorEntities`. |