Killing Floor 2

Killing Floor 2

29 ratings
Zed Spawner
   
Award
Favorite
Favorited
Unfavorite
Maps and Mods: Mutators
File Size
Posted
Updated
93.600 KB
22 May, 2022 @ 6:53am
8 Mar, 2024 @ 12:56pm
13 Change Notes ( view )

Subscribe to download
Zed Spawner

Description


📋 Description
Spawner for zeds.

This mutator uses the same method of spawning zeds by timer as in Custom Zed Spawn Mutator, but the implementation is completely new.

✨ Features
  • Spawn without increasing zed counter
  • Spawn depends on the number of players
  • Cyclic spawn (useful for endless mode)
  • Separate spawn for special waves and boss waves
  • Spawn after a certain percentage of killed zeds

❌ Whitelisted?
No. This mod is not whitelisted and will de-rank your server. Any XP earned will not be saved.

🎮 Usage (single player)
  1. Subscribe to this mutator.
  2. Create a file:
    C:\Users\<username>\Documents\My Games\KillingFloor2\KFGame\Config\KFZedSpawner.ini
    with content:
    [ZedSpawner.ZedSpawner] Version=0
  3. Launch KF2.
  4. Open console (~) and start any map with the mutator (this will generate the default KFZedSpawner.ini content):
    open KF-BioticsLab?Mutator=ZedSpawner.Mut
  5. Close the game and configure the mutator (see ⚙️ Setup (KFZedSpawner.ini) below).
  6. Launch KF2 again, open the console, and start the game:
    open KF-BioticsLab?Game=KFGameContent.KFGameInfo_Endless?Difficulty=3?GameLength=2?Mutator=ZedSpawner.Mut
    (replace the map and set/add parameters you need).

🖥️ Usage (server)
Note: If this is unclear, first read: Dedicated Server Guide (KF2 wiki)[wiki.killingfloor2.com]
  1. Open PCServer-KFEngine.ini / LinuxServer-KFEngine.ini.
  2. Find [IpDrv.TcpNetDriver] section and ensure line exists (add if missing):
    DownloadManagers=OnlineSubsystemSteamworks.SteamWorkshopDownload
    (If there are several DownloadManagers then the line above should be the first)
  3. Add the following string to the [OnlineSubsystemSteamworks.KFWorkshopSteamworks] section (create one if it doesn't exist):
    ServerSubscribedWorkshopItems=2811290931
  4. Start server and wait for mutator download.
  5. When the download is complete, stop the server.
  6. Create a file:
    <kf2-server>\KFGame\Config\KFZedSpawner.ini
    with content:
    [ZedSpawner.ZedSpawner] Version=0
  7. Add mutator to server start parameters:
    ?Mutator=ZedSpawner.Mut
    and start the server (this will generate the default KFZedSpawner.ini content).
  8. Stop the server and configure the mutator (see ⚙️ Setup (KFZedSpawner.ini) below).
  9. Start the server.

⚙️ Setup (KFZedSpawner.ini)
bPreloadContentServer - Enable/Disable server-side preload content.
bPreloadContentClient - Enable/Disable client-side preload content.

Cyclic spawn
If you don't want to write an endless spawn list for the endless mode (😁) use a cyclic spawn. Set parameter bCyclicalSpawn=True
After the last wave in the spawn list ends, spawn will start again from the beginning of the list.
Use the SpawnTotalCycleMultiplier and SingleSpawnLimitCycleMultiplier modifiers to adjust the difficulty of the following cycles.

Shadow spawn
With bShadowSpawn=True, the zeds from the list will replace the original zeds that haven't spawned yet, so the counter of the remaining zeds won't grow. Spawning will stop when there are no unspawned zeds left.
With bShadowSpawn=False zeds from the spawn list will not replace the original ones. The counter of remaining zeds will increase when spawning. Spawn will continue until the end of the wave.

Smooth spawn
With bSmoothSpawn=True a group of zeds will spawn gradually (1 zed per second).

AliveSpawnLimit
If you have a server crash with a large number of zeds, set AliveSpawnLimit. If the number of live zeds reaches the specified limit, spawning will be stopped until there are fewer zeds. At zero there is no limit.

Spawn lists
Use the [ZedSpawner.SpawnListRegular] section to set spawn on any wave.
Use the [ZedSpawner.SpawnListBossWaves] and [ZedSpawner.SpawnListSpecialWaves] sections to set a separate spawn for the boss wave and special waves if needed. Use bStopRegularSpawn=True if you want to stop spawning from the regular list during boss waves or special waves.

Spawn entry parameters
  • Wave / BossClass - what wave is the spawn for. Wave number for the regular list, wave type for the special list. boss class for the boss list.
  • ZedClass - the class of the zed you want to spawn (for example: ZedternalReborn.WMPawn_ZedScrake_Omega).
  • RelativeStart - allows you to start spawning a zed not on a timer, but after killing the specified percentage of zeds. If set to zero, spawn will start after Delay seconds from the start of the wave. Note that RelativeStart does not work on bosses.
  • Delay - time in seconds between spawns.
  • Probability - the chance (%) of each spawn (1-100).
  • SpawnCountBase - The base number of zeds to spawn, aka the number of zeds that will be spawned on the first cycle with one player. Can be adjusted by modifiers, number of players and cycle number.
  • SingleSpawnLimit - maximum number of zeds for one spawn. Can be adjusted by modifiers, number of players and cycle number.

🔬 Spawn logic
I really tried to describe in text how it works, but every time I got some kind of crap. Therefore, I decided to explain it a little differently and made a small calculator for this. It is interactive, you can change the parameters and see what happens. It has all the necessary explanations, so I think you will quickly figure out how the spawner works.

Link (remove spaces):
htt ps://docs .google .com/spreadsheets/d/1q67WJ36jhj6Y0lPNO5tS2bU79Wphu4Xmi62me6DAwtM/edit?usp=drive_link
  • Please try not to interfere with each other if you see that someone is already using a calculator.
  • If some villain broke the calculator - let me know in the comments, I'll roll it back to its previous state.

📌 Notes
  • Mutator does not contain custom zeds. You must have the required zeds in your subscriptions to be able to spawn them.
  • If you are using this mutator to add zeds, you should not use mutators from zed packs (just having them in subscriptions is enough).
  • If the spawner's behavior differs from what you expect, check the server logs first. ZedSpawner writes in the logs everything it does (and describes why), most likely you will find an explanation of what is happening.

🌍 Credits
  • Windows11 - Custom Zed Spawn Mutator.
  • The cat on the cover is Meawbin (original character by Cotton Valent[x.com]).

☑️ Status: Completed
✔️ The mutator works with the current version of the game (v1150) and I have implemented everything I planned.
⛔️ Development has stopped: I no longer have the time or motivation to maintain this mod. No further updates or bug fixes are planned.

📜 Sources
https://github.com/GenZmeY/KF2-ZedSpawner (GPL-3.0-or-later)
65 Comments
Fulgore 27 Apr @ 10:54am 
I never used this? where i should add code and what code how? i really don´t know:riddle:
GenZmeY  [author] 17 Mar @ 8:32am 
Well... if that were the case, there would be little point in this mutator :D

It can be used with any zeds, just make sure you have them in your subscriptions
8-Bits Ronin 16 Mar @ 1:18pm 
Can I use this only with vanilla zeds?
GenZmeY  [author] 15 Mar @ 9:33am 
@ClutchNZ this parameter is not scalable, so you can't do this
ClutchNZ 9 Mar @ 2:12pm 
@GenZmeY how can we make this scale the AliveSpawnLimit to how many players are active? for eg, AliveSpawnLimit=20,28,32,48,56,64, players 1 to 6, is this possible to do with it?
GenZmeY  [author] 4 Nov, 2024 @ 6:42am 
@Scaredkid93, It's possible, but I don't think it's worth adding it here, since this functionality is not related to zed spawning

But it's a good idea for a new mutator and will be useful to many people even on servers without ZedSpawner mutator. And it would be pretty easy to do

I'm retired though. I have no desire to do anything for KF2 anymore. Maybe I'll do it if I have nothing else to do, but that's unlikely
Scaredkid93 21 Oct, 2024 @ 6:45pm 
Is it possible to add an auto end wave timer for when zeds get stuck on occasion? example something like, when 5 or less zeds are left start 10-15 second timer starts that will end the wave.
catto 28 Aug, 2024 @ 5:02am 
cool bro, i just want my server to stay stable and people have fun messing with custom guns and zeds
catto 28 Aug, 2024 @ 5:01am 
will do
GenZmeY  [author] 28 Aug, 2024 @ 4:59am 
By the way, don't get me wrong, incompatibility is a very common thing here. If two mods are incompatible, they can work fine separately, but cause problems together. It doesn't mean that the first mod is bad or the second mod is bad. It just means that they conflict. It happens