Author Topic: BotKeeper  (Read 4201 times)

0 Members and 1 Guest are viewing this topic.

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
BotKeeper
« 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...
« Last Edit: July 01, 2010, 01:13:33 pm by VirtualTT »

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: BotKeeper
« Reply #1 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.

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: BotKeeper
« Reply #2 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.

Offline Swompie

  • Camper
  • ***
  • Posts: 390
Re: BotKeeper
« Reply #3 on: June 30, 2010, 02:29:51 pm »
Mhh, very nice to know, thx alot  ;)

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: BotKeeper
« Reply #4 on: June 30, 2010, 03:36:23 pm »
Almost forgot - added list of commands for quick access/autocompletion 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).
« Last Edit: July 01, 2010, 01:15:01 pm by VirtualTT »

Offline soldat-game

  • Camper
  • ***
  • Posts: 407
Re: BotKeeper
« Reply #5 on: July 27, 2018, 06:46:14 am »
Fix for new script core for SoNNy