Back to TPG

TPG.Maps.Load

S🏷️ Maps

Part of TPG namespace

TPG.Maps.Load(mapName)
View on GitHub|gamemode/maps/_loader.lua:1016-1047
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Load a map's config and make it current. Merges the map's entry over TPG.Maps.Default, applies the limit multipliers, and (on the server) overlays admin-placed custom points. A map with no entry gets the defaults, which are generic enough to be playable but are not tuned for it. Called from tpg.rounds.Setup each round, so editing a map config and restarting the round is enough to see the change.

Parameters

NameTypeDescription
mapName?stringDefaults to the running map.

Returns

TypeDescription
tableThe merged config, also stored as `TPG.Maps.Current`.

Examples

No examples available.

Used In

No usages found in the codebase.