Back to TPG

TPG.Objectives.ProcessScoring

S🏷️ Objectives

Part of TPG namespace

TPG.Objectives.ProcessScoring()
View on GitHub|gamemode/objectives/sv_objectives.lua:182-253
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Advance scoring by one step: drain the losing side, and handle overtime. Sums every live point's CapOwnership, picks the cap multiplier (map config first, then the game type's default, with KOTH forced to TPG.Config.kothCapMul so one knob tunes every KOTH map), scales it by overtime if that has opened, and drains the team that is behind. A total of zero -- an even split, or a mode with no points -- drains nobody. Deathmatch is handled separately at the end: deaths are its only drain, so a passive round never ended. Past dmOvertimeStart both teams bleed at a rate that steps up over time, and whoever still holds more tickets when one side hits zero takes the round. Called once per fixed score step from the Think in tpg.rounds, so the drain rate does not depend on tickrate. Both overtime announcements are latched to the round start time, so they fire once per round.

Parameters

No parameters.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.