Raised This Month: $ Target: $400
 0% 

TF2 MvM Enemy Bots limit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
talesrune
Junior Member
Join Date: Mar 2014
Old 01-14-2015 , 05:03   TF2 MvM Enemy Bots limit
Reply With Quote #1

Hi all,

I have been looking for a plugin that limits the number of MvM bots spawned during the wave.
E.g There will be a max. of 20 bots spawned during a wave. Using this Mvm bots limit, the max. number of mvm bots spawned will be reduced to maybe 15 bots instead of 20. This does not affect the .pop file, only the number of alive mvm bots is reduced. If there is a plugin that does this already please tell me. Or anyone who like to help is appreciated. Thanks.
talesrune is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-14-2015 , 14:50   Re: TF2 MvM Enemy Bots limit
Reply With Quote #2

I'd recommend using specially created population files instead.

MvM population files tend to depend on the 22 bot limit... they're usually written in such as way that groups of bots spawn together (sometimes with a delay between spawns), then once a specific bot group is dead, another group spawns.

Large bot groups have a limit as to how many spawn at once. On Manhattan's Empire Escalation for example, you tend to have this limit set to 12 or less per group, but multiple groups of enemies will be out at once.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 01-15-2015 , 02:38   Re: TF2 MvM Enemy Bots limit
Reply With Quote #3

You can try setting the maxplayers command line parameter in the server launch to be < 28 and see if that works. (Default recommended is 32.)

So for 15 bots and 6 RED players, set maxplayers to 21, and see if it caps the BLU slots. It should take off slots from the robots (BLU side). I never tried this (since I have no reason to), but I do remember people saying that 24P servers set on MvM can cause robots to not spawn due to insufficient player slots.

Like Ross just mentioned (except more nicely), this is an awful idea and you are better off just writing a population file that keeps the number of robots alive at once low (using MaxActive & SpawnCount in the pop file). It won't hard-cap it to 15 or 20 unless you code the file cleverly, but it's close to ideal solution.

FYI, mvm_bigrock_advanced1 spawns 22 robots at once on wave 6 (the crit spam wave), so your server would make even ordinary Valve missions break since the server will not spawn any of the 22 robots (SpawnCount > total bot slots in the server = no bots spawn and mission freezes).
Potato Uno is offline
talesrune
Junior Member
Join Date: Mar 2014
Old 01-15-2015 , 07:58   Re: TF2 MvM Enemy Bots limit
Reply With Quote #4

Quote:
Originally Posted by Powerlord View Post
I'd recommend using specially created population files instead.

MvM population files tend to depend on the 22 bot limit... they're usually written in such as way that groups of bots spawn together (sometimes with a delay between spawns), then once a specific bot group is dead, another group spawns.

Large bot groups have a limit as to how many spawn at once. On Manhattan's Empire Escalation for example, you tend to have this limit set to 12 or less per group, but multiple groups of enemies will be out at once.
Quote:
Originally Posted by Potato Uno View Post
You can try setting the maxplayers command line parameter in the server launch to be < 28 and see if that works. (Default recommended is 32.)

So for 15 bots and 6 RED players, set maxplayers to 21, and see if it caps the BLU slots. It should take off slots from the robots (BLU side). I never tried this (since I have no reason to), but I do remember people saying that 24P servers set on MvM can cause robots to not spawn due to insufficient player slots.

Like Ross just mentioned (except more nicely), this is an awful idea and you are better off just writing a population file that keeps the number of robots alive at once low (using MaxActive & SpawnCount in the pop file). It won't hard-cap it to 15 or 20 unless you code the file cleverly, but it's close to ideal solution.

FYI, mvm_bigrock_advanced1 spawns 22 robots at once on wave 6 (the crit spam wave), so your server would make even ordinary Valve missions break since the server will not spawn any of the 22 robots (SpawnCount > total bot slots in the server = no bots spawn and mission freezes).
I see.. Thanks PowerLord and Potato Uno for your replies!
talesrune is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-15-2015 , 09:43   Re: TF2 MvM Enemy Bots limit
Reply With Quote #5

Quote:
Originally Posted by Potato Uno View Post
You can try setting the maxplayers command line parameter in the server launch to be < 28 and see if that works. (Default recommended is 32.)
It won't work. The server will start up, but as soon as you load an MvM map, this error will be printed to the server console:
Code:
You must set maxplayers to 32 to host Mann vs. Machine
and then the server will exit.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-15-2015 , 12:05   Re: TF2 MvM Enemy Bots limit
Reply With Quote #6

There is that extension that can change player count, but why do you need this?
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
talesrune
Junior Member
Join Date: Mar 2014
Old 01-15-2015 , 23:52   Re: TF2 MvM Enemy Bots limit
Reply With Quote #7

Quote:
Originally Posted by friagram View Post
There is that extension that can change player count, but why do you need this?
Hey friagram, because I would like to limit the bots to make the difficulty abit "easier" (less bots spawned with no change to the .pop) when there are less red players in MvM while waiting for more players to join. Can you give me the link of the extension that can change player count? Thanks a lot.
talesrune is offline
SPYderman
Senior Member
Join Date: Aug 2013
Old 01-17-2015 , 18:41   Re: TF2 MvM Enemy Bots limit
Reply With Quote #8

This doesn't decrease the maximum amount of bots, but it does change health/damage based on number of red players.
https://forums.alliedmods.net/showthread.php?p=2200397
SPYderman is offline
talesrune
Junior Member
Join Date: Mar 2014
Old 01-19-2015 , 07:42   Re: TF2 MvM Enemy Bots limit
Reply With Quote #9

Quote:
Originally Posted by SPYderman View Post
This doesn't decrease the maximum amount of bots, but it does change health/damage based on number of red players.
https://forums.alliedmods.net/showthread.php?p=2200397
Thanks SPYderman for the plugin! Btw, is it possible to Hook the clients just before they are spawned in SM? Because I would like to create a small respawn time (delay of around 10 seconds) for the mvm bots.
talesrune is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode