MiniQuake

src/miniquake/client_effects.ml

Package
miniquake.client_effects
Reachable
Yes

Imports

Declarations

appendParticles

function appendParticles(current, spawned)

Add state for append particles.

ParameterTypeDefaultDescription
currentdynamic—The current input consumed by `appendParticles`.
spawneddynamic—The spawned input consumed by `appendParticles`.

View source

precacheTemporarySounds

function precacheTemporarySounds(mixer)

Load the client-owned temporary-entity sounds that are not necessarily named by a mod's QuakeC sound precache list.

ParameterTypeDefaultDescription
mixerdynamic—The mixer input consumed by `precacheTemporarySounds`.

View source

process

function process(events, client, player, mixer, viewState, consoleState, commandSystem, currentParticles, currentTemporary, currentTime, registry)

Execute the requested value.

ParameterTypeDefaultDescription
eventsdynamic—The events input consumed by `process`.
clientdynamic—Client state participating in the operation.
playerdynamic—The player input consumed by `process`.
mixerdynamic—The mixer input consumed by `process`.
viewStatedynamic—Mutable state used by `process`.
consoleStatedynamic—Mutable state used by `process`.
commandSystemdynamic—The command system input consumed by `process`.
currentParticlesdynamic—The current particles input consumed by `process`.
currentTemporarydynamic—The current temporary input consumed by `process`.
currentTimedynamic—Time value used by the operation.
registrydynamic—The registry input consumed by `process`.

View source

processTemporary

function processTemporary(value, mixer, currentParticles, currentTemporary, currentTime)

Execute temporary.

ParameterTypeDefaultDescription
valuedynamic—Value consumed by `processTemporary`.
mixerdynamic—The mixer input consumed by `processTemporary`.
currentParticlesdynamic—The current particles input consumed by `processTemporary`.
currentTemporarydynamic—The current temporary input consumed by `processTemporary`.
currentTimedynamic—Time value used by the operation.

View source

pruneTemporary

function pruneTemporary(currentTemporary, currentTime)

Active view mirrors CL_UpdateTEnts: an expired beam is not rendered or exposed to callers, while the retained state above still remembers its slot.

ParameterTypeDefaultDescription
currentTemporarydynamic—The current temporary input consumed by `pruneTemporary`.
currentTimedynamic—Time value used by the operation.

View source

retainTemporarySlots

function retainTemporarySlots(currentTemporary)

Retained state mirrors the original fixed cl_beams[MAX_BEAMS] array. Expired entries are kept because CL_ParseBeam first searches by entity before it searches for a free or expired slot.

ParameterTypeDefaultDescription
currentTemporarydynamic—The current temporary input consumed by `retainTemporarySlots`.

View source

safeSound

function safeSound(mixer, entityNumber, channelNumber, name, origin, volume, attenuation)

Return a validated safe sound value.

ParameterTypeDefaultDescription
mixerdynamic—The mixer input consumed by `safeSound`.
entityNumberdynamic—The entity number input consumed by `safeSound`.
channelNumberdynamic—The channel number input consumed by `safeSound`.
namedynamic—Stable name that identifies the requested object or option.
origindynamic—World-space origin of the operation.
volumedynamic—The volume input consumed by `safeSound`.
attenuationdynamic—The attenuation input consumed by `safeSound`.

View source

serverInfoLevelText

function serverInfoLevelText(levelName)

Implements the `serverInfoLevelText` operation for `miniquake.client_effects` (server info level text).

ParameterTypeDefaultDescription
levelNamedynamic—Name that identifies the requested value or resource.

View source

serverInfoRuleText

function serverInfoRuleText()

Implements the `serverInfoRuleText` operation for `miniquake.client_effects` (server info rule text).

View source

spikeImpactSound

function spikeImpactSound()

TE_SPIKE and TE_SUPERSPIKE share the engine-wide C rand() stream with the particle and entity-effect code. Four out of five impacts use tink1; the fifth consumes a second random value to select one of the three ricochets (with the original 0/3 fall-through both selecting ric3).

View source