Project Zomboid

Project Zomboid

[B42/B41] Bandits NPC
B42 Bug - Zombies targets player through walls when they get close to a bandit
Playing on B42, I noticed that zombies that are supposed to attack bandits will suddenly target the player no matter how far the player is, even behind walls.
Zombies can spot and target a distant bandit properly but when the zombie gets close, the zombie will start walking to the player. Bandits will chase them and try to kill them like normal and zombies can still bite bandits that get close enough.

You can get a good visual of this bug with these steps
-load in with debug
-open lua debugger with F11
-click options then in "Pathfind" enable "Render.Path"
-in "Cheat" enabling "Player.SeeEveryone" also helps
-hide behind some walls/buildings without getting spotted.
-spawn some bandits near some zombies as far as you can and watch the path lines lock onto the player

I'm using the latest release of the mod.
Last edited by Hammer Haunt; 26 Sep @ 12:05am
< >
Showing 1-1 of 1 comments
here's some screenshots showing the bug in action

first screenshot, some bandits and zombies spot each other
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3574824459
zombies target bandits normally (white lines)

second, they both close in to attack then zombies suddenly target the player through the fence and building.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3574824469

zombies ignore the bandits, and try to go through the fence instead
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3574824481
< >
Showing 1-1 of 1 comments
Per page: 1530 50