This commit is contained in:
GenZmeY 2022-03-29 21:23:13 +03:00
parent f00b92a300
commit 2fb3f2bad5
2 changed files with 32 additions and 21 deletions

View File

@ -74,9 +74,17 @@ public static function UpdateGameSettings(KFGameInfo_Survival KFGI, bool bUsesSt
if (KFGI.WorldInfo.IsConsoleDedicatedServer() || KFGI.WorldInfo.IsEOSDedicatedServer())
{
KFGameSettings.MapName = KFGI.WorldInfo.GetMapName(true);
// Old:
//foreach KFGI.WorldInfo.AllControllers(class'PlayerController', PC)
// if (PC.bIsPlayer
// && PC.PlayerReplicationInfo != none
// && !PC.PlayerReplicationInfo.bBot)
// NumHumanPlayers++;
foreach KFGI.WorldInfo.AllControllers(class'PlayerController', PC)
if (PC.bIsPlayer
&& PC.PlayerReplicationInfo != none
&& !PC.PlayerReplicationInfo.bOnlySpectator
&& !PC.PlayerReplicationInfo.bBot)
NumHumanPlayers++;

View File

@ -322,6 +322,8 @@ function NotifyLogout(Controller C)
VoteCollector = MskGsVoteCollector(MyKFGI.MyKFGRI.VoteCollector);
VoteCollector.NotifyLogout(C);
if (MskGsMemberList.Find(C) != INDEX_NONE)
{
MskGsMemberList.RemoveItem(C);
if (bXpNotifications)
{
@ -348,6 +350,7 @@ function NotifyLogout(Controller C)
}
}
MyKFGI.UpdateGameSettings();
}
for (i = RepClients.Length - 1; i >= 0; i--)
{