Mining
Mining plugin - client.
Owns the short-lived clientside props the mining effects throw around: rubble that falls and
fades, and ore that flies from a deposit to the player who mined it. Both are capped, always
removed within a few seconds, and switched off together by cityrp_mining_props.
- EFFECT:Init(data)Source ☍
-
Bursts the rubble, raises the dust, plays the break and flies the final payout.
Parameters
- dataCEffectDataData built by
PLUGIN:BreakEffectData.
- dataCEffectDataData built by
- EFFECT:Render()Source ☍
-
Nothing to draw beyond the props and particles.
- EFFECT:Think() → booleanSource ☍
-
Everything is handed to props, particles and sounds in
Init, so the effect ends at once.Returns
- booleanAlways false.
- ClientMiningTemporaryProp.colourSource ☍
-
Draw colour, whose alpha is rewritten as the prop fades.
- ClientMiningTemporaryProp.departsSource ☍
-
CurTime a flying prop set off.
- ClientMiningTemporaryProp.entitySource ☍
-
The clientside prop or model.
- ClientMiningTemporaryProp.expiresSource ☍
-
CurTime the prop is removed.
- ClientMiningTemporaryProp.fadeStartSource ☍
-
CurTime the fade begins.
- ClientMiningTemporaryProp.fromSource ☍
-
Where a flying prop set off from.
- ClientMiningTemporaryProp.targetSource ☍
-
The player a flying prop is heading for.