what is map called can you find it here: http://medor.no-ip.org/index.php?dir=Maps/
Is there no command to kill or set bot's health to 0? We can use "set playerpawn health 100" for player's health. Is there nothing like this for bots?
- Posts: 1951
- Joined: Sat Sep 17, 2011 4:32 pm
- Personal rank: Dame. Vandora
- Location: TN, USA
Depending on train indeed here you might have issues but... paths through train can be removed/adjusted. You don't have to face headaches, point map and ask some other Bot Support in desired thread. Bot has nothing to do with crapped map... poor bot, he must die all time...
Some time ago when I was playing around with the bots I inserted a crude workaround for this scenario. I believe it went something like this: a timer would fire every 15 seconds (an entirely arbitrary selection) and test the bot's location versus it's last saved location (with a small amount of leeway to allow for the "confused bot" toing-and-froing that goes on when they get caught in a logic trap). If the bot had not moved on from it's last "saved" location, it would call the Pawn.PlayerTimeOut() function on itself, which caused it to "suicide".
So I'm thinking a small mutator that keeps track of the bots, and adds such a timer for each in-game bot, then you wouldn't have to worry about doing this yourself.
Edit: caveat - in my use of this approach, the workaround was only active when the bots were following "attack" orders (because they don't move much when they're defending, and to have it active under those circumstances would cause a gibby mess)
I'll stick to fix map instead of loading a mutator in each server with Bots and running trash maps.
This mutator is pieced together from bits of other projects with lots of copying and pasting and only minimal testing. It seems to work, but there are very, very likely to be bugs, so buyer beware. Readme included.
http://www.mediafire.com/file/dtl9z45q4 ... lebots.zip
Edit: by the way, it doesn't work as I described in my previous post, I remembered incorrectly. It just checks whether each bot is stationary once every 15 seconds. Maybe what I suggested previously would work more consistently, but try this first.
"Bot" is the class name. "Set" command works only with class names, not with actor names. Problem is that need to know coordinates (we don't know the map name), depending on the map "0" will give needed result as well...
That sounds like it might be preferable, they could be relocated to the player's location, perhaps.
Also another solution - write own mutator and use it for kill bots if this is server, not local play.