04-29-2015, 07:12 AM
(This post was last modified: 04-29-2015, 07:23 AM by LogicParrot.)
I'm going to submit a pull request. I think this is mature enough for this.
There are a few of things that can be improved in the pathfinder, and there is MUCH to improve with the AI.
Pathfinder:
AI:
I think the code is ready for merging, (unless there's a performance bottleneck, please test that). As I said before, I have to take a break for a couple of weeks. After that, I'll resume adding features (and optimizations if needed).
Please note that the zombies are not "optimal", their invisible paths are indeed optimal but they don't always follow them correctly due to the horrible AI, I did some AI changes which make this tolerable but there's room for improvement, this will be done when I resume this.
Nevertheless, it's no longer "brainless floating zombies".
There are a few of things that can be improved in the pathfinder, and there is MUCH to improve with the AI.
Pathfinder:
- Special treatment to water, higher G cost.
- Add vertically aligned waypoints when a jump is needed, should assist the mobs in jumps.
- Move in straight line when there's a line of sight with target, this should also prevent mobs from stacking up as often as they do.
- Higher G cost around other entities to encourage spreading?
- Flight parameter. Flight is already "built in", it works by modifying some lines of code, I should make a constructor parameter for flight.
AI:
- Zombies should be more aggressive when it comes to hit frequency / hitting while walking.
- Cleanup of the older path-not-finder
- Pretty much everything. The current drawbacks of the AI are eclipsing the awesomeness of the Pathfinder, I set up something which works well for the zombies, but on the long run an overhaul should be made.
I think the code is ready for merging, (unless there's a performance bottleneck, please test that). As I said before, I have to take a break for a couple of weeks. After that, I'll resume adding features (and optimizations if needed).
Please note that the zombies are not "optimal", their invisible paths are indeed optimal but they don't always follow them correctly due to the horrible AI, I did some AI changes which make this tolerable but there's room for improvement, this will be done when I resume this.
Nevertheless, it's no longer "brainless floating zombies".