mapvote 2.1.0

Made it possible to have a default randomized map and mode from a user defined list when the human players count is between two values defined by the user

Added dvar mapvote_default_rotation_maps
Added dvar mapvote_default_rotation_modes (MP only)
Added dvar mapvote_default_rotation_min_players
Added dvar mapvote_default_rotation_max_players
This commit is contained in:
Resxt
2023-01-21 03:53:50 +01:00
parent f087a83c6b
commit 70b5caf159
7 changed files with 68 additions and 10 deletions

View File

@ -14,19 +14,19 @@ OnKillcamEnd()
{
if (isRoundBased() && !wasLastRound())
return false;
wait GetDvarInt("mapvote_display_wait_time");
[[level.mapvote_start_function]]();
[[level.mapvote_end_function]]();
wait GetDvarInt("mapvote_display_wait_time");
[[level.mapvote_rotate_function]]();
return false;
}
level waittill("final_killcam_done");
if (isRoundBased() && !wasLastRound())
return true;
wait GetDvarInt("mapvote_display_wait_time");
[[level.mapvote_start_function]]();
[[level.mapvote_end_function]]();
wait GetDvarInt("mapvote_display_wait_time");
[[level.mapvote_rotate_function]]();
return true;
}