View Single Post
Author Message
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 05-26-2016 , 14:41   [TF2] Map Bot Fix (19.08.2016)
Reply With Quote #1

Description:
This plugin checks whether the current map is incompatible with bots and limits their classes to snipers, spies and engineers. Maps like plr_ dont have proper bot support so only 3 classes work on them (other classes just stand in spawn).

How does it work?
If it detects a map, that isnt one of the supported, it changes cvar tf_bot_force_class to one of the randomly selected classes - sniper/spy/engineer. The cvar is randomly changed each player spawn.
On some maps, it disables engies as well.

Does it do anything else?
Yes, it also removes bows/crossbows on cp_degrootkeep.

Cvars:
PHP Code:
sm_mbf_enabled 1                  //enable/disable the plugin. default - 1
sm_mbf_removefirstslot 0        //enable/disable removing the first weapon(the bow) on degrootkeep. default - 0
sm_mbf_version                     //version cvar - dont touch 
Changelog:


Known issues:
- dont use plugins that use/change the cvar tf_bot_force_class for obvious reasons
- if engies arent getting killed(they might be building sentries right in front of spawn), you'll end up with a team full of engies -> thats why I decreased the chances of engies being picked as the next class
Attached Files
File Type: sp Get Plugin or Get Source (MapBotFix.sp - 1845 views - 4.4 KB)
__________________

Last edited by luki1412; 08-19-2016 at 16:51. Reason: update
luki1412 is offline