From d2d939ca70d921d8706e91389609657488971d47 Mon Sep 17 00:00:00 2001 From: INeedBots Date: Mon, 28 Sep 2020 23:06:56 -0600 Subject: [PATCH] Use callbacks for internal change team --- userraw/maps/mp/bots/_bot.gsc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/userraw/maps/mp/bots/_bot.gsc b/userraw/maps/mp/bots/_bot.gsc index f46f13a..dc63bb8 100644 --- a/userraw/maps/mp/bots/_bot.gsc +++ b/userraw/maps/mp/bots/_bot.gsc @@ -577,7 +577,12 @@ teamBots() if(player.pers["team"] == toTeam) continue; - player notify("menuresponse", game["menu_team"], toTeam); + if (toTeam == "allies") + self thread [[level.allies]](); + else if (toTeam == "axis") + self thread [[level.axis]](); + else + self thread [[level.spectator]](); break; } } @@ -600,7 +605,7 @@ teamBots() { if(axis > teamAmount) { - player notify("menuresponse", game["menu_team"], "allies"); + self thread [[level.allies]](); break; } } @@ -608,12 +613,12 @@ teamBots() { if(axis < teamAmount) { - player notify("menuresponse", game["menu_team"], "axis"); + self thread [[level.axis]](); break; } else if(player.pers["team"] != "allies") { - player notify("menuresponse", game["menu_team"], "allies"); + self thread [[level.allies]](); break; } }