Summary

Hooks

Called after Catwork has loaded the map entities; restores the saved union lights.
Spawns the union lights saved for the current map.
Called after data is saved; saves the union lights.
Saves every cw_unionlight on the map to the schema data.

Hooks

PLUGIN:ClockworkInitPostEntity()

server gamemodes/cwhl2rp/plugins/unionlight/plugin/sv_hooks.lua:7

Implements hook ClockworkInitPostEntity

Called after Catwork has loaded the map entities; restores the saved union lights.

Spawns the union lights saved for the current map.

Restores each light's owner, position and angles, and freezes the ones that were frozen when saved. Entries without a position or angles are skipped.

Implements hook PostSaveData

Called after data is saved; saves the union lights.

Saves every cw_unionlight on the map to the schema data.

Writes plugins/unionlights/<map> with each light's owner, position, angles and whether it can move.

Defined in