Summary
Hooks
Called after Catwork has loaded the map entities; spawns the saved emplacement guns.
LoadEmplacementGuns()server
Spawns the emplacement guns saved for the current map, each on a new frozen barricade.
PostSaveData()server
Called after data is saved; saves the emplacement guns.
SaveEmplacementGuns()server
Saves the position and angles of every
cw_emplacementgun on the map to the schema data.Hooks
PLUGIN:ClockworkInitPostEntity()
server gamemodes/cwhl2rp/plugins/emplacementgun/plugin/sv_hooks.lua:7Implements hook ClockworkInitPostEntity
Called after Catwork has loaded the map entities; spawns the saved emplacement guns.
Spawns the emplacement guns saved for the current map, each on a new frozen barricade.
Implements hook PostSaveData
Called after data is saved; saves the emplacement guns.
PLUGIN:SaveEmplacementGuns()
server gamemodes/cwhl2rp/plugins/emplacementgun/plugin/sv_plugin.lua:29Saves the position and angles of every cw_emplacementgun on the map to the schema data.
Writes plugins/emplacementGuns/<map>.