add maxplayers
This commit is contained in:
parent
9a0163491c
commit
5aaa3a9f0e
@ -6,6 +6,23 @@ var const int UniqueIDLen;
|
|||||||
|
|
||||||
var config array<string> ImportantPersonList;
|
var config array<string> ImportantPersonList;
|
||||||
|
|
||||||
|
function InitMutator(string Options, out string ErrorMessage)
|
||||||
|
{
|
||||||
|
local int MaxPlayers, MaxPlayersAllowed;
|
||||||
|
|
||||||
|
super.InitMutator(Options, ErrorMessage);
|
||||||
|
|
||||||
|
if (MyKFGI == none)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
MaxPlayers = Clamp(MyKFGI.GetIntOption(Options, "MaxPlayers", MaxPlayers), 1, 128);
|
||||||
|
MaxPlayersAllowed = MaxPlayers;
|
||||||
|
MyKFGI.MaxPlayers = MaxPlayers;
|
||||||
|
MyKFGI.MaxPlayersAllowed = MaxPlayersAllowed;
|
||||||
|
}
|
||||||
|
|
||||||
simulated event PostBeginPlay()
|
simulated event PostBeginPlay()
|
||||||
{
|
{
|
||||||
super.PostBeginPlay();
|
super.PostBeginPlay();
|
||||||
|
Loading…
Reference in New Issue
Block a user