Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
180108d6ec |
76
.github/workflows/mega-linter.yml
vendored
76
.github/workflows/mega-linter.yml
vendored
@ -6,14 +6,12 @@ permissions: read-all
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches: [master]
|
||||||
- master
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
APPLY_FIXES: none
|
APPLY_FIXES: none
|
||||||
APPLY_FIXES_EVENT: pull_request
|
APPLY_FIXES_EVENT: pull_request
|
||||||
APPLY_FIXES_MODE: commit
|
APPLY_FIXES_MODE: commit
|
||||||
FILTER_REGEX_EXCLUDE: (mega-linter.yml)
|
|
||||||
DISABLE: SPELL
|
DISABLE: SPELL
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -21,94 +19,54 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
megalinter:
|
build:
|
||||||
name: MegaLinter
|
name: MegaLinter
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
issues: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: MegaLinter
|
- name: MegaLinter
|
||||||
uses: oxsecurity/megalinter@7e042c726c68415475b05a65a686c612120a1232
|
|
||||||
id: ml
|
id: ml
|
||||||
|
uses: oxsecurity/megalinter@v6
|
||||||
env:
|
env:
|
||||||
VALIDATE_ALL_CODEBASE: true
|
VALIDATE_ALL_CODEBASE: true
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Archive production artifacts
|
- name: Archive production artifacts
|
||||||
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392
|
if: ${{ success() }} || ${{ failure() }}
|
||||||
if: success() || failure()
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: MegaLinter reports
|
name: MegaLinter reports
|
||||||
path: |
|
path: |
|
||||||
megalinter-reports
|
megalinter-reports
|
||||||
mega-linter.log
|
mega-linter.log
|
||||||
|
|
||||||
- name: Set APPLY_FIXES_IF var
|
|
||||||
run: |
|
|
||||||
printf 'APPLY_FIXES_IF=%s\n' "${{
|
|
||||||
steps.ml.outputs.has_updated_sources == 1 &&
|
|
||||||
(
|
|
||||||
env.APPLY_FIXES_EVENT == 'all' ||
|
|
||||||
env.APPLY_FIXES_EVENT == github.event_name
|
|
||||||
) &&
|
|
||||||
(
|
|
||||||
github.event_name == 'push' ||
|
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
|
||||||
)
|
|
||||||
}}" >> "${GITHUB_ENV}"
|
|
||||||
|
|
||||||
- name: Set APPLY_FIXES_IF_* vars
|
|
||||||
run: |
|
|
||||||
printf 'APPLY_FIXES_IF_PR=%s\n' "${{
|
|
||||||
env.APPLY_FIXES_IF == 'true' &&
|
|
||||||
env.APPLY_FIXES_MODE == 'pull_request'
|
|
||||||
}}" >> "${GITHUB_ENV}"
|
|
||||||
printf 'APPLY_FIXES_IF_COMMIT=%s\n' "${{
|
|
||||||
env.APPLY_FIXES_IF == 'true' &&
|
|
||||||
env.APPLY_FIXES_MODE == 'commit' &&
|
|
||||||
(!contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref))
|
|
||||||
}}" >> "${GITHUB_ENV}"
|
|
||||||
|
|
||||||
- name: Create Pull Request with applied fixes
|
- name: Create Pull Request with applied fixes
|
||||||
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38
|
|
||||||
id: cpr
|
id: cpr
|
||||||
if: env.APPLY_FIXES_IF_PR == 'true'
|
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
|
||||||
|
uses: peter-evans/create-pull-request@v5
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
|
||||||
commit-message: "[MegaLinter] Apply linters automatic fixes"
|
commit-message: "[MegaLinter] Apply linters automatic fixes"
|
||||||
title: "[MegaLinter] Apply linters automatic fixes"
|
title: "[MegaLinter] Apply linters automatic fixes"
|
||||||
labels: bot
|
labels: bot
|
||||||
|
|
||||||
- name: Create PR output
|
- name: Create PR output
|
||||||
if: env.APPLY_FIXES_IF_PR == 'true'
|
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
|
||||||
run: |
|
run: |
|
||||||
echo "PR Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||||
echo "PR URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||||
|
|
||||||
- name: Prepare commit
|
- name: Prepare commit
|
||||||
if: env.APPLY_FIXES_IF_COMMIT == 'true'
|
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
|
||||||
run: sudo chown -Rc $UID .git/
|
run: sudo chown -Rc $UID .git/
|
||||||
|
|
||||||
- name: Commit and push applied linter fixes
|
- name: Commit and push applied linter fixes
|
||||||
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d
|
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
|
||||||
if: env.APPLY_FIXES_IF_COMMIT == 'true'
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
with:
|
with:
|
||||||
branch: >-
|
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
|
||||||
${{
|
|
||||||
github.event.pull_request.head.ref ||
|
|
||||||
github.head_ref ||
|
|
||||||
github.ref
|
|
||||||
}}
|
|
||||||
commit_message: "[MegaLinter] Apply linters fixes"
|
commit_message: "[MegaLinter] Apply linters fixes"
|
||||||
commit_user_name: "github-actions"
|
commit_user_name: megalinter-bot
|
||||||
commit_user_email: "github-actions[bot]@users.noreply.github.com"
|
commit_user_email: nicolas.vuillamy@ox.security
|
||||||
|
@ -1,75 +1,69 @@
|
|||||||
[img]https://img.shields.io/static/v1?logo=GitHub&labelColor=gray&color=blue&logoColor=white&label=&message=Open Source[/img] [img]https://img.shields.io/github/license/GenZmeY/KF2-ZedSpawner[/img] [img]https://img.shields.io/steam/favorites/2811290931[/img] [img]https://img.shields.io/steam/update-date/2811290931[/img] [url=https://steamcommunity.com/sharedfiles/filedetails/changelog/2811290931][img]https://img.shields.io/github/v/tag/GenZmeY/KF2-ZedSpawner[/img][/url]
|
[img]https://img.shields.io/static/v1?logo=GitHub&labelColor=gray&color=blue&logoColor=white&label=&message=Open Source[/img] [img]https://img.shields.io/github/license/GenZmeY/KF2-ZedSpawner[/img] [img]https://img.shields.io/steam/favorites/2811290931[/img] [img]https://img.shields.io/steam/update-date/2811290931[/img] [url=https://steamcommunity.com/sharedfiles/filedetails/changelog/2811290931][img]https://img.shields.io/github/v/tag/GenZmeY/KF2-ZedSpawner[/img][/url]
|
||||||
|
|
||||||
[h1]📋 Description[/h1]
|
[h1]Description[/h1]
|
||||||
Spawner for zeds.
|
Spawner for zeds. Started as a modification of [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2488241348]this version[/url], but now there is almost nothing left of the previous mutator, lol xD
|
||||||
|
|
||||||
This mutator uses the same method of spawning zeds by timer as in [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2488241348]Custom Zed Spawn Mutator[/url]. But the implementation is completely new.
|
[h1]Features[/h1]
|
||||||
|
- 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.
|
||||||
|
|
||||||
[h1]✨ Features[/h1]
|
[h1]Whitelisted?[/h1]
|
||||||
[list]
|
No. This mod is not whitelisted and will de-rank your server. Any XP gained will not be saved.
|
||||||
[*]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
|
|
||||||
[/list]
|
|
||||||
|
|
||||||
[h1]❌ Whitelisted?[/h1]
|
[h1]Usage (single player)[/h1]
|
||||||
No. This mod is not whitelisted and will de-rank your server. Any XP earned will not be saved.
|
|
||||||
|
|
||||||
[h1]🎮 Usage (single player)[/h1]
|
|
||||||
[olist]
|
[olist]
|
||||||
[*]Subscribe to this mutator.
|
[*]Subscribe to this mutator;
|
||||||
[*]Create a file:
|
[*]Start KF2;
|
||||||
[code]C:\Users\<username>\Documents\My Games\KillingFloor2\KFGame\Config\KFZedSpawner.ini[/code]
|
[*]Open console (~) and input:
|
||||||
with content:
|
[b]open KF-BioticsLab?Mutator=ZedSpawner.ZedSpawnerMut[/b]
|
||||||
[code][ZedSpawner.ZedSpawner]
|
(replace the map and add the parameters you need)
|
||||||
Version=0[/code]
|
[*]<Enter>.
|
||||||
[*]Launch KF2.
|
|
||||||
[*]Open console (~) and start any map with the mutator (this will generate the default KFZedSpawner.ini content):
|
|
||||||
[code]open KF-BioticsLab?Mutator=ZedSpawner.Mut[/code]
|
|
||||||
[*]Close the game and configure the mutator (see [b]⚙️ Setup (KFZedSpawner.ini)[/b] below).
|
|
||||||
[*]Launch KF2 again, open the console, and start the game:
|
|
||||||
[code]open KF-BioticsLab?Game=KFGameContent.KFGameInfo_Endless?Difficulty=3?GameLength=2?Mutator=ZedSpawner.Mut[/code]
|
|
||||||
(replace the map and set/add parameters you need).
|
|
||||||
[/olist]
|
[/olist]
|
||||||
|
|
||||||
[h1]🖥️ Usage (server)[/h1]
|
[h1]Usage (server)[/h1]
|
||||||
[b]Note:[/b] [i]If this is unclear, first read: [url=https://wiki.killingfloor2.com/index.php?title=Dedicated_Server_(Killing_Floor_2)][u]Dedicated Server Guide (KF2 wiki)[/u][/url][/i]
|
[b]Note:[/b] [i]If you don't understand what is written here, read the article [url=https://wiki.killingfloor2.com/index.php?title=Dedicated_Server_(Killing_Floor_2)][u]Dedicated Server (KF2 wiki)[/u][/url] before following these instructions.[/i]
|
||||||
[olist]
|
[olist]
|
||||||
[*]Open [b]PCServer-KFEngine.ini[/b] / [b]LinuxServer-KFEngine.ini[/b].
|
[*]Open your [b]PCServer-KFEngine.ini[/b] / [b]LinuxServer-KFEngine.ini[/b];
|
||||||
[*]Find [b][IpDrv.TcpNetDriver][/b] section and ensure line exists (add if missing):
|
[*]Find the [b][IpDrv.TcpNetDriver][/b] section and make sure that there is a line (add if not):
|
||||||
[code]DownloadManagers=OnlineSubsystemSteamworks.SteamWorkshopDownload[/code]
|
[b]DownloadManagers=OnlineSubsystemSteamworks.SteamWorkshopDownload[/b]
|
||||||
(If there are several [b]DownloadManagers[/b] then the line above should be the first)
|
❗️ If there are several [b]DownloadManagers=[/b] then the line above should be the first ❗️
|
||||||
[*]Add the following string to the [b][OnlineSubsystemSteamworks.KFWorkshopSteamworks][/b] section (create one if it doesn't exist):
|
[*]Add the following string to the [b][OnlineSubsystemSteamworks.KFWorkshopSteamworks][/b] section (create one if it doesn't exist):
|
||||||
[code]ServerSubscribedWorkshopItems=2811290931[/code]
|
[b]ServerSubscribedWorkshopItems=2811290931[/b]
|
||||||
[*]Start server and wait for mutator download.
|
[*]Start the server and wait while the mutator is downloading;
|
||||||
[*]When the download is complete, stop the server.
|
[*]Add mutator to server start parameters: [b]?Mutator=ZedSpawner.ZedSpawnerMut[/b] and restart the server.
|
||||||
[*]Create a file:
|
|
||||||
[code]<kf2-server>\KFGame\Config\KFZedSpawner.ini[/code]
|
|
||||||
with content:
|
|
||||||
[code][ZedSpawner.ZedSpawner]
|
|
||||||
Version=0[/code]
|
|
||||||
[*]Add mutator to server start parameters: [code]?Mutator=ZedSpawner.Mut[/code] and start the server (this will generate the default KFZedSpawner.ini content).
|
|
||||||
[*]Stop the server and configure the mutator (see [b]⚙️ Setup (KFZedSpawner.ini)[/b] below).
|
|
||||||
[*]Start the server.
|
|
||||||
[/olist]
|
[/olist]
|
||||||
|
|
||||||
[h1]⚙️ Setup (KFZedSpawner.ini)[/h1]
|
[h1]Important setup information[/h1]
|
||||||
[b]bPreloadContentServer[/b] - Enable/Disable server-side preload content.
|
The config should be created on first start, but now the game contains a bug that initializes the config values randomly if they are not explicitly set. Thus, the config may have incorrect values or not be created at all.
|
||||||
[b]bPreloadContentClient[/b] - Enable/Disable client-side preload content.
|
So if you are using this mutator for the first time, I highly recommend doing the following:
|
||||||
|
[olist]
|
||||||
|
[*]Create (modify) [b]KFZedSpawner.ini[/b] manually. Put the following content there:
|
||||||
|
[b][ZedSpawner.ZedSpawner]
|
||||||
|
Version=0[/b]
|
||||||
|
[*]Start the game/server with ZedSpawner to generate the contents of the config.
|
||||||
|
[*]Close the game/server.
|
||||||
|
[/olist]
|
||||||
|
[b]Right now this is the only way to correctly create the default config.[/b]
|
||||||
|
Unfortunately I can't do anything about it because it's a game problem (not mutator). I hope TWI fixes this someday.
|
||||||
|
|
||||||
|
[h1]Setup (KFZedSpawner.ini)[/h1]
|
||||||
|
[b]bPreloadContentServer[/b] - enable/disable server-side preload content;
|
||||||
|
[b]bPreloadContentClient[/b] - enable/disable client-side preload content;
|
||||||
|
|
||||||
[b]Cyclic spawn[/b]
|
[b]Cyclic spawn[/b]
|
||||||
If you don't want to write an endless spawn list for the endless mode (😁) use a cyclic spawn. Set parameter [b]bCyclicalSpawn=True[/b]
|
If you don't want to write an endless spawn list for the endless mode (lol) use a cyclic spawn. Set parameter [b]bCyclicalSpawn=True[/b]
|
||||||
After the last wave in the spawn list ends, spawn will start again from the beginning of the list.
|
After the last wave in the spawn list ends, spawn will start again from the beginning of the list.
|
||||||
Use the [b]SpawnTotalCycleMultiplier[/b] and [b]SingleSpawnLimitCycleMultiplier[/b] modifiers to adjust the difficulty of the following cycles.
|
Using the [b]SpawnTotalCycleMultiplier[/b] and [b]SingleSpawnLimitCycleMultiplier[/b] modifiers will allow you to adjust the difficulty of the following cycles.
|
||||||
|
|
||||||
[b]Shadow spawn[/b]
|
[b]Shadow spawn[/b]
|
||||||
With [b]bShadowSpawn=True[/b], 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 [b]bShadowSpawn=True[/b], 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 [b]bShadowSpawn=False[/b] 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.
|
With [b]bShadowSpawn=False[/b] 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.
|
||||||
|
|
||||||
[b]Smooth spawn[/b]
|
[b]Smooth spawn[/b]
|
||||||
With [b]bSmoothSpawn=True[/b] a group of zeds will spawn gradually (1 zed per second).
|
With [b]bSmoothSpawn=True[/b] a group of zeds will spawn gradually (1 zed per second);
|
||||||
|
|
||||||
[b]AliveSpawnLimit[/b]
|
[b]AliveSpawnLimit[/b]
|
||||||
If you have a server crash with a large number of zeds, set [b]AliveSpawnLimit[/b]. 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.
|
If you have a server crash with a large number of zeds, set [b]AliveSpawnLimit[/b]. 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.
|
||||||
@ -80,7 +74,7 @@ Use the [b][ZedSpawner.SpawnListBossWaves][/b] and [b][ZedSpawner.SpawnListSpeci
|
|||||||
|
|
||||||
[b]Spawn entry parameters[/b]
|
[b]Spawn entry parameters[/b]
|
||||||
[list]
|
[list]
|
||||||
[*][b]Wave / BossClass[/b] - what wave is the spawn for. Wave number for the regular list, wave type for the special list. boss class for the boss list.
|
[*][b]Wave / BossClass[/b] - what wave is the spawn for. Wave number for the regular list, wave type for the special list; boss class for the boss list.
|
||||||
[*][b]ZedClass[/b] - the class of the zed you want to spawn (for example: ZedternalReborn.WMPawn_ZedScrake_Omega).
|
[*][b]ZedClass[/b] - the class of the zed you want to spawn (for example: ZedternalReborn.WMPawn_ZedScrake_Omega).
|
||||||
[*][b]RelativeStart[/b] - 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 [b]Delay[/b] seconds from the start of the wave. Note that [b]RelativeStart[/b] does not work on bosses.
|
[*][b]RelativeStart[/b] - 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 [b]Delay[/b] seconds from the start of the wave. Note that [b]RelativeStart[/b] does not work on bosses.
|
||||||
[*][b]Delay[/b] - time in seconds between spawns.
|
[*][b]Delay[/b] - time in seconds between spawns.
|
||||||
@ -89,29 +83,16 @@ Use the [b][ZedSpawner.SpawnListBossWaves][/b] and [b][ZedSpawner.SpawnListSpeci
|
|||||||
[*][b]SingleSpawnLimit[/b] - maximum number of zeds for one spawn. Can be adjusted by modifiers, number of players and cycle number.
|
[*][b]SingleSpawnLimit[/b] - maximum number of zeds for one spawn. Can be adjusted by modifiers, number of players and cycle number.
|
||||||
[/list]
|
[/list]
|
||||||
|
|
||||||
[h1]🔬 Spawn logic[/h1]
|
[h1]Spawn logic[/h1]
|
||||||
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.
|
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.
|
||||||
|
|
||||||
[b]Link (remove spaces):[/b]
|
[url=https://redirect.genzmey.su/kf2-zedspawner-calc][img]https://img.shields.io/static/v1?message=Spawn%20Calculator&logo=Google%20Sheets&labelColor=34A853&color=gray&logoColor=white&label=Google%20Sheets%20[/img][/url]
|
||||||
[code]htt ps://docs .google .com/spreadsheets/d/1q67WJ36jhj6Y0lPNO5tS2bU79Wphu4Xmi62me6DAwtM/edit?usp=drive_link[/code]
|
[i]Just please try not to interfere with each other if you see that someone is already using a calculator.[/i]
|
||||||
[list]
|
|
||||||
[*]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.
|
|
||||||
[/list]
|
|
||||||
|
|
||||||
[h1]📌 Notes[/h1]
|
[h1]Notes[/h1]
|
||||||
[list]
|
📌 Mutator does not contain custom zeds. You must have the required zeds in your subscriptions to be able to spawn them.
|
||||||
[*]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 [b]not[/b] use mutators from zed packs (just having them in subscriptions is enough).
|
||||||
[*]If you are using this mutator to add zeds, you should [b]not[/b] 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 there. If not, feel free to report bugs :)
|
||||||
[*]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.
|
|
||||||
[/list]
|
|
||||||
|
|
||||||
[h1]🌍 Credits[/h1]
|
[h1]Sources[/h1]
|
||||||
[list][*][url=https://steamcommunity.com/profiles/76561198071961495]Windows11[/url] - Custom Zed Spawn Mutator.[*]The cat on the cover is Meawbin (original character by [url=https://x.com/horrormove]Cotton Valent[/url]).[/list]
|
[url=https://github.com/GenZmeY/KF2-ZedSpawner]https://github.com/GenZmeY/KF2-ZedSpawner[/url] (GNU GPLv3)
|
||||||
|
|
||||||
[h1]☑️ Status: Completed[/h1]
|
|
||||||
✔️ 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.
|
|
||||||
|
|
||||||
[h1]📜 Sources[/h1]
|
|
||||||
https://github.com/GenZmeY/KF2-ZedSpawner [b](GNU GPLv3)[/b]
|
|
||||||
|
@ -1,61 +0,0 @@
|
|||||||
class Mut extends KFMutator
|
|
||||||
dependson(ZedSpawner);
|
|
||||||
|
|
||||||
var private ZedSpawner ZS;
|
|
||||||
|
|
||||||
public simulated function bool SafeDestroy()
|
|
||||||
{
|
|
||||||
return (bPendingDelete || bDeleteMe || Destroy());
|
|
||||||
}
|
|
||||||
|
|
||||||
public event PreBeginPlay()
|
|
||||||
{
|
|
||||||
Super.PreBeginPlay();
|
|
||||||
|
|
||||||
if (WorldInfo.NetMode == NM_Client) return;
|
|
||||||
|
|
||||||
foreach WorldInfo.DynamicActors(class'ZedSpawner', ZS)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ZS == None)
|
|
||||||
{
|
|
||||||
ZS = WorldInfo.Spawn(class'ZedSpawner');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ZS == None)
|
|
||||||
{
|
|
||||||
`Log_Base("FATAL: Can't Spawn 'ZedSpawner'");
|
|
||||||
SafeDestroy();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function AddMutator(Mutator M)
|
|
||||||
{
|
|
||||||
if (M == Self) return;
|
|
||||||
|
|
||||||
if (M.Class == Class)
|
|
||||||
Mut(M).SafeDestroy();
|
|
||||||
else
|
|
||||||
Super.AddMutator(M);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function NotifyLogin(Controller C)
|
|
||||||
{
|
|
||||||
ZS.NotifyLogin(C);
|
|
||||||
|
|
||||||
Super.NotifyLogin(C);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function NotifyLogout(Controller C)
|
|
||||||
{
|
|
||||||
ZS.NotifyLogout(C);
|
|
||||||
|
|
||||||
Super.NotifyLogout(C);
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultproperties
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
@ -255,7 +255,7 @@ private function PreloadContent()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function ExtractCustomZedsFromSpawnList(const out Array<S_SpawnEntry> SpawnList, out Array<class<KFPawn_Monster> > Out)
|
private function ExtractCustomZedsFromSpawnList(Array<S_SpawnEntry> SpawnList, out Array<class<KFPawn_Monster> > Out)
|
||||||
{
|
{
|
||||||
local S_SpawnEntry SE;
|
local S_SpawnEntry SE;
|
||||||
|
|
||||||
|
@ -1 +1,61 @@
|
|||||||
class ZedSpawnerMut extends Mut; // backward compatibility
|
class ZedSpawnerMut extends KFMutator
|
||||||
|
dependson(ZedSpawner);
|
||||||
|
|
||||||
|
var private ZedSpawner ZS;
|
||||||
|
|
||||||
|
public simulated function bool SafeDestroy()
|
||||||
|
{
|
||||||
|
return (bPendingDelete || bDeleteMe || Destroy());
|
||||||
|
}
|
||||||
|
|
||||||
|
public event PreBeginPlay()
|
||||||
|
{
|
||||||
|
Super.PreBeginPlay();
|
||||||
|
|
||||||
|
if (WorldInfo.NetMode == NM_Client) return;
|
||||||
|
|
||||||
|
foreach WorldInfo.DynamicActors(class'ZedSpawner', ZS)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ZS == None)
|
||||||
|
{
|
||||||
|
ZS = WorldInfo.Spawn(class'ZedSpawner');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ZS == None)
|
||||||
|
{
|
||||||
|
`Log_Base("FATAL: Can't Spawn 'ZedSpawner'");
|
||||||
|
SafeDestroy();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function AddMutator(Mutator Mut)
|
||||||
|
{
|
||||||
|
if (Mut == Self) return;
|
||||||
|
|
||||||
|
if (Mut.Class == Class)
|
||||||
|
ZedSpawnerMut(Mut).SafeDestroy();
|
||||||
|
else
|
||||||
|
Super.AddMutator(Mut);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function NotifyLogin(Controller C)
|
||||||
|
{
|
||||||
|
ZS.NotifyLogin(C);
|
||||||
|
|
||||||
|
Super.NotifyLogin(C);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function NotifyLogout(Controller C)
|
||||||
|
{
|
||||||
|
ZS.NotifyLogout(C);
|
||||||
|
|
||||||
|
Super.NotifyLogout(C);
|
||||||
|
}
|
||||||
|
|
||||||
|
defaultproperties
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user