Back to TPG

tpg.init:Initialize

S🏷️ Init

Part of TPG namespace

GM:Initialize()
View on GitHub|gamemode/init.lua:133-156
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Gamemode boot. The real work is deferred 3 seconds behind a timer.Simple, deliberately: ACE and E2SF Sandbox are separate addons that finish loading after the gamemode does, so validating them (or reading anything they define) at Initialize time reports them missing on a server where they are installed and fine. After the delay this validates the addon dependencies, loads the per-map config (TPG.Maps.Load), and starts the first round through the wait-for-players window rather than immediately, so fast loaders can't build for 30 seconds before slow loaders arrive. The console commands set here are engine sandbox settings, not TPG config. sbox_maxprops is set high on purpose: TPG governs builds with its own per-team prop/weight/point limits (TPG.State.maxLimits), and the engine's per-player cap should never be the thing that stops a spawn.

Parameters

No parameters.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.