PDA

View Full Version : [2k3]Bots phear?


Doc_EDo
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.

Sir_Brizz
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.

Doc_EDo
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.

Mychaeel
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.

Doc_EDo
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. :(

Mychaeel
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.

A_Rimmerlister
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' ?

Doc_EDo
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...

jb
4th Aug 2003, 01:10 PM
Well did you try what they did in the AvoidMarker code?

AIController(P.Controller).Startle(self);

Maybe????

Doc_EDo
4th Aug 2003, 01:26 PM
Acutlally I'm just looking at that part, but it says:
// FIXME - need FindPathAwayFrom()

jb
4th Aug 2003, 03:26 PM
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.

Sir_Brizz
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.