View Full Version : [2k3]Bots phear?
3rd Aug 2003, 09:30 PM
How do I make bots fear other bots/players and run away/retreat?
I'm trying hard but it's still doesnt work.
3rd Aug 2003, 09:57 PM
Have you tried using the FearThisSpot function? Just set it to Pawn.Location of the person they are supposed to avoid and it should work.
4th Aug 2003, 01:53 AM
Isn't function FearThisSpot(AvoidMarker aSpot) only called when an AvoidMarker is found on the map? I need to make bots fear pawns not AvoidMarkers.
4th Aug 2003, 02:57 AM
For Jailbreak's "evasive" team tactics I implemented something in SquadAI which searches the path network outward from the bot's current MoveTarget and tries to find the closest NavigationPoint that's out of the enemy's view; then makes the bot move there.
That works well in test runs, but it has still yet to be proven in an actual in-game situation with lots of players. I experimented with FearSpots and the like before to little avail.
4th Aug 2003, 03:43 AM
Sounds too complicated.
There should be an easier way to do this. It was easy in UT.
And here it sucks with SquadAI and crap. :(
4th Aug 2003, 04:02 AM
Why do you think using SquadAI "sucks"?
AttitudeToPlayer in class Pawn doesn't exist anymore, but basically all it did was putting the Pawn in the "Retreating" state. What's really missing is a native FindPathAwayFrom function as it is hinted in a comment in class Bot, but until that exists I just devised my own.
4th Aug 2003, 12:42 PM
I think Squad- & team-'AI' were one of the best things to happen to the bot-code. In theory it could have been used to create 'personalities' and alternate tactics for teams in the same game (...)
This 'run-away-to' type of function sounds like something that could be useful. It'd definitely be nice if a bot that's low on health at least tried to avoid enemies instead of just 'praying' it doesn't run into any on its way to the health-pickups.
Is there any way to turn this into a mutator like Mysterial did with his 'superbots' ?
4th Aug 2003, 12:51 PM
I have a gametype where bots have no weapons except shield and TL if they arent "the seeker" (Hide and Seek mod).
So they must try to avoid the seeker at any cost since the seeker player/bot has more speed and weapons.
Also the same code will be needed for more mods where ppl want to have peacefull/fearfull pawns like birds rabbits etc...
Well did you try what they did in the AvoidMarker code?
4th Aug 2003, 01:26 PM
Acutlally I'm just looking at that part, but it says:
// FIXME - need FindPathAwayFrom()
Try it. As well as tell the bots to go to B.GotoState('Retreating'). I think the bots will stop and back away a bit. Not the best, but not THAT bad. They wont run away. For that you will need to write your own FindPathAwayFrom() like mych did.
4th Aug 2003, 11:25 PM
Arrrgggghhhh that sounds strangely similar to my mod...and I have to start all over on it again... /me kills IBM people and steals their money to buy quality WD hard drives.
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.