Jump to content

Omnibot


R!ZLA

Recommended Posts

Hi everyone,

 

Devil said to ask on forums so hewre i am :rolleyes:

 

I wondered if any of you know how to make a command (for shrubbot) to put bots spec?

 

[command]

command = bots

exec = put bot spectator [1] [2] [3]

desc = Hopefully puts bots to spec

levels = 9 10

 

 

I tried something like this but :mad didnt work.

 

Also if possible to add varible of how many bots, eg 5 to go spec 2, 1, 10. What ever you want?

 

If any of you know away that this can be done thanks :yahoo

Link to comment
Share on other sites

why put bot in spec? just do better thing disable them when you want them out of server

 

cuz when you put bots in spec and if player leave the server, a new bot connect to his place so better disable bots in this case

 

from noquarter docs you can make this shrubbot commands (works also for etpub and nitmod) so from console with level 9 or 10 do !maxbot 0 (no more bots)... if you want them back do !maxbot 12 (just an example)

 

[command]
command = maxbot 
exec = bot maxbots [1] 
desc = Sets maximum count of bots in game.
levels = 9 10

 

or you can have more commands

 

[command]
command = minbot 
exec = bot minbots [1] 
desc = Sets minimum count of bots in game.
levels = 9 10

[command]
command = kickallbots
exec = bot minbots 0; bot maxbots 0; bot kickall 
desc = Cleans server from bots.
levels = 9 10 

Link to comment
Share on other sites

It is for having a low amount so have for example bots 4v4 and 10 spec

 

once players join they go.

Thats pretty much what Medic said :P Its better to have the bots leave instead of go spec. Every time a player disconnects, a new bots connects and starts playing, without cluttering the specs and filling server with bots in spec.

Link to comment
Share on other sites

kk think i worded this a bit wrong :(

 

if there say 20 bots on server

 

then 10 payers come and 10 bots.

 

instead of having these bots playing i would like them to all go spec so ppl can play without them.

 

with a cmd so an admin could do it

 

Might be useful?

Link to comment
Share on other sites

Already told you on Xfire, but i'm gonna post it here so it can help more people.

 

I just wrote a new function for omnibot, that moves them spec by typing only one command in rcon.

 

There are 2 files to edit.

 

Add the following lines of code in the specified files :

 

omnibot/global_scripts/utilities.gm :

	Util.MoveSpec = function()
{
	foreach ( id and bot in BotTable )
	{
			bot.ExecCommand( "team s" );
	}
};

 

omnibot/global_scripts/commands.gm :

Commands["movespec"] = 
{
Func = function()
{
	Util.MoveSpec();
},

Help =
{
	"Move all the bots spec",
},
};

 

Then save the files, restart the map and try /rcon *pass* bot movespec

 

All the bots will move spec :D (Tested with OB0.71, but I think it will certainly work with OB0.66)

 

Then if you're running ETPub NQ or N!tmod, just add an entry like this in your shrubbot config file :

 

[command]
command = specbots
exec    = bot movespec
desc    = Moves all the bots to spectator
levels  = X X X X X

 

Hope it's gonna be useful :D:yahoo

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.