Hi, I share here some tweaks I wrote to others in private messages
This is the config I use for bots:
On ".unvanquished/config/server.cfg":
Code: Select all
set g_mapConfigs "map"
On ".unvanquished/config/map/default.cfg":
Code: Select all
bot del all
delay 1000 exec addbots.cfg
On ".unvanquished/config/addbots.cfg":
Code: Select all
bot names clear
bot names humans "^9[bot]^4 Clodomir" "^9[bot]^4 Alaric" "^9[bot]^4 Baudry" "^9[bot]^4 Adelin" "^9[bot]^4 Ferdinand" "^9[bot]^4 Brieux" "^9[bot]^4 Audran" "^9[bot]^4 Alistair" "^9[bot]^4 Renan" "^9[bot]^4 Malo"
bot names aliens "^9[bot]^1 Nolwen" "^9[bot]^1 Uriel" "^9[bot]^1 Morgan" "^9[bot]^1 Lena" "^9[bot]^1 Soizic" "^9[bot]^1 Aroa" "^9[bot]^1 Belem" "^9[bot]^1 Itsaso" "^9[bot]^1 Muxika" "^9[bot]^1 Urrotz"
bot add * humans
bot add * humans
bot add * humans
bot add * aliens
bot add * aliens
bot add * aliens
How it works:
-
"server.cfg" defines that map config is on "map" subdirectory.
-
"map/default.cfg" is the default config file for every map, loaded each map starts (yes you can have specific config file per map).
-
This default config kicks all bots and calls another config file that will spawn bots.
-
I use the delay trick to workaround a bug while a bot takes too long time to die (so for some time there is both dying bot and new bot alive, so this workaround allows to have "sv_maxclients" < 2 * bot count). And I kick and spawn bots every map start so names changes.
-
"bot names" code is to define some name list, so "bot add *" command will create a bot with a random one from this list.
You don't have to redefine names each time, but this example shows you how to redefine names, so you can build different scripts to redefine different names for the map or layout you want (layout management is not described here). Also, instead of delaying an addbot.cfg script, you can just delay each bot add commands in the per map config file or in the default.cfg config file.
Feel free to use names you want, as you see I used blue ("4") for humans and red ("1") for aliens, with some ancient germanic-ish and celtic french male names for humans, and some ancient basque and celtic female names for aliens.
By writing "[bot]" (with minuscule letters), it will show a bot icon.
If you look for that too, this is how I wrote the rotation list and load the first map:
On ".unvanquished/config/server.cfg":
Code: Select all
set g_initialMapRotation "rotation1"
map forlorn
On ".unvanquished/game/maprotation.cfg":
Code: Select all
rotation1 {
chasm // first “nextmap”, so this is the second map loaded after the one loaded by the server.cfg script
vega
station15
antares
perseus
plat23
spacetracks
parpax
forlorn // first loaded by server.cfg, so the last here
}
On last more thing, you can launch a server with a specific script, with "+exec server.cfg" for the current example.
If "server.cfg" file is in "config/" directory, do not type "+exec config/server.cfg" but "+exec server.cfg", exec reads files from "config/" by default.