This commit is contained in:
GenZmeY 2022-03-24 08:07:21 +03:00
parent 6af4c8d51f
commit f7c82ffd48
2 changed files with 19 additions and 3 deletions

View File

@ -58,11 +58,11 @@ public static function UpdateGameSettings(KFGameInfo_Survival KFGI, bool bUsesSt
} }
else if (Mut.MskGsMemberList.Length > 10) else if (Mut.MskGsMemberList.Length > 10)
{ {
KFGameSettings.OwningPlayerName = class'GameReplicationInfo'.default.ServerName @ "(+50% XP)"; KFGameSettings.OwningPlayerName = class'GameReplicationInfo'.default.ServerName @ "| +50% XP";
} }
else else
{ {
KFGameSettings.OwningPlayerName = class'GameReplicationInfo'.default.ServerName @ "(+" $ Mut.MskGsMemberList.Length * 5 $ "% XP)"; KFGameSettings.OwningPlayerName = class'GameReplicationInfo'.default.ServerName @ "| +" $ Mut.MskGsMemberList.Length * 5 $ "% XP";
} }
KFGameSettings.NumPublicConnections = KFGI.MaxPlayersAllowed; KFGameSettings.NumPublicConnections = KFGI.MaxPlayersAllowed;

View File

@ -18,7 +18,23 @@ var array<MskGsRepInfo> RepClients;
var array<Controller> MskGsMemberList; var array<Controller> MskGsMemberList;
var array<UniqueNetId> AdminUIDList; var array<UniqueNetId> AdminUIDList;
function InitMutator(string Options, out string ErrorMessage) { local int MaxPlayers, MaxPlayersAllowed; super.InitMutator(Options, ErrorMessage); if (MyKFGI == none) { `log("[MskGsMut] Error: can't init, MyKFGI is none"); return; } MaxPlayers = Clamp(MyKFGI.GetIntOption(Options, "MaxPlayers", MaxPlayers), 6, 128); MaxPlayersAllowed = MaxPlayers; MyKFGI.MaxPlayers = MaxPlayers; MyKFGI.MaxPlayersAllowed = MaxPlayersAllowed; } function InitMutator(string Options, out string ErrorMessage)
{
local int MaxPlayers, MaxPlayersAllowed;
super.InitMutator(Options, ErrorMessage);
if (MyKFGI == none)
{
`log("[MskGsMut] Error: can't init, MyKFGI is none");
return;
}
MaxPlayers = Clamp(MyKFGI.GetIntOption(Options, "MaxPlayers", MaxPlayers), 6, 128);
MaxPlayersAllowed = MaxPlayers;
MyKFGI.MaxPlayers = MaxPlayers;
MyKFGI.MaxPlayersAllowed = MaxPlayersAllowed;
}
function InitConfig() function InitConfig()
{ {