MORDHAU

Bot Spawner for MORDHAU

Released (updated ago). Ranked 269 of 482 with 760 (1 today) downloads

Created by andargor (mod ID: 115921)

botspawnermod.jpg

This will spawn bots according to the settings below when there are players present. The bots will be removed at the end of a match or if there are no players left. Bots do not take up player slots, and their numbers may exceed the match maximum. However be aware that configuring a large number of bots may use up all of your server capacity.

Installation

Place the PAK file under Mordhau/Content/Paks. Then in Game.ini, add the following under the [/Script/Mordhau.MordhauGameMode] section, and restart the server:

SpawnServerActorsOnMapLoad=/Game/Mordhau/Maps/BotSpawner/BP_BotSpawner.BP_BotSpawner_C

Configuration

The following are the default settings, that can be modified by adding this section to Engine.ini. To keep the default settings, you do not need this entry in Engine.ini.

[/Game/Mordhau/Maps/BotSpawner/BP_BotSpawner.BP_BotSpawner_C]
botSpawnerInitialDelaySeconds=5.0
botSpawnerMinimumPlayers=1
botSpawnerTargetBotsPerTeam=30
botSpawnerBotBatchSize=1
botSpawnerSpawnDelaySeconds=1.0

The settings can be interpreted in this fashion:

Once a match has started, and there are at least botSpawnerMinimumPlayers players present, wait botSpawnerInitialDelaySeconds and then start adding botSpawnerBotBatchSize bots every botSpawnerSpawnDelaySeconds until there are botSpawnerTargetBotsPerTeam bots per team, minus any players present on that team.

Note that for Deathmatch, Horde and Battle Royale maps, there will be a total of botSpawnerTargetBotsPerTeam in the match since there is only one "team".

Optional Settings

It is possible to modify the individual number of bots for each team with the following optional settings. Team0 is Red and Team1 is Blue.

botSpawnerTargetBotsForTeam0=10
botSpawnerTargetBotsForTeam1=30

In this example, there would be 10 bots spawned for Team0 and 30 bots for Team1, minus any players present in those teams.

Coop Mode

The following optional setting will switch the server to Coop mode.

botSpawnerCoopTeam=1

This will force all players to the selected team, regardless of their team selection. botSpawnerCoopTeam=0 will put all players in Team 0 (Red), and botSpawnerCoopTeam=1 will put all players in Team 1 (Blue).

In combination with botSpawnerTargetBotsForTeam0 and botSpawnerTargetBotsForTeam1 you can therefore create different coop scenarios of varying difficulty.

Sources

Sources for the uSDK are available on GitHub (MIT LIcense): Github.com


Releases

FilenameSizeVersionAddedOptions
botspawner.3.zip559.31kb1.3

botspawner.2.zip559.12kb1.2

botspawner.1.zip559.36kb1.1

botspawner.zip556.6kb1.0.0

6 comments

Join the community or sign in with your gaming account to join the conversation:

andargor
andargor @andargor

=HSF=TheHoodiedThief Perhaps in the future, for now I'm trying to stabilize the basic functionality.

=HSF=TheHoodiedThief
=HSF=TheHoodiedThief @hsfthehoodiedthief

Will we be able to customize the bots that spawn? (Cosmetics, Weapons, etc.)

andargor
andargor @andargor

Bugfix for when individual bot target amounts are set to 0

andargor
andargor @andargor

New release with balancing, individual team bot target quantities, and Coop mode.

andargor
andargor @andargor

Doh! I forgot to add the installation instructions in the description, without which the spawner won't work. Added to description.

♪Future카p!
♪Future카p! @futurecop

Thank you for the source!