Raised This Month: $53 Target: $400

[TF2] StopBotsFromPlayingEngineer

Post New Thread Reply   
Thread Tools Display Modes
SourceMod Donor
Join Date: Mar 2008
Plugin ID:
Plugin Version:
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    Plugin Description:
    Stops TFBots from choosing the Engineer class, fixing the crash bug currently plaguing servers with bots.
    Old 05-17-2011 , 22:13   [TF2] StopBotsFromPlayingEngineer
    Reply With Quote #1


    Stops bots from playing the engineer class. This fixes the current (as of May 17, 2011) crash from having TFBots enabled

    • sm_sbfpe_class - The class which bots who try to spawn as engineer should end up as instead. Default medic.

    Attached Files
    File Type: sp Get Plugin or Get Source (StopBotsFromPlayingEngineer.sp - 1356 views - 2.1 KB)

    Last edited by Nephyrin; 05-17-2011 at 22:40. Reason: grammar
    Nephyrin is offline
    AlliedModders Donor
    Join Date: Nov 2008
    Old 05-17-2011 , 22:33   Re: [TF2] StopBotsFromPlayingEngineer
    Reply With Quote #2

    I love you.
    bluechester is offline
    Veteran Member
    Join Date: Nov 2006
    Old 06-05-2011 , 06:20   Re: [TF2] StopBotsFromPlayingEngineer
    Reply With Quote #3

    Great plugin.

    Couple of suggestions:

    Would be nice if instead of changing all engie's to one certain class it randomly selected one of the remaining classes.

    Like this:

    sm_sbfpe_class "random"

    Also how about giving people the option to list a few choices of class instead of just one:

    Like this:

    sm_sbfpe_class "soldier,sniper,spy"
    Extreme_One is offline
    New Member
    Join Date: Oct 2009
    Old 07-22-2011 , 11:16   Re: [TF2] StopBotsFromPlayingEngineer
    Reply With Quote #4

    Sry, this does not run for me. Got an error on compiling
    Natural is offline
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-17-2011 , 21:40   Re: [TF2] StopBotsFromPlayingEngineer
    Reply With Quote #5

    Although I think the crash has been fixed, this can still be used to prevent bots from playing engineer.
    Might be useful if this plugin was updated to restrict other classes as well (maybe also a setting to allow x number of a class rather then just a hard lock).
    DarthNinja is offline
    Join Date: Sep 2004
    Location: Germany
    Old 05-26-2012 , 21:29   Re: [TF2] StopBotsFromPlayingEngineer
    Reply With Quote #6


    If you want to use

    Originally Posted by Extreme_One View Post
    sm_sbfpe_class "random"
    add the lines

                if (StrEqual(alternateclass, "random", false))
                    static const String:klassen[9][16] = {"scout","soldier","pyro","demoman","heavyweapons","engineer","medic","sniper","spy"};
                    alternateclass = klassen[GetRandomInt(0, 8)];

                GetConVarString(sm_sbfpe_class, alternateclass, sizeof(alternateclass));

                FakeClientCommandEx(client, "joinclass %s", alternateclass);

    One thing. Such output can happen:

    [StopBotsFromPlayingEngineer] Bot tried to go engineer, forcing engineer instead
    But I like it! One and another engi could not be wrong. :-) (Otherwise you can change "engineer" in the klassen string array to "medic" or whatever you like.)
    Attached Files
    File Type: sp Get Plugin or Get Source (less_engi_bots.sp - 537 views - 2.4 KB)

    Last edited by n-o-l-o; 05-26-2012 at 21:43.
    n-o-l-o is offline
    Senior Member
    Join Date: Apr 2016
    Old 04-08-2016 , 17:20   Re: [TF2] StopBotsFromPlayingEngineer
    Reply With Quote #7

    This works, but the bots on the red team all turn into medic lol and some on blue as well. (Mainly because the first bot on red is always engineer)
    DreadedGhoul575 is offline
    Join Date: Oct 2016
    Location: Somewhere in Buckinghams
    Old 10-25-2017 , 12:18   Re: [TF2] StopBotsFromPlayingEngineer
    Reply With Quote #8

    After the Jungle Inferno update, the plugin is broken.
    A semi-average TF2 Engineer main, attempting to make contact with the outer world and befriend it... Even though sometimes that doesn't go well.

    Oh yeah, I don't know how make plugins.
    ScrapEngineer is offline

    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 13:45.

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