Skip to content

Add optional circular Tank assignment to prevent back-to-back Tanks - #1004

Open
altair-sossai wants to merge 1 commit into
SirPlease:masterfrom
altair-sossai:circular-tank-assignment
Open

Add optional circular Tank assignment to prevent back-to-back Tanks#1004
altair-sossai wants to merge 1 commit into
SirPlease:masterfrom
altair-sossai:circular-tank-assignment

Conversation

@altair-sossai

Copy link
Copy Markdown
Contributor

When every infected player has already been Tank, the pool resets by clearing the history and re-shuffling, without excluding the most recent Tank. As a result the same player can be picked again right away, becoming Tank twice in a row.

Related issue: #851

Adds the ConVar tankcontrol_circular_tank_assignment (default 0). When enabled, players who already had Tank are re-queued in their original chronological order instead of being re-shuffled, turning selection into a circular rotation where the most-recent Tank always goes last, so no one is Tank twice in a row.

Default is 0, so existing behavior is unchanged unless explicitly enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant