Killing Floor 2

Killing Floor 2

32 个评价
Zed Spawner
   
奖励
收藏
已收藏
取消收藏
Maps and Mods: Mutators
文件大小
发表于
更新日期
93.600 KB
2022 年 5 月 22 日 上午 6:53
2024 年 3 月 8 日 下午 12:56
13 项改动说明 ( 查看 )

订阅以下载
Zed Spawner

描述


📋 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)
70 条留言
∀ℳΞ¡ƧΞɲþɘɼ 11 月 25 日 上午 1:48 
Ok Thanks again for the quick info.
GenZmeY  [作者] 11 月 25 日 上午 1:42 
The workshop item descriptions are extremely limited in size, so I had to cut out some details and leave only the essentials. Unfortunately.

LogLevel values:
LL_None - Logging is disabled
LL_Fatal - Print only fatal errors
LL_Error - Print errors and fatal errors
LL_Warning - Print warnings, errors, fatal errors
LL_Info - Print info messages, warnings, errors, fatal errors (default)
LL_Debug - Print debug info, info messages, warnings, errors, fatal errors
LL_Trace - Print traces, debug info, info messages, warnings, errors, fatal errors
LL_All - Print everything (the same as LL_Trace in fact)

Select something above LL_Info depending on what information you may need.
GenZmeY  [作者] 11 月 25 日 上午 1:41 
fatal errors - errors that prevent the mutator from functioning
errors - something is configured incorrectly or is not working correctly, which could potentially cause problems
warnings - something is configured incorrectly or is not working correctly, but the mutator will still be able to work with it
info - messages about normal operation
debug - information about the internal state of mutator
trace - information about mutator function calls

By default, LL_Info is used. If the LogLevel value is not recognized (incorrectly specified), LL_Info will also be used.

You can also use these values ​​in any of my other mutators, the logging works the same way.
∀ℳΞ¡ƧΞɲþɘɼ 11 月 24 日 下午 12:41 
or minimal zedspawner logs ?
∀ℳΞ¡ƧΞɲþɘɼ 11 月 24 日 下午 12:35 
What should I set LogLevel to if I don't want any Zedspawner logs? Or should I just suppress the Zedspawner log?
Fulgore 4 月 27 日 上午 10:54 
I never used this? where i should add code and what code how? i really don´t know:riddle:
GenZmeY  [作者] 3 月 17 日 上午 8:32 
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-Bit Ronin 3 月 16 日 下午 1:18 
Can I use this only with vanilla zeds?
GenZmeY  [作者] 3 月 15 日 上午 9:33 
@ClutchNZ this parameter is not scalable, so you can't do this
Clutch 클러치-뉴질랜드 3 月 9 日 下午 2:12 
@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?