Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: VirtualTT on June 30, 2010, 01:25:55 pm

Title: BotKeeper
Post by: VirtualTT on June 30, 2010, 01:25:55 pm
Script Name: tws_BotKeeper
Script Version: 1.1
Script Description: Adds/removes bots to maintain specified minimum number of players on the server. When human player joins game one bot from his team will be kicked and then added back when human player leaves the game/changes team. These bots will rejoin immediately if kicked by players. All gamemodes and players limit changes are respected. Does not affect bots-spectators. Can be configured through ini and/or set of commands. Also provides /kickbots command.
Original Author(s): VirtualTT
Server Version: 2.7.2
Core Version: 3.0

I saw a request for this kind of script...
Title: Re: BotKeeper
Post by: Swompie on June 30, 2010, 02:13:13 pm
These slashes are very annoying in my eyes ;/

Even tho I never knew 'bout this stuff: {$IFDEF ..} {$ENDIF}
Why you don't use normal if .. then's? Does the compiler just ignore this stuff when {$DEFINE DEBUG} is commented out?

Gj tho.
Title: Re: BotKeeper
Post by: VirtualTT on June 30, 2010, 02:21:20 pm
Using compiler directives is the right way to debug scripts. And basically yes, if {$DEFINE DEBUG} directive is commented all {$IFDEF DEBUG}...{$ENDIF} blocks are ignored so no useless debug code will be executed in normal mode.
Title: Re: BotKeeper
Post by: Swompie on June 30, 2010, 02:29:51 pm
Mhh, very nice to know, thx alot  ;)
Title: Re: BotKeeper
Post by: VirtualTT on June 30, 2010, 03:36:23 pm
Almost forgot - added list of commands (http://forums.soldat.pl/index.php?action=dlattach;topic=38501.0;attach=25375) for quick access (http://img685.imageshack.us/img685/851/20100701003712.png)/autocompletion (http://img337.imageshack.us/img337/6660/20100701004304.png) in Baka Admin ~ comfort admin client should be comfort. ^^

From: July 01, 2010, 01:15:01 pm
Updated to v1.1 - fixed some minor things (/setbotname and /setminplayers didn't work properly).
Title: Re: BotKeeper
Post by: soldat-game on July 27, 2018, 06:46:14 am
Fix for new script core for SoNNy