Author Topic: [REQUEST] Add bots if there are no players  (Read 904 times)

0 Members and 1 Guest are viewing this topic.

Offline Mastadi

  • Camper
  • ***
  • Posts: 263
  • What makes me a good demoman!?
[REQUEST] Add bots if there are no players
« on: February 16, 2008, 10:22:11 am »
Hello, since I have no idea how to script, I thought it would be good idea to ask you, skilled people of soldat forums do make a script for me ^_^

The script should add 3 bots if there are no players. If a player joins, then one bot should be kicked. If another player joins, one more bot should be kicked. If a player quits, and there's under 3 players in total (including bots) there should be a bot added, so there's never a situation where there's less than 3 players on the server

If I posted this in wrong forum, I apologize.

Offline rhide

  • Major
  • *
  • Posts: 60
  • Coffee-addict
    • Vrastar-Hai soldat clan
Re: [REQUEST] Add bots if there are no players
« Reply #1 on: February 22, 2008, 12:31:35 pm »
Have a look at the Soldat 1v1 script I released, it automatically adds a bot of there are <=1 human player on the server, it should be simple to add more bots (or maby more/less depending on the amount of people on the server)
Warning! Division by zero seriously injures yourself and the people in your surroundings.

Proud member of Vrastar-Hai:
http://www.guldheden.com/~erga050/vrastar-hai