Part of TPG namespace
TPG.Economy.Reward(ply, amount, _reason)📋 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
| Name | Type | Description |
|---|---|---|
ply | Player | |
amount | number | Base amount before the comeback multiplier. |
_reason? | string | Unused; 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.