.
This commit is contained in:
parent
6af4c8d51f
commit
f7c82ffd48
@ -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;
|
||||
|
@ -18,7 +18,23 @@ var array<MskGsRepInfo> RepClients;
|
||||
var array<Controller> MskGsMemberList;
|
||||
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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user