Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
determine whether there are human players

#1
I'm trying to minimize the log file size (and possibly server load) by doing the following:

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?
Reply

#2
There is currently no function to not change maps while empty. It would be a nice feature, but I think it would have to be done right (i.e. not an infinite timer, but rather ending the match & staying on the map vote until someone joins).
[Image: 230.png]
Reply

#3
@Mario, are there hooks for a human player connecting and disconnecting?
Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Some players have black textures ted 6 752 05-28-2020, 03:48 AM
Last Post: ted
  how to have blue team only with bots and red team 1 human player and 2 bots billyjoe 6 3,297 04-14-2017, 09:22 AM
Last Post: billyjoe
  Reasonable # of players per server end user 2 3,053 08-06-2013, 12:30 PM
Last Post: end user
  Good EU based dc for NA players end user 0 1,688 05-04-2013, 05:26 PM
Last Post: end user
  Private Players Configuration checholin87 2 2,183 05-12-2012, 01:26 AM
Last Post: Mr. Bougo

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-