Quote:
Originally Posted by daveyboye
Alright Steel, just writing up a draft. For my scenario in hl2dm (where I just want to split maps up by the amount of people on the server + be able to use some same maps in multiple groups), would this be the route I would go? Also, is there anything I else I need to add? What plugins should I use. I want it to act similar to mani admin plugin (finally got rid of it) only with the addtiion to have more control over what maps get played. I need a Map Vote to show up with 5 minutes remaining in the map. I need there to be a runoff if players don't choose a majority. I need there to be a rock the vote. Those are the only things I need. Any help is greatly appreciated.
Code:
"umc_mapcycle"
{
"Small Maps"
{
"maps_invote" "12" //Set this to whatever
//Any other group options go here
"small_map1"
{
"min_players" "0"
"max_players" "4"
}
"small_map2"
{
"min_players" "0"
"max_players" "4"
}
"small_map3"
"min_players" "0"
"max_players" "4"
}
"small_map4"
"min_players" "0"
"max_players" "4"
}
"small_map5"
"min_players" "0"
"max_players" "4"
}
"small_map6"
"min_players" "0"
"max_players" "4"
}
"small_map7"
"min_players" "0"
"max_players" "4"
}
"small_map8"
"min_players" "0"
"max_players" "4"
}
"small_map9"
"min_players" "0"
"max_players" "4"
}
"small_map10"
"min_players" "0"
"max_players" "4"
}
"small_map11"
"min_players" "0"
"max_players" "4"
}
"small_map12"
"min_players" "0"
"max_players" "4"
}
}
"Medium Maps"
{
"maps_invote" "12" //Set this to whatever
//Any other group options go here
"medium_map1"
{
"min_players" "5"
"max_players" "10"
}
"medium_map2"
{
"min_players" "5"
"max_players" "10"
}
"medium_map3"
"min_players" "5"
"max_players" "10"
}
"medium_map4"
"min_players" "5"
"max_players" "10"
}
"medium_map5"
"min_players" "5"
"max_players" "10"
}
"medium_map6"
"min_players" "5"
"max_players" "10"
}
"medium_map7"
"min_players" "5"
"max_players" "10"
}
"medium_map8"
"min_players" "5"
"max_players" "10"
}
"medium_map9"
"min_players" "5"
"max_players" "10"
}
"medium_map10"
"min_players" "5"
"max_players" "10"
}
"medium_map11"
"min_players" "5"
"max_players" "10"
}
"medium_map12"
"min_players" "5"
"max_players" "10"
}
}
"Large Maps"
{
"maps_invote" "12" //Set this to whatever
//Any other group options go here
"large_map1"
{
"min_players" "11"
"max_players" "16"
}
"large_map2"
{
"min_players" "11"
"max_players" "16"
}
"large_map3"
"min_players" "11"
"max_players" "16"
}
"large_map4"
"min_players" "11"
"max_players" "16"
}
"large_map5"
"min_players" "11"
"max_players" "16"
}
"large_map6"
"min_players" "11"
"max_players" "16"
}
"large_map7"
"min_players" "11"
"max_players" "16"
}
"large_map8"
"min_players" "11"
"max_players" "16"
}
"large_map9"
"min_players" "11"
"max_players" "16"
}
"large_map10"
"min_players" "11"
"max_players" "16"
}
"large_map11"
"min_players" "11"
"max_players" "16"
}
"large_map12"
"min_players" "11"
"max_players" "16"
}
}
}
|
You have a fairly complicated setup.
First of all, if you're going to have those distinct map groups, and if all of your maps are going to have the same "min_players" and "max_players" setting, it would be easier to use the "default_min_players" and "default_max_players" options set for each group.
Second of all, the way you have this defined makes it so maps form different groups will never appear in the same vote. There is no easy way around this at the moment; for what you want, the only options is to have one extra group corresponding with each of your map sizes that will contain all of your other maps.
Finally, if all you need is the end of map vote and rock the vote, based off of the mapcycle the only modules you need enabled are
umc-core.smx (required),
umc-endvote.smx (end of map vote),
umc-rockthevote.smx (rtv), and
umc-playerlimits.smx (allows for usage of "min_players" and "max_players" in your mapcycle). For runoff votes, you will want to look in your
umc-endvote.cfg and
umc-rockthevote.cfg files for cvars which set a vote threshold, and set a failure action in the event a vote completes and the winner doesn't reach the set threshold. For example, these are the two cvars in
umc-endvote.cfg:
Code:
// Specifies what action to take if the vote doesn't reach the set theshold.
// 0 - Do Nothing,
// 1 - Perform Runoff Vote
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_umc_endvote_failaction "0"
// If a winning vote has less than this percentage of total votes, a runoff vote will be held.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_umc_endvote_threshold "0"
Based on everything above, this is what I recommend as your mapcycle template:
Code:
"umc_mapcycle"
{
"Small Maps"
{
"maps_invote" "12" //Set this to whatever
//Any other group options go here
"default_min_players" "0"
"default_max_players" "4"
"small_map1" {}
"small_map2" {}
"small_map3" {}
"small_map4" {}
"small_map5" {}
"small_map6" {}
"small_map7" {}
"small_map8" {}
"small_map9" {}
"small_map10" {}
"small_map11" {}
"small_map12" {}
}
"Small Maps Extras"
{
"maps_invote" "4" //Set this to how many non-small maps you want to appear in a small maps vote.
"default_min_players" "0"
"default_max_players" "4"
"medium_map1" {}
"medium_map2" {}
//...
"medium_map12" {}
"large_map1" {}
"large_map2" {}
//...
"large_map12" {}
}
//Follow that same pattern for medium and large maps.
}
__________________