08-10-2015, 10:21 PM
(This post was last modified: 08-10-2015, 10:29 PM by BuddyFriendGuy.)
I'm trying to minimize the log file size (and possibly server load) by doing the following:
so when there are no human players, bots will quit, too, and thus logs don't grow. Then when somebody does come to the server, there will be one bot to play against.
This works.
However, the server still keeps rotating maps, creating meaningless logs, so I do the following:
so there will be unlimit warmup time. If there are no human players to end the warmup, the map won't rotate.
This works for pickup servers, in which most players are experienced. However, for a regular server, many beginners don't know about ALL READY, so they are stuck in warmup, which timer goes up instead of counting down, and the game never ends.
Is there a way to determine whether there are any human players on a server? Perhaps some hooks for me to adjust g_timelimit or g_warmup, or to call a vote, etc.? Or if there's a variable to get the number of human players, then I can write an ongoing timer to periodically check that variable.
Or are there other ways to remind players that they are in the warm up mode and they need to press F4 to start the real game?
Code:
minplayers 2
so when there are no human players, bots will quit, too, and thus logs don't grow. Then when somebody does come to the server, there will be one bot to play against.
This works.
However, the server still keeps rotating maps, creating meaningless logs, so I do the following:
Code:
g_warmup 1
g_warmup_limit -1
so there will be unlimit warmup time. If there are no human players to end the warmup, the map won't rotate.
This works for pickup servers, in which most players are experienced. However, for a regular server, many beginners don't know about ALL READY, so they are stuck in warmup, which timer goes up instead of counting down, and the game never ends.
Is there a way to determine whether there are any human players on a server? Perhaps some hooks for me to adjust g_timelimit or g_warmup, or to call a vote, etc.? Or if there's a variable to get the number of human players, then I can write an ongoing timer to periodically check that variable.
Or are there other ways to remind players that they are in the warm up mode and they need to press F4 to start the real game?