Quote:
Originally Posted by ZeroOne
Thanks for the suggestion. It is frustrating though... a lot of these plugins seem overly complicated to just have the map keep cycling with an empty server.
It really just seems like something that should be default functionality of the game itself, considering, the default method is to have a player wait twice when joining an empty server... seeing "server is changing map" after already waiting to join, and THEN not ending up on the map the saw in the server browser.
|
Maybe, but Valve doesn't have it auto-change maps when the server's empty. Hell, Valve's implementation doesn't even consider a server empty if any bots (including SourceTV or replay) are present (you'll see round start events running on the first map after server startup when replay exists, for instance).
Here's a quick script that runs the randommap command if the last non-bot player disconnects. I don't know what games support randommap, I just know that TF2 does and I suspect it's part of the OrangeBox engine.
Edit:
Forgot to mention, randommap selects a random map from mapcycle.txt. If your server uses some other file to store its map rotation (such as when using UMC), then this won't do what you want.