2Benjamin,
Более легкое решение моей проблемы решил величиной вероятности:
_ex_mapvote.gsc
Код:
for(j = 0; j < gt_array.size; j++)
{
gt_allowed = [[level.ex_drm]]("ex_endgame_vote_allow_" + gt_array[j], 100, 0, 100, "int"); //LAPD
if(gt_allowed) gt_allowed = randomInt(100)+1 <= gt_allowed; //LAPD
if(gt_allowed)
{
level.mv_items[gt_index]["map"] = map;
level.mv_items[gt_index]["mapname"] = mapname;
level.mv_items[gt_index]["gametype"] = gt_array[j];
level.mv_items[gt_index]["gametypename"] = extreme\_ex_maps::getgtstring(gt_array[j]);
level.mv_items[gt_index]["votes"] = 0;
gt_index++;
}
//else logprint("MAPVOTE: Ignoring game type " + gt_array[j] + ". Disabled in mapcontrol.cfg (see ex_endgame_vote_allow_" + gt_array[j] + ").\n");
}
в cfg к примеру вот так:
ex_endgame_vote_allow_hq 50%
ex_endgame_vote_allow_dm 70%
ex_endgame_vote_allow_tdm 80%