Re: Bot respawn delay problem -
15-05-2004
hmm no, some explanation is needed here. Unless StartFrame() which is continuously called for each video frame, ServerActivate() is only called ONCE, when the server is about to start - and when no client has joined yet. That's why you can't see the welcome message (since you aren't connected to the server yet when ServerActivate() executes).
The bots are automatically disconnected by the server on map change (since a map change is in fact a server shutdown and a server restart). There's nothing the bot code can do against it. What botman did, however, is that he added some code to make the bots that WERE on the server during the last map be automatically re-added in the new one. Hence it's not a bug but a feature. If you want to change this, comment out this code and make the bot re-read the configuration file (with the "addbot" commands in it) that makes the bots be added the first time, at each map change and not at the first start of the game ; i.e, to do this, put this code in ServerActivate().
RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
|