fix players count if there are spectators
This commit is contained in:
parent
f9c11dc3b4
commit
dd5201ea2b
@ -82,7 +82,7 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -81,11 +81,12 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
|
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
|
||||||
//`REMOVEMESOON_ServerTakeoverLog("KFGameInfo_Survival.UpdateGameSettings 4 - PlayfabInter: "$PlayfabInter);
|
//`REMOVEMESOON_ServerTakeoverLog("KFGameInfo_Survival.UpdateGameSettings 4 - PlayfabInter: "$PlayfabInter);
|
||||||
if (PlayfabInter != none)
|
if (PlayfabInter != none)
|
||||||
{
|
{
|
||||||
|
@ -81,7 +81,7 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ function UpdateGameSettings()
|
|||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer
|
if (PC.bIsPlayer
|
||||||
&& PC.PlayerReplicationInfo != none
|
&& PC.PlayerReplicationInfo != none
|
||||||
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
&& !PC.PlayerReplicationInfo.bBot)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user