Summary
Hooks
Called after Catwork has loaded the map entities; restores the saved Combine locks.
LoadCombineLocks()server
Puts the Combine locks saved for the current map back on their doors.
PostSaveData()server
Called after data is saved; saves the Combine locks.
SaveCombineLocks()server
Saves every Combine lock on a door to the schema data.
Hooks
PLUGIN:ClockworkInitPostEntity()
server gamemodes/cwhl2rp/plugins/combinelocks/plugin/sv_hooks.lua:7Implements hook ClockworkInitPostEntity
Called after Catwork has loaded the map entities; restores the saved Combine locks.
Puts the Combine locks saved for the current map back on their doors.
Restores each lock's position, angles, access level, restricted ranks, colour and locked state, and gives the door back to its saved owner.
Implements hook PostSaveData
Called after data is saved; saves the Combine locks.
Saves every Combine lock on a door to the schema data.
Writes plugins/combinelocks/<map> with each lock's door, local position and angles,
locked state, access level, restricted ranks, colour and owner.