cityrp_smeltery
Smeltery entity - client.
- 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
PIECESto match whether it is shown.Parameters
- piecetableAn entry of
PIECES. - shownbooleanWhether its network var is true.
- piecetableAn entry of
- 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.
- entEntityThe dropped
- ServerENT.lastUsePressesSource ☍