Project Zomboid

Project Zomboid

[B42/B41] Bandits NPC (v2)
Hunterr 22 okt, 2024 @ 5:52
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.
< >
Visar 1-15 av 18 kommentarer
Slayer  [utvecklare] 22 okt, 2024 @ 6:56 
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 okt, 2024 @ 11:38 
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  [utvecklare] 22 okt, 2024 @ 13:13 
if you want a guaranteed safety, this mod will not provide that. imagine that they dropped with a parachute
Mortesa 25 okt, 2024 @ 4:53 
It happens to me that they sleep in my parking lot near the base, with a car and fences.
Mortesa 25 okt, 2024 @ 4:56 
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  [utvecklare] 25 okt, 2024 @ 5:38 
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 okt, 2024 @ 8:06 
Ursprungligen skrivet av 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 okt, 2024 @ 11:25 
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 okt, 2024 @ 12:07 
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 okt, 2024 @ 14:59 
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.
Senast ändrad av Hunterr; 25 okt, 2024 @ 15:00
Mortesa 25 okt, 2024 @ 16:09 
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 okt, 2024 @ 9:58 
Ursprungligen skrivet av Mortesa:
Ursprungligen skrivet av 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
Senast ändrad av Point_Down; 26 okt, 2024 @ 9:59
Skinsword 28 okt, 2024 @ 6:42 
Ursprungligen skrivet av 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  [utvecklare] 28 okt, 2024 @ 7:30 
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 okt, 2024 @ 13:48 
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.
< >
Visar 1-15 av 18 kommentarer
Per sida: 1530 50