KF Max Players. Mutator maximum players
KFMaxPlayers.uc
Class KFMaxPlayers extends Info
Config(KFMaxPlayers);
var() globalconfig int ForcedMaxPlayers;
function Tick( float Delta )
{
Log("Forcing server max players from"@Level.Game.MaxPlayers@"to"@ForcedMaxPlayers,Class.Outer.Name);
Level.Game.MaxPlayers = ForcedMaxPlayers;
Destroy();
}
defaultproperties
{
ForcedMaxPlayers=16
}
Since this is not exactly a mutator but an actor, it must be activated by adding the following line to the [Engine.GameEngine] section of the server config:
ServerActors=KFMaxPlayers.KFMaxPlayers