Summary
Hooks
cw_bigfactorydispenser entities saved for the current map.cw_factorydispenser entities saved for the current map.cw_factoryrationdispenser entities saved for the current map.cw_bigfactorydispenser on the map.cw_factorydispenser on the map.cw_factoryrationdispenser.Hooks
PLUGIN:ClockworkInitPostEntity()
server gamemodes/cwhl2rp/plugins/rationfactory/plugin/sv_hooks.lua:9Implements hook ClockworkInitPostEntity
Called after all map entities have been initialized; spawns the saved factory dispensers.
PLUGIN:LoadBigFactoryDispensers()
server gamemodes/cwhl2rp/plugins/rationfactory/plugin/sv_plugin.lua:105Spawns the cw_bigfactorydispenser entities saved for the current map.
PLUGIN:LoadFactoryDispensers()
server gamemodes/cwhl2rp/plugins/rationfactory/plugin/sv_plugin.lua:28Spawns the cw_factorydispenser entities saved for the current map.
PLUGIN:LoadFactoryRationDispensers()
server gamemodes/cwhl2rp/plugins/rationfactory/plugin/sv_plugin.lua:65Spawns the cw_factoryrationdispenser entities saved for the current map.
Each one gets back its saved ration count and lock state.
Implements hook PostSaveData
Called after Catwork saves its data; saves the factory dispensers.
PLUGIN:SaveBigFactoryDispensers()
server gamemodes/cwhl2rp/plugins/rationfactory/plugin/sv_plugin.lua:90Saves the position, angles and spawn type of every cw_bigfactorydispenser on the map.
The data goes to plugins/bigfactorydispensers/<map>.
PLUGIN:SaveFactoryDispensers()
server gamemodes/cwhl2rp/plugins/rationfactory/plugin/sv_plugin.lua:13Saves the position, angles and spawn type of every cw_factorydispenser on the map.
The data goes to plugins/factorydispensers/<map>.
PLUGIN:SaveFactoryRationDispensers()
server gamemodes/cwhl2rp/plugins/rationfactory/plugin/sv_plugin.lua:47Saves the position, angles, ration count and lock state of every cw_factoryrationdispenser.
The data goes to plugins/factoryrationdispensers/<map>.