TPG.Voting.RockTheVote(ply)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Register ply's RTV vote and start the map vote once enough players agree. Any connected player counts toward both the numerator and totalPlayers, spectators included -- there is no team check here, unlike most other TPG systems. The threshold is max(ceil(totalPlayers * TPG.Config.rtvPercentRequired), TPG.Config.rtvMinPlayers), recomputed from scratch on every vote. Voting again after already voting is harmless (it just re-sets the same flag to true); there is no way to un-vote.
Parameters
| Name | Type | Description |
|---|---|---|
ply | Player | The voter. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.