Project Zomboid

Project Zomboid

[B42/B41] Bandits NPC (v2)
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.
< >
1-15 van 18 reacties weergegeven
Slayer  [ontwikkelaar] 22 okt 2024 om 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
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  [ontwikkelaar] 22 okt 2024 om 13:13 
if you want a guaranteed safety, this mod will not provide that. imagine that they dropped with a parachute
It happens to me that they sleep in my parking lot near the base, with a car and fences.
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  [ontwikkelaar] 25 okt 2024 om 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
Origineel geplaatst door 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
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
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.
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.
Laatst bewerkt door Hunterr; 25 okt 2024 om 15:00
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.
Origineel geplaatst door Mortesa:
Origineel geplaatst door 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
Laatst bewerkt door Point_Down; 26 okt 2024 om 9:59
Origineel geplaatst door 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  [ontwikkelaar] 28 okt 2024 om 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
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.
< >
1-15 van 18 reacties weergegeven
Per pagina: 1530 50