Predefine bots on server

4 replies [Last post]
=High-Energy=
JoeriBaas's picture
Offline
Joined: Dec 2008
Posts:

Is there a way to define wich bot is put in the arena when not enough players are present?

Like argus+, lakerbot and mr. gauntlet?

EVOL.IZNOGOUD
Iznogoud's picture
Offline
Joined: Mar 2004
Posts:
Predefine bots on server

Yes there is

Assume u want the code ?
(plz be patient)

Bättre pissa i stuprännan än stupa i pissrännan !

=High-Energy=
JoeriBaas's picture
Offline
Joined: Dec 2008
Posts:
Predefine bots on server

ofcource I want te code

lagstard
Developer (retired)
rabusmar's picture
Offline
Joined: Jan 2008
Posts:
Predefine bots on server

You have to write an script, the format is the same as the bots.txt file included in the pak0.pk3 in the baseq3 directory, which is also the same format as the .bot files for individual bots.

Then, you have to set the cvar g_botsFile to the path of that script file. In that file you have to include all the bots that you want the server to load, even those included on the .bot files because these files wont be loaded if the cvar is set.

PD.: Thanks for the question, otherwise i would have not researched about it and i would not know how to do it Tongue

Edit: The g_botsList cvar must be set on startup.

Había una vez un barco chiquito...

=High-Energy=
JoeriBaas's picture
Offline
Joined: Dec 2008
Posts:
Predefine bots on server

Waspbeast, you're the man. I wonder how you learnt that much. Thanks for the explanation! I admire your love 4 the quake;)