Raised This Month: $ Target: $400
 0% 

Entity chase player without stuck


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-01-2020 , 08:42   Re: Entity chase player without stuck
Reply With Quote #1

Quote:
Originally Posted by Xalus View Post
I've try'd to make such Zombie AI in the past,
I'll add the code, see if there is anything usefull in it.

NOTE: Only a few functions work, A* Pathfinding is broken to last time I tested it.
Also code is old, optimizes recommended.
I did something similar but the time to find and update the path was slower than entity's think so it usually move 1-2 second slower than the actual path. Also, it isn't detect as the boss size but player size so it seem broke. (I did saw the video on that plugin)

Quote:
Originally Posted by Natsheh View Post
i'd suggest to make a predefined path origins for the map.

as czbots work

You do still need efficient path finder to help you with the obstacle and setting the path origins
is it like setting up origin then make the entity move to the origin in order to get to player? but isn't then every think, it have to loop all the predefined origin to check to see which origin is player close to and cost a lot of CPU?

Quote:
Originally Posted by DJEarthQuake View Post
Make touch so zombies can pass through the 'obstacles'.
Oh, I really like a Zombie that can 1-shot walk though wall and slap me.
No, thank you.

Quote:
Originally Posted by Xalus View Post
Marking the player origin is an option,
if you add a check that bot could skip a few if possible & faster.

That would solve the circle problem.
That what I planned at first but then how to I store it? if there is another Zombie Entity there, they update overlap each other if I using Array from ArrayCreate(). I need to clear the previous origin when reach so Stack like Array is needed.
__________________
My plugin:

Last edited by Celena Luna; 06-01-2020 at 08:44.
Celena Luna is offline
Reply



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 -4. The time now is 17:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode