KF Max Players. Mutator maximum players

KF Max Players. Mutator maximum players

  • Topic closed
  • You cannot reply to this topic

KF Max Players. Mutator maximum players KF Max Players. Mutator maximum players KFMaxPlayers.uc 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:

Geekrainian #1

    • Group: Admin
    • Posts: 800

    Posted:

    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
    Back