Raised This Month: $12 Target: $400
 3% 

[TF2] Map Bot Fix (19.08.2016)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Plugin ID:
5208
Plugin Version:
1.85
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Limits tf2 bots to snipers, spies and engineers on incompatible maps.
    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 - 1819 views - 4.4 KB)
    __________________

    Last edited by luki1412; 08-19-2016 at 16:51. Reason: update
    luki1412 is offline
    Pinsplash
    New Member
    Join Date: Nov 2016
    Location: U.S.
    Old 11-06-2016 , 11:33   Re: [TF2] Map Bot Fix (19.08.2016)
    Reply With Quote #2

    I noticed that maps without bot support don't actually have any nav meshes. You should definitely put in something to check if a map has a nav mesh and run nav_generate if it's needed.
    (after a little fiddling i realised you can do this with rcon nav_generate easy :p)
    __________________

    Last edited by Pinsplash; 11-06-2016 at 12:31. Reason: update
    Pinsplash is offline
    Send a message via Skype™ to Pinsplash
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 11-06-2016 , 14:50   Re: [TF2] Map Bot Fix (19.08.2016)
    Reply With Quote #3

    Quote:
    Originally Posted by Pinsplash View Post
    I noticed that maps without bot support don't actually have any nav meshes. You should definitely put in something to check if a map has a nav mesh and run nav_generate if it's needed.
    (after a little fiddling i realised you can do this with rcon nav_generate easy :p)
    Yes, but there are plugins for nav generation already.
    __________________
    luki1412 is offline
    Angel54689
    Junior Member
    Join Date: Nov 2016
    Old 11-29-2016 , 08:32   Re: [TF2] Map Bot Fix (19.08.2016)
    Reply With Quote #4

    How does it check which map supports bots, which don't?
    Angel54689 is offline
    nosoop
    Veteran Member
    Join Date: Aug 2014
    Old 11-29-2016 , 09:09   Re: [TF2] Map Bot Fix (19.08.2016)
    Reply With Quote #5

    Quote:
    Originally Posted by Angel54689 View Post
    How does it check which map supports bots, which don't?
    The MapCheck() function in the plugin checks if the following are in the map name:
    1. cp_, pl_, koth_, and ctf_ disables the class restrictions.
    2. sd_ and pd_ restricts the bot classes to Sniper and Spy (each having a 50% chance).
    3. Maps that do not contain any of the above restricts bot classes to Sniper (45%), Spy (45%), and Engineer (10%).
    __________________
    I do TF2, TF2 servers, and TF2 plugins.
    I don't do DMs over Discord -- PM me on the forums regarding inquiries.
    AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
    nosoop is offline
    Reply


    Thread Tools
    Display Modes

    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 07:37.


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