mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-22 13:10:28 -05:00
Containment: don't move zones if only one zone
This commit is contained in:
@ -2547,16 +2547,20 @@ containment_think()
|
|||||||
|
|
||||||
flag_wait("initial_blackscreen_passed");
|
flag_wait("initial_blackscreen_passed");
|
||||||
|
|
||||||
|
ind = 0;
|
||||||
|
containment_zones = containment_get_zones();
|
||||||
|
|
||||||
level.containment_zone_hud.alpha = 1;
|
level.containment_zone_hud.alpha = 1;
|
||||||
level.containment_time_hud.alpha = 1;
|
|
||||||
|
if (containment_zones.size > 1)
|
||||||
|
{
|
||||||
|
level.containment_time_hud.alpha = 1;
|
||||||
|
}
|
||||||
|
|
||||||
level waittill("restart_round_start");
|
level waittill("restart_round_start");
|
||||||
|
|
||||||
wait 10;
|
wait 10;
|
||||||
|
|
||||||
containment_zones = containment_get_zones();
|
|
||||||
ind = 0;
|
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
zone_name = containment_zones[ind];
|
zone_name = containment_zones[ind];
|
||||||
@ -2587,7 +2591,7 @@ containment_think()
|
|||||||
held_time["allies"] = undefined;
|
held_time["allies"] = undefined;
|
||||||
held_prev = "none";
|
held_prev = "none";
|
||||||
start_time = getTime();
|
start_time = getTime();
|
||||||
while((getTime() - start_time) <= (60 * 1000))
|
while((getTime() - start_time) <= 60000 || containment_zones.size == 1)
|
||||||
{
|
{
|
||||||
players = get_players();
|
players = get_players();
|
||||||
in_containment_zone = [];
|
in_containment_zone = [];
|
||||||
|
Reference in New Issue
Block a user