From c2e7f942ad6b6de386aa0533f3071fc8f2bfcf27 Mon Sep 17 00:00:00 2001 From: Jbleezy Date: Wed, 31 May 2023 22:47:09 -0700 Subject: [PATCH] Encounter: fix team balancing during pregame not freezing controls --- scripts/zm/replaced/_zm.gsc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/zm/replaced/_zm.gsc b/scripts/zm/replaced/_zm.gsc index bebde49b..a6ae7ca6 100644 --- a/scripts/zm/replaced/_zm.gsc +++ b/scripts/zm/replaced/_zm.gsc @@ -673,7 +673,7 @@ wait_for_all_players_ready() { if (is_gametype_active("zgrief")) { - check_for_team_change(); + level thread check_for_team_change(); } players = get_players(); @@ -743,7 +743,7 @@ wait_for_all_players_ready() if (is_gametype_active("zgrief")) { - check_for_team_change(); + level thread check_for_team_change(); } foreach ( player in players ) @@ -774,7 +774,7 @@ wait_for_all_players_ready() if (is_gametype_active("zgrief")) { - check_for_team_change(); + level thread check_for_team_change(); } foreach ( player in players ) @@ -865,7 +865,13 @@ check_for_team_change() if (isDefined(team_change_player)) { + team_change_player endon("disconnect"); + team_change_player scripts\zm\replaced\_zm_gametype::do_team_change(); + + wait 0.05; + + team_change_player freezecontrols(1); } }