Project Zomboid

Project Zomboid

[B42/B41] Bandits NPC (v2)
Hunterr 22 Oct, 2024 @ 5:52am
Bandit spawn inside base
It would be great if there would be a fix for bandits spawning inside your base. The mod must recognize it when you have a wall or fence arround your main building. I have lost my character because ot this sh.. on coop mode lol.
< >
Showing 1-15 of 18 comments
Slayer  [developer] 22 Oct, 2024 @ 6:56am 
It is not easy to detect. Scanning squares to determine enclosed area would cost too much performance. Besides if they spawned outside and jumper over you fence what would be the difference? Still you are protected by the fact that they will not spawn to close to the player
Hunterr 22 Oct, 2024 @ 11:38am 
Yeah thats true but its just annoying that a npc base gets spawned right in our own base :D I am talking about the three houses east of Louisville with the three fences.
Slayer  [developer] 22 Oct, 2024 @ 1:13pm 
if you want a guaranteed safety, this mod will not provide that. imagine that they dropped with a parachute
Mortesa 25 Oct, 2024 @ 4:53am 
It happens to me that they sleep in my parking lot near the base, with a car and fences.
Mortesa 25 Oct, 2024 @ 4:56am 
I would add the ability to set the base flag to the mod. Then the mod will know where not to spawn bandits. And will be forced to spawn them behind the base.
+ I would add the ability for the mod to change the parameter in the sandbox that disables the ability to spawn near the base. And then we have a gameplay that we will meet bandits only when we explore the world.
Slayer  [developer] 25 Oct, 2024 @ 5:38am 
the ideas is that you are never safe, like in walking dead, you can build a base but things will go wrong every time. no 100% safety is guaranteed
Mortesa 25 Oct, 2024 @ 8:06am 
Originally posted by Slayer:
the ideas is that you are never safe, like in walking dead, you can build a base but things will go wrong every time. no 100% safety is guaranteed

Yes, it's a great idea, but not when a car with barricades appears at your closed base XD
st.rusik 25 Oct, 2024 @ 11:25am 
It works weird sometimes, for example if I build a base on a small island connected to the rest of the map with only one road, so they supposedly have no other paths (except for the marine landing), but they show up right there at the base. I also have an issue besides this one that bandits are building their base inside my base, this happens all the time if building your base in a remote location when the mod doesn't find any other buildings to spawn this event. Could you increase the spawn delay of visited buildings to for example 20 days instead of 7, as 7 is too short? Or it would be nice to have a sandbox setting that allows you to change the delay, not just the chance to spawn
Torek 25 Oct, 2024 @ 12:07pm 
Hey @Slayer, just a suggestion, could you use the Zombie Spawn system? whenever it tries to spawn it checks if its a reachable area.
Im guessing it wouldnt stop them from climbing fences or removing barricades, just the spawning outside.
Hunterr 25 Oct, 2024 @ 2:59pm 
Yeah there should be something like npc will attack you but they shouldnt spawn right in front of you and it feels like that lol. NPC bases for example often spawn right next to you or maybe behind another building and thats weird.
Last edited by Hunterr; 25 Oct, 2024 @ 3:00pm
Mortesa 25 Oct, 2024 @ 4:09pm 
The option with a flag that has a radius of, for example, “50x50” squares, which prevents bandits from spawning, is almost perfect. Perhaps there are other solutions. For example, the mod can remember the last place the player slept (bed) and not spawn bandits within the radius of the bed.
Point_Down 26 Oct, 2024 @ 9:58am 
Originally posted by Mortesa:
Originally posted by Slayer:
the ideas is that you are never safe, like in walking dead, you can build a base but things will go wrong every time. no 100% safety is guaranteed

Yes, it's a great idea, but not when a car with barricades appears at your closed base XD

Yeah the barricades are really annoying, I've had to remove two sets of spawned barricades and cars from my base now

Hope @Slayer introduces an option to toggle bandit structures
Last edited by Point_Down; 26 Oct, 2024 @ 9:59am
Skinsword 28 Oct, 2024 @ 6:42am 
Originally posted by Slayer:
It is not easy to detect. Scanning squares to determine enclosed area would cost too much performance. Besides if they spawned outside and jumper over you fence what would be the difference? Still you are protected by the fact that they will not spawn to close to the player
I read that's how default zombie spawn behavior is. The spawner runs a check and see if the zombie can access the area if they spawn from the edges of the map. If they can't, then they spawn as close to it as they can without being inside of it.
Slayer  [developer] 28 Oct, 2024 @ 7:30am 
Game only allows to check squares that are ma 100 squares away from the player.

I haven't need able to find the code that govens what you describe in the source code. If I find it I will see if I can refuse it
marcelocoro17 28 Oct, 2024 @ 1:48pm 
After using this mod, the size of my bases has been reduced. I also noticed they can spawn even if the area is enclosed. I recommend you to increase the spawning distance to the size of the diameter of the larger base you may plan.
< >
Showing 1-15 of 18 comments
Per page: 1530 50