AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] StopBotsFromPlayingEngineer (https://forums.alliedmods.net/showthread.php?t=157212)

Nephyrin 05-17-2011 22:13

[TF2] StopBotsFromPlayingEngineer
 
1 Attachment(s)
StopBotsFromPlayingEngineer

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

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

:3

bluechester 05-17-2011 22:33

Re: [TF2] StopBotsFromPlayingEngineer
 
I love you.

Extreme_One 06-05-2011 06:20

Re: [TF2] StopBotsFromPlayingEngineer
 
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"

Natural 07-22-2011 11:16

Re: [TF2] StopBotsFromPlayingEngineer
 
Sry, this does not run for me. Got an error on compiling

DarthNinja 11-17-2011 21:40

Re: [TF2] StopBotsFromPlayingEngineer
 
Approved.
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).

n-o-l-o 05-26-2012 21:29

Re: [TF2] StopBotsFromPlayingEngineer
 
1 Attachment(s)
Hi!

If you want to use

Quote:

Originally Posted by Extreme_One (Post 1481647)
sm_sbfpe_class "random"

add the lines

Code:

            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)];
            }

between


Code:

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

Code:

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

One thing. Such output can happen:

Code:

[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.)

DreadedGhoul575 04-08-2016 17:20

Re: [TF2] StopBotsFromPlayingEngineer
 
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)

ScrapEngineer 10-25-2017 12:18

Re: [TF2] StopBotsFromPlayingEngineer
 
After the Jungle Inferno update, the plugin is broken.


All times are GMT -4. The time now is 13:08.

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