MantisBT - Zandronum
View Issue Details
0001710Zandronum[All Projects] Suggestionpublic2014-02-19 15:522014-11-19 14:57
Cutman 
 
normalfeatureN/A
acknowledgedopen 
MicrosoftWindowsXP/Vista/7
1.2 
 
0001710: Minimum/maximum players for MAPINFO
Hi. Something that comes up a lot in MM8BDM (I know, I know, stay with me guys) is that the sizes of the +50 maps in the mod are inconsistent. It becomes an issue when there's 32+ players and the smaller duel sized maps get put into play due to the default map rotation etc. Since it's impossible to keep track of how many people are playing a server and constantly adjust the map rotation manually, I was thinking of a way to handle this automatically.

So here's my suggestion. Two new parameters for MAPINFO's map definitions. MaxPlayers and MinPlayers (probably could use better names). Before the map changes, Zandronum would check these values to see if the current number of players is acceptable for the next map in rotation. If not, it is skipped to the next map in rotation until it finds a suitable map. Here's some examples.

// This is a very small cramped map suitable for duels and low amounts of players. Any more than 4 is too much so skip it.
map MM2FLA "FLASH MAN"
{
   levelnum = 14
   next = "MM2QUI"
   sky1 = "BLACK", 0
   cluster = 1
   music = "FLAMUS"
   aircontrol = 0.5
   par = 2
   maxplayers = 4
}

// Quite possibly the biggest map in the game, therefore too little players makes for a very boring drawn out battle that can take too long.
map MM5DAR "DARK MAN CASTLE"
{
   levelnum = 46
   next = "MM6TOM"
   sky1 = "BLACK", 0
   cluster = 1
   music = "DARMUS"
   aircontrol = 0.5
   forcenoskystretch
   clipmidtextures
   par = 5
   minplayers = 6
}

Obviously this could benefit other map collections in various mods and not just limited to MM8BDM, which is why I think it's a cool idea to implement it (and not use horrible ACS hacks to achieve this).
Certain things need to be considered when implementing this.

* A server flag sv_allowmapinfominmaxplayers (I am bad at naming things) will probably be desired if server admins don't care for this functionality.
* Voting for a map should ignore the min/max players arguments if voting is enabled.
* What happens if it can't find a map in the rotation with a suitable amount of players? (i.e there are 4 players in the server and every map requires at least 8)
No tags attached.
related to 0002002resolved Kaminsky Allow map rotation to have associated player counts to select when choosing. 
Issue History
2014-02-19 15:52CutmanNew Issue
2014-06-15 15:25WatermelonStatusnew => acknowledged
2014-07-12 09:46Torr SamahoProduct Version2.0-beta => 1.2
2014-11-19 14:57DuskRelationship addedrelated to 0002002

There are no notes attached to this issue.