Killing Floor 2

Killing Floor 2

39 ratings
SetWave [Endless]
   
Award
Favorite
Favorited
Unfavorite
Maps and Mods: Gamemodes
Tags: Endless
File Size
Posted
1.778 KB
4 Mar, 2018 @ 6:43am
1 Change Note ( view )

Subscribe to download
SetWave [Endless]

Description
A small utility mod that allows players to use the SetWave console command in Endless. The use of this command requires cheats enabled.

This mod is not whitelisted, and will unrank your server regardless of whether you enablecheats.

The point of this mod is to allow players to jump to whatever wave they wish, allowing them to experience later waves that they may not have time to normally reach, or for testing purposes. This mod should help players beta test the Endless mode more thoroughly, as there are currently many scaling issues that are prominent in the later waves.

Source code:
class SWGameInfo_Endless extends KFGameInfo_Endless; function bool AllowWaveCheats() { return true; }
Yep, that’s it. It’s unfortunate that this mod is even required to use the SetWave command, but as far as I’m aware only the devs can use that command in their non-shipping versions.

To use this mod on solo, enter this into the console (opened using the tilde key in-game):
open KF-BurningParis?Game=SetWave.SWGameInfo_Endless?Difficulty=3?GameLength=1
To use this on a server, the Game parameter must be set to SetWave.SWGameInfo, e.g.
start .\Binaries\win64\kfserver KF-BurningParis?Game=SetWave.SWGameInfo_Endless?Difficulty=3?GameLength=1?adminpassword=123
Difficulty can be 0, 1, 2 or 3 for Normal, Hard, Suicidal and Hell on Earth, respectively. GameLength can be 0, 1 or 2, for Short, Medium and Long, respectively. The example shown would be 7 waves on Hell on Earth.

During a match with cheats enabled (by entering enablecheats into the console), players can use the following command to set the wave number:
setwave <WaveNumber>
where <WaveNumber> is the wave you want to go to. E.g. to jump to wave 105, enter
setwave 105
into the console.
NOTE: the use of this command requires admin privileges on multiplayer matches. In this case, the command is:
admin setwave 105
NOTE: the wave number is stored as a byte, i.e. it can take on the values 0-255. Completing wave 254, thus bringing you to 255, is actually a victory condition for endless – as shown in the screenshot. Entering a <WaveNumber> larger than 255 will wrap around within the range of 0-255. E.g. a <WaveNumber> of 265 would result in jumping to wave 10.

Issues/bugs
At the end of a match the vault dosh gained from the match displays incorrectly. In fact, the display value is the negative of your current vault dosh. This scary looking value is NOT applied to your vault dosh - you won’t lose your vault dosh.
After entering the setwave command, the wave you jump to will begin without trader timer beforehand. This is more something to be wary of than a bug.

Anyone who isn't amazed by my artwork should know that it's a joke inspired by the song Metal on Metal, by Anvil.
5 Comments
Pharrahnox  [author] 25 Dec, 2018 @ 6:02pm 
You can set the boss in my other mod, StartWave. StartWave pretty much makes this obsolete. However, it will likely only force the first boss you get in endless. Here's a link for StartWave if you're interested: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1417081496
Deko 25 Dec, 2018 @ 5:43pm 
can I choose the Boss? xD
Pharrahnox  [author] 25 Nov, 2018 @ 4:27pm 
You can't since they're both gamemodes. However, you could use StartWave which is a mutator and lets you start on a wave of your choice.
Demolitions 25 Nov, 2018 @ 3:03pm 
How would I add this to another gamemode for Endless, say Zedternal?
damn_pastor 13 May, 2018 @ 4:24am 
Should be whitelisted. :)