Description
This is to resolve high bot counts spawning after counter attacks because of a bug that was introduced in 1.12. This mod will kill any bots that spawn past the configured limit with the exception of the Militia counterattack waves which by design spawn with a 1.4 multiplier. By default this will cap the bots at what your MinimumEnemies and MaximumEnemies set it to.
MUTATOR=CAPCOUNT
The following can be placed in your game.ini to configure the limit. The defaults will play like vanilla before the bug was introduced. Default is -1, which is the current bot count for the player count and the MilitiaOverflowAllowed allows an extra 40% more militia counterattack bots like vanilla.
[/CapBotCount/Mutators/CapCount.CapCount_C] ;Set to the desired bot cap. If -1, then use the desired bot count. Note that by design Militia counterattacks will spawn with extra bots, but these will also be killed Max=-1 ;Set Overflow to a ratio of the bot count that you want to be allowed to spawn in addition to the Max OverflowRatioAllowed=0.0 ;This controls the overflow for militia counterattack waves. This is 1.4 in the vanilla game since these counters are weaker MilitiaOverflowAllowed=1.4
The Max is set to -1 by default, which will detect the number of bots there should be in-game for that number of players and kill any excess that spawn. The Militia counterattacks by default in game (by design) spawn in excess of this number. Currently this mod will allow those excess and will kill them on spawn to keep the limit set by the server. In future I could potentially add a check to detect for these and up the limit during these counters. Max can also be set to some arbitrary number and the mod will use that as the cap. You could set it to MaximumEnemies and that would allow for a certain variance, but not over.
NOTE ON BOT RESPAWNS IN V1.3:
Since the game will spawn the next objectives bots on top of the counterattack bots, then when the desired count is set to 20 and this bug can cause 40 to be active at once after the counterattack. This mod will kill off those new bots and limit it back to 20. The issue with this is that this in many cases will immediately trigger a bot respawn wave since the number of bots killed would meet the RespawnDPR for the server. The bots killed by this mod are then immediately respawned and this mod kills them off again. In pre-v1.3, the end result was that the bots would not get a respawn wave for the next objective since they are all killed off. In v1.3 I added a work around that delays the respawn of the bots until the DPR of the desired bot count is hit, then it triggers the respawn wave as per usual. This method may result in more or less bots than specifically configured, but the max alive will be honored. To disable this compensation set bAdjustForDPRLoss=False in the header above.
Appreciate my work and want to donate or have a mod made? See my profile. If leaving a comment regarding bugs or feedback go ahead and tag me so I get a notification.
Ratings & reviews
Sign in to leave a rating or comment.