fix(s1: GSC): make SP work with the new client update
All checks were successful
lint / Lint GSC files (push) Successful in 9s

This commit is contained in:
2024-09-17 19:54:04 +02:00
parent 99162fe513
commit 769a580b70
4 changed files with 45 additions and 2 deletions

View File

@ -0,0 +1,23 @@
init()
{
// define onteamselection callback function used in balanceteams()
level.onteamselection = ::set_team;
}
set_team(team)
{
if (team != self.pers["team"])
{
self.switching_teams = true;
self.joining_team = team;
self.leaving_team = self.pers["team"];
}
if (self.sessionstate == "playing")
{
self suicide();
}
maps\mp\gametypes\_menus::addtoteam(team);
maps\mp\gametypes\_menus::endrespawnnotify();
}