![]() |
|
|
#1 |
|
LEFT
Join Date: Jan. 10th, 2002
Posts: 755
|
[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. |
|
|
|
|
|
#2 |
|
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. |
|
|
|
|
|
|
#3 |
|
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.
__________________
|
|
|
|
|
|
#4 |
|
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. |
|
|
|
|
|
#5 |
|
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.
__________________
|
|
|
|
|
|
#6 |
|
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. |
|
|
|
|
|
#7 |
|
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 - |
|
|
|
|
|
|
#8 |
|
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...
__________________
|
|
|
|
|
|
#9 |
|
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);
__________________
Jb ChaosUT |
|
|
|
|
|
#10 | |
|
LEFT
Join Date: Jan. 10th, 2002
Posts: 755
|
Acutlally I'm just looking at that part, but it says:
Quote:
__________________
|
|
|
|
|
|
|
#11 |
|
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. |
|
|
|
|
|
#12 |
|
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. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|