BOT respawning

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

BOT respawning

Post 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?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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 )?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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:.
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Well the problem is the game ends when the players have died, regardless of the number of bots still alive.
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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....
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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.
Image
Magus CPD OZZY
Private
Posts: 8
Joined: Fri Mar 21, 2003 12:47 pm

hehehe

Post 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....
Post Reply