Back to TPG

TPG.Economy.Reward

S🏷️ Economy

Part of TPG namespace

TPG.Economy.Reward(ply, amount, _reason)
View on GitHub|gamemode/systems/sv_economy.lua:226-231
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Pay a player income, scaled by the comeback/underdog multiplier. No-op unless ECON.Active, so callers do not need to guard every reward site themselves -- this is what makes it safe for e.g. TPG.CTF.OnCapture to always call it regardless of which mode the round is in.

Parameters

NameTypeDescription
plyPlayer
amountnumberBase amount before the comeback multiplier.
_reason?stringUnused; accepted for call-site symmetry with `ECON.Charge`.

Returns

No return values documented.

Examples

No examples available.

Used In

No usages found in the codebase.