fix playercount and endless suicide bug
This commit is contained in:
parent
6cbeec5690
commit
9bfce509a5
@ -1,5 +1,14 @@
|
|||||||
class MskGs_Endless extends KFGameInfo_Endless;
|
class MskGs_Endless extends KFGameInfo_Endless;
|
||||||
|
|
||||||
|
function WaveEnded(EWaveEndCondition WinCondition)
|
||||||
|
{
|
||||||
|
// fix bugs after tripware
|
||||||
|
if(!bWaveStarted && !MyKFGRI.bTraderIsOpen)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Super.WaveEnded(WinCondition);
|
||||||
|
}
|
||||||
|
|
||||||
function UpdateGameSettings()
|
function UpdateGameSettings()
|
||||||
{
|
{
|
||||||
local name SessionName;
|
local name SessionName;
|
||||||
@ -74,7 +83,9 @@ function UpdateGameSettings()
|
|||||||
{
|
{
|
||||||
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer)
|
if (PC.bIsPlayer
|
||||||
|
&& PC.PlayerReplicationInfo != none
|
||||||
|
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,9 @@ function UpdateGameSettings()
|
|||||||
{
|
{
|
||||||
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer)
|
if (PC.bIsPlayer
|
||||||
|
&& PC.PlayerReplicationInfo != none
|
||||||
|
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,9 @@ function UpdateGameSettings()
|
|||||||
{
|
{
|
||||||
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer)
|
if (PC.bIsPlayer
|
||||||
|
&& PC.PlayerReplicationInfo != none
|
||||||
|
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,9 @@ function UpdateGameSettings()
|
|||||||
{
|
{
|
||||||
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer)
|
if (PC.bIsPlayer
|
||||||
|
&& PC.PlayerReplicationInfo != none
|
||||||
|
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,9 @@ function UpdateGameSettings()
|
|||||||
{
|
{
|
||||||
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
KFGameSettings.MapName = WorldInfo.GetMapName(true);
|
||||||
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
foreach WorldInfo.AllControllers(class'PlayerController', PC)
|
||||||
if (PC.bIsPlayer)
|
if (PC.bIsPlayer
|
||||||
|
&& PC.PlayerReplicationInfo != none
|
||||||
|
&& !PC.PlayerReplicationInfo.bOnlySpectator)
|
||||||
NumHumanPlayers++;
|
NumHumanPlayers++;
|
||||||
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
KFGameSettings.NumOpenPublicConnections = KFGameSettings.NumPublicConnections - NumHumanPlayers;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user