Back to TPG

TPG.SelectRandomGameType

S🏷️ Gametypes

Part of TPG namespace

TPG.SelectRandomGameType()
View on GitHub|gamemode/config/sh_gametypes.lua:172-183
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Pick the game type for the next round. Called from TPG.Rounds.Setup. Includes a single anti-repeat reroll when the same mode comes up twice running, which halves the odds of a back-to-back repeat without ever forbidding one.

Parameters

No parameters.

Returns

TypeDescription
numberA `GAMEMODE_*` constant.

Examples

No examples available.

Used In

No usages found in the codebase.