feat: test CI
Some checks failed
ci / Deploy artifacts (push) Has been cancelled
ci / Lint GSC files (push) Has been cancelled

This commit is contained in:
2025-05-22 10:39:39 +02:00
parent 5562332e06
commit 79be77f4cb
30 changed files with 88 additions and 24 deletions

View File

@ -0,0 +1,33 @@
init()
{
if (maps\mp\_utility::is_aliens())
{
return;
}
if (isdefined(level.ishorde) && level.ishorde)
{
return;
}
// 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();
}