I personally think you should be able to hide from a mob. Currently, mobs magically know the exact location of their targets if they have targeted them and if said target is still in their radius. Sounds quite illogical, doesn't it? Let's change it.
When idle, hostile mobs check for targets every 2 ticks. I'd suggest a base value of 64 meters of sight radius for melee mobs, 80 for ranged mobs. If there is an available target that's twice closer to the hostile mob than their current target, they target the closer one instead. Once the hostile mob has acquired a target, they check for a line of sight between them and their target every 2 ticks, updating the target's last seen location if the line of sight isn't broken. Instead of calculating a path towards the target's current location that the hostile mob magically knows, they calculate a path towards the target's last seen location. If the hostile mob reaches their target's last seen location without finding any other available targets/restoring line of sight with their current target, they lose their target and turn idle again.
And yes, that'll allow players to lose, say, hordes of zombies if they know how to hide. Also I think that (I don't mind if this part isn't added) mobs should be able to hear there targets kinda like the warden. This would make it so players wouldn't just have to be behind blocks but also be stealthy.
Please sign in to leave a comment.
2 Comments