[Request] Increase number of zeds at any given moment past 32

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

marviraptor

FNG / Fresh Meat
Apr 16, 2015
66
6
0
The mutators that had this ability is now outdated, and there seems to be no way of increasing the maximum number of concurrent zed at the moment. Would any kind modder be willing create a mutator that would do just this?

edit: Working version, thanks to our wonderful Zane

Code:
function InitMutator(string Options, out string ErrorMessage)
{
    local KFAISpawnManager SpawnManager;
    local KFGameInfo MyKFGI;

    MyKFGI = KFGameInfo( WorldInfo.Game );
    super.InitMutator( Options, ErrorMessage );

    SpawnManager = MyKFGI.SpawnManager;

    if(SpawnManager != none)
    {
        SpawnManager.MaxMonsters = 110;
    }
}
 
Last edited:

[TW] Zane

FNG / Fresh Meat
Apr 23, 2015
14
0
0
You are going to want to change the value "MaxMonsters" in KFAISpawnManager via a mutator I believe. This is a server only function.

In KFMutator_MyMutator.uc

Code:
function InitMutator(string Options, out string ErrorMessage)
{
    local KFAISpawnManager SpawnManager;
    MyKFGI = KFGameInfo( WorldInfo.Game );
    super.InitMutator( Options, ErrorMessage );

    SpawnManager = KFAISpawnManager(MyKFGI.SpawnManager);

    if(SpawnManager != none)
    {
        SpawnManager.MaxMonsters = 64;
    }

}
 

[SM]TOPSGT

FNG / Fresh Meat
Jul 12, 2011
376
5
0
Colorado
slsnipers.enjin.com
Zane is there anything to the other areas on the build the could be preventing this from working? Free the Zeds!!

WE have given it a shot and were unsuccessful in making this bit of code work. Zane please add more input about making this work.
 
Last edited: