CityRP Documentation Repository

cityrp_smeltery

Smeltery entity - client.

Functions

ClientENT:AnimateLid()Source ☍

Swings the lid shut while the smeltery burns and open otherwise, a step each frame. A smeltery first drawn mid-burn starts with its lid already shut.

ClientENT:EmitFire()Source ☍

Adds one burst of flame and smoke at the vent, and keeps it lit, when the viewer is in range.

ServerENT:StartTouch(ent)Source ☍

Loads one coal or metal ore from a dropped item that lands on the smeltery.

Parameters

  • entEntityThe entity that touched the smeltery.
ClientENT:StopFire()Source ☍

Frees the emitter. Particles already out finish their own short lives.

ClientENT:SyncPiece(piece, shown)Source ☍

Creates or removes the clientside model for one of PIECES to match whether it is shown.

Parameters

  • piecetableAn entry of PIECES.
  • shownbooleanWhether its network var is true.
ServerENT:TakeOne(ent)Source ☍

Takes one ore from a dropped item: a stack loses one and stays on the ground, a single ore is removed.

Parameters

  • entEntityThe dropped cityrp_item.

Tables

ServerENT.lastUsePressesSource ☍

Fields

ClientENT.emitterSource ☍
ClientENT.lidOpenSource ☍
ClientENT.piecesSource ☍
ClientENT.pieceTintsSource ☍
SharedENT.PostEntityPasteSource ☍
SharedENT.SmeltTimeSource ☍