Turn off Respawning?

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

Moderator: Moderators

Post Reply
Contex
Lance Corporal
Posts: 13
Joined: Thu Aug 07, 2008 11:42 pm
Location: Spain

Turn off Respawning?

Post by Contex »

Hey!

I've just installed the bots on my Palermo running server.
And I've a little problem over here, I'm running the gametype Round Based.
And this is what I want to fix:

- When a bot get's killed, it stays dead till the next round.
- When a player get's killed by a bot, he stays dead till the next round.

Anyone got a question how to get this to work?

Thanks alot!
Contex
1lynx1
Warrant Officer
Posts: 141
Joined: Sun Jun 29, 2008 9:07 am
Location: United Kingdom
Contact:

i dont really know

Post by 1lynx1 »

i dont really know contex but maybe it is in the gametype config ? ... :S
roundbased.cfg i think....

Anyway, Lynx
Contex
Lance Corporal
Posts: 13
Joined: Thu Aug 07, 2008 11:42 pm
Location: Spain

Post by Contex »

nope :/

Wierd, makes no sense. It works without the BOTS, but with them they just keep respawning.
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

It should actually work. But you tested this alone haven't you?
If yes then that's the reason why it won't work. If no then you did something wrong lol.

Now if you want to see it work without having 2 humans, one in each team on your server (that's the condition to 'start the round' and when respawning is turned off). Then open your mapscript. At the bottom find this piece:
roundbasedthread:

// Can specify different scoreboard messages for round based games here.
level waitTill prespawn

level waittill spawn

// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

level waittill roundstart

end
Now apply the changes in red:
roundbasedthread:

// Can specify different scoreboard messages for round based games here.
level waitTill prespawn

level waittill spawn

// set the parameters for this round based match
level.dmrespawning = 0 // This turns respawning for players and for bots off
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw

//level waittill roundstart

end
Otherwise it should work by default.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Contex
Lance Corporal
Posts: 13
Joined: Thu Aug 07, 2008 11:42 pm
Location: Spain

Post by Contex »

Acctually I have it running on my server, and no it doesnt work.

Also i tried to set the dmrespawning to 0, but than no one could join than game cuz they would have to wait till the round is over, and that never happend. Any suggestion ?
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Yes, that is what should happen; no one can spawn when the round has started. That's why roundbased is not popular, though I might be one of the few who do like it a bit.

But when you had it running on your server, were there at least 1 human (lol I sound like a robot) in the allied as well as the axis team (which makes the round 'start') or not? Because respawning only gets disabled once the round has started.

If you want the respawning disabled at the start, comment level waittill roundstart out in your mapscript as shown in the script above. I tested it offline, so it should work online.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Post Reply