Summary

Hooks

Called after all map entities have been initialized; spawns the saved factory dispensers.
Spawns the cw_bigfactorydispenser entities saved for the current map.
Spawns the cw_factorydispenser entities saved for the current map.
Spawns the cw_factoryrationdispenser entities saved for the current map.
Called after Catwork saves its data; saves the factory dispensers.
Saves the position, angles and spawn type of every cw_bigfactorydispenser on the map.
Saves the position, angles and spawn type of every cw_factorydispenser on the map.
Saves the position, angles, ration count and lock state of every cw_factoryrationdispenser.

Hooks

PLUGIN:ClockworkInitPostEntity()

server gamemodes/cwhl2rp/plugins/rationfactory/plugin/sv_hooks.lua:9

Implements 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:105

Spawns the cw_bigfactorydispenser entities saved for the current map.

Spawns the cw_factorydispenser entities saved for the current map.

PLUGIN:LoadFactoryRationDispensers()

server gamemodes/cwhl2rp/plugins/rationfactory/plugin/sv_plugin.lua:65

Spawns 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:90

Saves the position, angles and spawn type of every cw_bigfactorydispenser on the map.

The data goes to plugins/bigfactorydispensers/<map>.

Saves 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:47

Saves the position, angles, ration count and lock state of every cw_factoryrationdispenser.

The data goes to plugins/factoryrationdispensers/<map>.

Defined in