
NxLabs / Insurgency: Sandstorm
Bot Count Flexing
Live bot count adjustment based on objectives completed and player count.

Description
NEW MUTATOR ADDED! RANDFLEX!
Adds the ability to increase the bot count per completed objective(s) as well as set a certain number of objectives to set when counterattacks begin. This mod is designed for coop matches and modifies a value added to the base set by MinimumEnemies and MaximumEnemies such that scaling per player remains the same but bots are added throughout the match. This has specific configuration support for checkpoint and survival/operation. While this can be used in vanilla survival there are game.ini settings that can add bots per objective in vanilla. The Survival portion was made to be able to set different values than for Checkpoint in the Operation mode (See Custom Scenarios mod by RareK), where there can be many cache/objectives and theses vanilla settings don't work. The Checkpoint settings should also be applied to Outpost.
CHECKPOINT SETTINGS
EFFECT
FixedBotIncreaseCheckpoint If set to > 0 then this will override Min/Max settings below and set it to a fixed number. 1 is default
ObjectiveCountBeforeIncreaseCheckpoint
Number of captures/caches required before bot increase is applied. 1 is default.
MinimumBotIncreaseCheckpoint
Number of bots to increase at minimum player count. This is only used if FixedBotIncreaseCheckpoint is 0. 1 is default.
MaximumBotIncreaseCheckpoint
Number of bots to increase per count at MaxPlayerIncrease count. This is only used if FixedBotIncreaseCheckpoint is 0. 4 is default
NumObjectivesWaitCheckpoint
Number of Objectives to wait prior to starting the bot increase algorithm. 0 is default.
bKeepBotCountOnRestartCheckpoint
Set to true and the bot increase will be maintained on round restart. This is for when using RoundProgress mod the bot counts can be maintained. False is default.
DelayCounterAttack
How many objectives to stall counterattacks for. Default is 0.
SURVIVAL SETTINGS
EFFECT
FixedBotIncreaseSurvival If set to > 0 then this will override Min/Max settings and set it to a fixed number. 1 is default
ObjectiveCountBeforeIncreaseSurvival
Number of captures/caches required before bot increase is applied. 1 is default.
MinimumBotIncreaseSurvival
Number of bots to increase at minimum player count. 1 is default.
MaximumBotIncreaseSurvival
Number of bots to increase per count at MaxPlayerIncrease count. 4 is default
NumObjectivesWaitSurvival
Number of Objectives to wait prior to starting the bot increase algorithm. 0 is default.
NEW SEPARATE CHECKPOINT ONLY MUTATOR added that adjusts the bot count by a random number on top of the bot base! Note that this adds a varying number of bots to the base bot count set by MinimumEnemies and MaximumEnemies. After each objective the count is reset and another random number added on top. So with base bot count set to 8 and IncMin=0 and IncMax=8, then the bot counts will randomly vary from 8 to 16 bots throughout the match.
RANDFLEX CHECKPOINT SETTINGS
EFFECT
IncMin Minimum random number of bots to add on top of base count. 0 is default
IncMax
Maximum random number of bots to add on top of base count. 8 is default
DelayCounterAttack
Number of objectives to stop counterattacks from occurring. 0 is default
NumObjectivesWait
Number of Objectives to wait prior to start randomizing the bot count. 0 is default.
bUsingRoundProgress
If set, this will not reset the completed objective count for NumObjectivesWait and DelayCounterAttack. 0 is default.
If you simply want to scale bots by number of players with no increment throughout the round, then simply use the MinimumEnemies and MaximumEnemies settings built in to the game. To enable respawns use bBots=True and bForceSoloWaves=True.
IMPLEMENTATION NOTES
BaseBotCount = MinimumEnemies + (PlayerCount-1)/(MaxPlayersToScaleEnemyCount-1) * (MaximumEnemies-MinimumEnemies) <- Determined by vanilla game
BotIncrease = abs((number of objectives taken-NumObjectivesWait)/ObjectiveCountBeforeIncrease)*IncreaseCount, where IncreaseCount is set like BaseBotCount based off MinimumBotIncrease and MaximumBotIncrease or is simply set by FixedBotIncrease if desired.
TotalEnemies = BaseBotCount+BotIncrease
Bot count can still be adjusted by setting MinimumEnemies and MaximumEnemies mid-round without causing conflicts with this mod. The base can be kept or reset after a checkpoint defeat. As objectives are taken a separate botIncrease is stored that will be adjusted by the settings in this mod.
MUTATOR=COUNTFLEX
OR
MUTATOR=RANDFLEX
COUNTFLEX GAME.INI EXAMPLE:
[/Script/Insurgency.INSCoopMode] bBots=True MaxPlayersToScaleEnemyCount=4 SoloWaves=2
[/Script/Insurgency.INSCheckpointGameMode] MinimumEnemies=10 MaximumEnemies=40
[/Script/Insurgency.INSSurvivalGameMode] MinimumEnemies=10 MaximumEnemies=40
[/CountFlex/Mutators/CountFlex.CountFlex_C] ObjectiveCountBeforeIncreaseCheckpoint=1 FixedBotIncreaseCheckpoint=1 NumObjectivesWaitCheckpoint=2 MinimumBotIncreaseCheckpoint=1 MaximumBotIncreaseCheckpoint=2 bKeepBotCountOnRestartCheckpoint=True DelayCounterAttack=2
ObjectiveCountBeforeIncreaseSurvival=1 FixedBotIncreaseSurvival=1 NumObjectivesWaitSurvival=0 MinimumBotIncreaseSurvival=1 MaximumBotIncreaseSurvival=1
RANDFLEX GAME.INI EXAMPLE:
With 1 player this will randomly vary from 8 to 16 bots for each objective. With 4 players it'd vary from 20 to 28 bot. This will start adjusting bot counts from the beginning of the round and delay counterattacks for the first two objectives.
[/Script/Insurgency.INSCheckpointGameMode] MinimumEnemies=8 MaximumEnemies=20
[/CountFlex/Mutators/RandFlex.RandFlex_C] IncMin=0 IncMax=8 DelayCounterAttack=2 NumObjectivesWait=0
EXAMPLE USE:
open Citadel?Scenario=Scenario_Citadel_Checkpoint_Security?Mutators=CountFlex
Designed to be use along with my FortuneSoldier mod:
open Farmhouse?Scenario=Scenario_Farmhouse_Checkpoint_Security?Mutators=CountFlex,FortuneSoldier,Warlords
Ratings & reviews
Sign in to leave a rating or comment.