-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Add cvar for maximum amount of team changes
The amount of team changes for a player are remembered and checked against the cvar: * Player team change count > maximum: - client command 'jointeam' blocked entirely * Player team change count < maximum: - increment player team change count - respawn after respawn delay - allow client command 'jointeam' Player team change counts are cleared each new round or map change. This commit also fixes the issue with not being able to join a team in the middle of a round. Note: The first time a player joins a team on the server is not remembered. Signed-off-by: BackRaw <[email protected]>
- Loading branch information
BackRaw
committed
Nov 21, 2017
1 parent
2f5b5c2
commit 74b9bf6
Showing
3 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters