faatal
Fun Pimps Staff
We have that: June 6 - Added AI can attack while moving, independent attack and move range checks, and target motion estimation.@faatal How feasible would it be to allow entities to sometimes 'lead' the player in 7dtd? When I say lead, I mean that if one entity is chasing another entity, and the chased entity is going in a straight line, then the chasing entity will also travel in a straight line, as opposed to the pursuit curve we have currently.
I can implement it in open areas with a few lines of code, but I can imagine it would be harder to integrate it with the A*-based pathing system.
I've heard fourm members say that it's too easy to outmanuever zombies outside, and, well, leading enemies are a lot harder to outmaneuver.
It is only a third of a second for basically the reason you said.
Say you looked ahead 5 seconds. That would often be on the other side of a an obstacle, which the target is not planning to go to or can't get to, so AI would be going off to the wrong location a lot. You could try to add a bunch of rules with target raycasts or path checking, but we have enough performance issue as is. At this point I'm trying to get us to more zombies, not smarter, but it may possibly be tweaked in the future as higher priority tasks are completed.