News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 3rd Aug 2003, 08:30 PM   #1
Doc_EDo
LEFT
 
Join Date: Jan. 10th, 2002
Posts: 755
blah blah blah... [2k3]Bots fear?

How do I make bots fear other bots/players and run away/retreat?
I'm trying hard but it's still doesnt work.
__________________

Last edited by Doc_EDo; 4th Aug 2003 at 12:42 AM.
Doc_EDo is offline   Reply With Quote
Old 3rd Aug 2003, 08:57 PM   #2
Sir_Brizz
More Than Just Mad Skill
 
Sir_Brizz's Avatar
 
Join Date: Feb. 3rd, 2000
Location: >:3
Posts: 25,659
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.
__________________
64 65 61 74 68 62 6f 6f 67 65 72 73 20 6d 6f 74 68 65 72 20 6f 66 20 63 6f 75 72 73 65

Liandri Archives - A veritable smorgasbord of information about the Unreal series
If Titanic taught me anything, it's to never let go until you're a frozen corpse staring hopelessly into a barren horizon.
Sir_Brizz is offline   Reply With Quote
Old 4th Aug 2003, 12:53 AM   #3
Doc_EDo
LEFT
 
Join Date: Jan. 10th, 2002
Posts: 755
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.
__________________
Doc_EDo is offline   Reply With Quote
Old 4th Aug 2003, 01:57 AM   #4
Mychaeel
 
Join Date: Oct. 3rd, 2001
Location: Frankfurt/Main, Germany
Posts: 3,829
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.
Mychaeel is offline   Reply With Quote
Old 4th Aug 2003, 02:43 AM   #5
Doc_EDo
LEFT
 
Join Date: Jan. 10th, 2002
Posts: 755
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.
__________________
Doc_EDo is offline   Reply With Quote
Old 4th Aug 2003, 03:02 AM   #6
Mychaeel
 
Join Date: Oct. 3rd, 2001
Location: Frankfurt/Main, Germany
Posts: 3,829
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.

Last edited by Mychaeel; 4th Aug 2003 at 03:31 AM.
Mychaeel is offline   Reply With Quote
Old 4th Aug 2003, 11:42 AM   #7
A_Rimmerlister
JaFO(JBE|JBM)
 
A_Rimmerlister's Avatar
 
Join Date: Aug. 3rd, 2001
Location: Eindhoven, The Netherlands
Posts: 2,925
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' ?
__________________
- Festina Lente - Fac Omniae Mente -
A_Rimmerlister is offline   Reply With Quote
Old 4th Aug 2003, 11:51 AM   #8
Doc_EDo
LEFT
 
Join Date: Jan. 10th, 2002
Posts: 755
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...
__________________
Doc_EDo is offline   Reply With Quote
Old 4th Aug 2003, 12:10 PM   #9
jb
Registered User
 
Join Date: May. 22nd, 2000
Posts: 278
Well did you try what they did in the AvoidMarker code?

Code:
AIController(P.Controller).Startle(self);
Maybe????
__________________
Jb
ChaosUT
jb is offline   Reply With Quote
Old 4th Aug 2003, 12:26 PM   #10
Doc_EDo
LEFT
 
Join Date: Jan. 10th, 2002
Posts: 755
Acutlally I'm just looking at that part, but it says:
Quote:
// FIXME - need FindPathAwayFrom()
__________________
Doc_EDo is offline   Reply With Quote
Old 4th Aug 2003, 02:26 PM   #11
jb
Registered User
 
Join Date: May. 22nd, 2000
Posts: 278
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.
__________________
Jb
ChaosUT

Last edited by jb; 4th Aug 2003 at 02:28 PM.
jb is offline   Reply With Quote
Old 4th Aug 2003, 10:25 PM   #12
Sir_Brizz
More Than Just Mad Skill
 
Sir_Brizz's Avatar
 
Join Date: Feb. 3rd, 2000
Location: >:3
Posts: 25,659
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.
__________________
64 65 61 74 68 62 6f 6f 67 65 72 73 20 6d 6f 74 68 65 72 20 6f 66 20 63 6f 75 72 73 65

Liandri Archives - A veritable smorgasbord of information about the Unreal series
If Titanic taught me anything, it's to never let go until you're a frozen corpse staring hopelessly into a barren horizon.
Sir_Brizz is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer