Page 1 of 1

BOT respawning

Posted: Wed Mar 05, 2003 1:11 pm
by Bjarne BZR
Ey!

My BOT's respawn, thus ignoring the nice level.dmrespawning = 0 line in my .scr file...

I want to start my objective map with, say, 5 BOTS... and I want them to stay dead when killed ( no love for the undead :twisted: ).

is there a level.jv_bot_respawning = 0 or something to use?

Posted: Wed Mar 05, 2003 3:14 pm
by jv_map
No, the bots always respawn. This is because otherwise the game would end when all players of one team died, regardless of the number of bots alive.

Posted: Wed Mar 05, 2003 4:45 pm
by Bjarne BZR
Just so I get this straight... if they dont respawn the game will end when the last HUMAN player dies in a team... even if there are BOTs remaining in the team?

Does this mean that the BOTs will carry on the match if all HUMAN players die ( if level.dmrespawning is set to 0 )?

Posted: Wed Mar 05, 2003 5:50 pm
by jv_map
Uh well maybe I wasn't exactly clear :oops:.

It's the other way around. When level.dmrespawning is set to 1, players respawn and the match doesn't end when all players 'die'. If you set it to 0, the game ends when all players of one team are dead. The game doesn't recognize bots as players. This means you probably have to enable player respawning. The script respawns the bots automatically as well, although it would theoretically be possible to respawn players only. This function is just not implemented :oops:.

Posted: Wed Mar 05, 2003 7:59 pm
by nuggets
i've probably read all this wrong and gonna b wasting every1's time, but...

would it not b possible 2 turn off respawning but have a bot on ur team that is "out of the way" somewhere in a remote bomb proof location, if he doesn't die then he'll prevent the game from coming2 a halt when the others die. :D

Posted: Wed Mar 05, 2003 9:44 pm
by jv_map
Well the problem is the game ends when the players have died, regardless of the number of bots still alive.

Posted: Thu Mar 06, 2003 1:14 am
by Bjarne BZR
OK jv_map...
Now I understand. But Ive seen that U can add bots manually... is it possible to start with 0 BOTs:

Code: Select all

level.alliesbots = 0
level.axisbots = 0
... and then spawn the BOTs U want in the script... or will that insert new respawning bots?

And about nuggets idea... I guess U could spawn one BOT and lock him in ( or just not give him pathnodes in alla areas ), then check for his death to make him an MP hostage objective....

Posted: Thu Mar 06, 2003 7:23 am
by jv_map
Yes you can insert all bots from your map's script only. However, when using the spawnhandler_default.scr file to insert a bot, he will respawn. However you need to use this script, otherwise the bot isn't added to the level.bots array and thus ignored by the main script.

hehehe

Posted: Fri Mar 21, 2003 12:56 pm
by Magus CPD OZZY
I have the same problem than you so i have made to my script to every time that the bot died he get kicked from the server....
the only problem of that is because i have to make the bot waittill death so he dont walk if he dont have someone to follow....

its sucks....