diff --git a/MskGs/Classes/KFGameInfoHelper.uc b/MskGs/Classes/KFGameInfoHelper.uc index fa4324c..ec58528 100644 --- a/MskGs/Classes/KFGameInfoHelper.uc +++ b/MskGs/Classes/KFGameInfoHelper.uc @@ -58,11 +58,11 @@ public static function UpdateGameSettings(KFGameInfo_Survival KFGI, bool bUsesSt } else if (Mut.MskGsMemberList.Length > 10) { - KFGameSettings.OwningPlayerName = class'GameReplicationInfo'.default.ServerName @ "(+50% XP)"; + KFGameSettings.OwningPlayerName = class'GameReplicationInfo'.default.ServerName @ "| +50% XP"; } 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; diff --git a/MskGs/Classes/MskGsMut.uc b/MskGs/Classes/MskGsMut.uc index 7e98c5f..cfb1c43 100644 --- a/MskGs/Classes/MskGsMut.uc +++ b/MskGs/Classes/MskGsMut.uc @@ -18,7 +18,23 @@ var array RepClients; var array MskGsMemberList; var array 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() {